/* ============================================================
   BLOQUE 1: CILIX CORE & LOGIN (TU CÓDIGO - INTACTO)
   ============================================================ */

:root {
    --primary: #c597ff; /* Lila CILIX */
    --secondary: #ffd4a3; /* Peach CILIX */
    --accent: #ff9dce; /* Rosa CILIX */
    --dark: #070707;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-luxury: linear-gradient(135deg, #c597ff 0%, #ff9dce 50%, #ffd4a3 100%);
    
    /* COLORES DE RANGOS Y ESTADOS */
    --dev: #00ff9d;      /* Verde Neón (Developer) */
    --gold: #ffd700;     /* Oro (Licencia 1) */
    --silver: #e0e0e0;   /* Plata (Licencia 2) */
    --verified: #00d4ff; /* Azul (Verificado) */
    --mp-color: #009ee3; /* Mercado Pago */
    --sold: #ff3b30;     /* Rojo Sold Out */
    --tape-bg: #1a1a1a;  /* Fondo Cinta Marquee */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body, html {
    width: 100%; min-height: 100vh; background-color: var(--dark); color: #fff;
}

/* --- VIDEO DE FONDO --- */
.back-video {
    position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    z-index: -2; filter: brightness(0.4) contrast(1.1); object-fit: cover;
}
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* --- PRELOADER --- */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark); display: flex; justify-content: center;
    align-items: center; z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s;
}
.hidden-loader { opacity: 0; visibility: hidden; }
.logo-loader {
    font-size: 3rem; font-weight: 800; letter-spacing: 15px;
    background: var(--gradient-luxury); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}
.progress-bar {
    width: 200px; height: 2px; background: rgba(255,255,255,0.1);
    position: relative; margin: 0 auto; overflow: hidden;
}
.progress-bar::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--gradient-luxury); animation: loadBar 1.5s infinite ease-in-out;
}

/* --- LOGIN (TU DISEÑO ORIGINAL) --- */
.main-wrapper {
    height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px;
}
.auth-card {
    width: 100%; max-width: 420px; background: var(--glass);
    backdrop-filter: blur(25px); border: 1px solid var(--glass-border);
    border-radius: 40px; padding: 40px; box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(0); animation: cardEntry 1s ease-out;
}
.brand-header { text-align: center; margin-bottom: 30px; }
.logo { font-size: 2.5rem; font-weight: 800; letter-spacing: 8px; color: #fff; margin-bottom: 5px; }
.tagline-gold { font-size: 0.7rem; letter-spacing: 6px; color: var(--secondary); font-weight: 400; }
.safe-badge { font-size: 9px; color: var(--primary); margin-top: 15px; letter-spacing: 2px; opacity: 0.7; }

/* TABS LOGIN */
.auth-tabs { display: flex; gap: 10px; margin-bottom: 30px; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 20px; }
.tab-btn { flex: 1; padding: 12px; border: none; background: transparent; color: #fff; font-size: 10px; letter-spacing: 2px; cursor: pointer; border-radius: 15px; transition: 0.3s; opacity: 0.5; }
.tab-btn.active { background: var(--gradient-luxury); opacity: 1; color: #000; font-weight: 800; box-shadow: 0 5px 15px rgba(197, 151, 255, 0.3); }

/* FORM LOGIN */
.form-section { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.hidden { display: none !important; }
.input-container { position: relative; width: 100%; }
.input-container i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 14px; opacity: 0.6; }
.input-container input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 16px 16px 16px 50px; border-radius: 18px; color: #fff; font-size: 13px; transition: 0.3s; }
.input-container input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.08); }
.input-row { display: flex; gap: 10px; }
.half { flex: 1; }
.account-type-selector { display: flex; gap: 10px; margin-bottom: 15px; }
.type-option { flex: 1; cursor: pointer; }
.type-option input { display: none; }
.type-card { padding: 12px; border: 1px solid var(--glass-border); border-radius: 15px; text-align: center; transition: 0.3s; }
.type-card span { font-size: 10px; letter-spacing: 2px; color: #fff; opacity: 0.6; }
.type-option input:checked + .type-card { border-color: var(--primary); background: rgba(197, 151, 255, 0.1); }
.type-option input:checked + .type-card span { opacity: 1; color: var(--primary); font-weight: 600; }
.btn-primary { width: 100%; padding: 18px; border: none; border-radius: 20px; background: var(--gradient-luxury); color: #000; font-weight: 800; font-size: 12px; letter-spacing: 2px; cursor: pointer; transition: 0.4s; margin-top: 10px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(197, 151, 255, 0.3); }
.footer-pro { margin-top: 30px; text-align: center; }
.footer-links { margin-bottom: 15px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 10px; opacity: 0.4; transition: 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--secondary); }
.dot { color: var(--primary); font-size: 12px; opacity: 0.5; }
.copyright { font-size: 9px; color: #fff; opacity: 0.2; letter-spacing: 1px; }

@keyframes pulseLogo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.98); } }
@keyframes loadBar { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes cardEntry { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   BLOQUE 2: STORE, ADMIN & SELLER (ESTILO PREMIUM & CINTA)
   ============================================================ */

/* 1. CINTA INFINITA (MARQUEE) */
.marquee-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 28px;
    background: var(--tape-bg); 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    overflow: hidden; white-space: nowrap;
    z-index: 2000; display: flex; align-items: center;
    font-size: 9px; font-weight: 600; letter-spacing: 3px;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 30s linear infinite;
}
@keyframes scrollText {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* NAV & LOGO (AJUSTADO PARA QUE NO TAPE LA CINTA) */
.nav-boutique {
    position: fixed; top: 28px; /* Espacio para la cinta */
    width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(7, 7, 7, 0.95); backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid var(--glass-border);
}
.user-welcome { font-size: 10px; letter-spacing: 2px; color: #fff; opacity: 0.9; }
.btn-logout { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 8px 20px; font-size: 10px; letter-spacing: 2px; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.btn-logout:hover { background: #fff; color: #000; }
.logo-text { font-size: 1.8rem; font-weight: 800; letter-spacing: 5px; color: #fff; }
.logo-sub { font-weight: 200; color: var(--primary); }

/* HERO */
.hero-section { padding: 180px 5% 40px; text-align: center; }
.hero-title { font-weight: 200; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: 15px; margin-bottom: 20px; text-transform: uppercase; background: linear-gradient(to right, #fff, #b3b3b3, #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(255,255,255,0.15); }
.luxury-subtitle { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 40px; opacity: 0.8; font-weight: 400; }
.logistics-bar { font-size: 9px; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-top: 30px; opacity: 0.8; padding: 10px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); display: inline-block; }

.search-box { background: rgba(30,30,30,0.9); border: 1px solid var(--glass-border); padding: 15px 25px; display: flex; align-items: center; border-radius: 30px; }
.search-box input { background: transparent; border: none; width: 100%; outline: none; color: #ffffff !important; font-size: 12px; letter-spacing: 1px; }
.search-box input::placeholder { color: rgba(255,255,255,0.5); }

/* CATEGORÍAS */
.hero-section .auth-tabs { background: transparent; padding: 0; }
.hero-section .tab-btn { border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); padding: 10px 25px; }
.hero-section .tab-btn.active { background: #fff; color: #000; font-weight: 800; border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }

/* GRID PRODUCTOS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 50px; padding: 0 5% 100px; }
.product-card { background: transparent; transition: 0.4s; position: relative; }
.product-img-box { position: relative; width: 100%; height: 400px; overflow: hidden; border-radius: 4px; background: #000; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; -webkit-box-reflect: below 2px linear-gradient(transparent, transparent, rgba(255, 255, 255, 0.15)); }
.curated-badge { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-size: 8px; font-weight: 700; padding: 5px 10px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; z-index: 5; display: flex; align-items: center; gap: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

.product-card-info { padding: 40px 10px 10px; }
.product-card-info h3 { color: #ffffff !important; font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.cat-label { color: var(--primary); font-size: 9px; letter-spacing: 3px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 8px; }
.price-tag { font-size: 22px; font-weight: 800; color: var(--secondary); margin-bottom: 10px; }
.location-tag { font-size: 10px; color: #ddd; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 5px; margin-bottom: 15px; }
.luxury-microcopy { font-size: 9px; color: #666; font-style: italic; margin-bottom: 15px; letter-spacing: 0.5px; border-left: 1px solid var(--primary); padding-left: 8px; }

/* INSIGNIAS & GLOW */
.vendor-badge-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; margin-top: 15px; }
.user-badge-container { display: inline-flex; align-items: center; gap: 6px; }
.seller-name { font-size: 10px; font-weight: 600; color: #ccc; letter-spacing: 1px; transition: 0.3s; }
.glow-dev { color: var(--dev) !important; text-shadow: 0 0 10px rgba(0, 255, 157, 0.8); font-weight: 800; font-size: 10px; letter-spacing: 1px; }
.glow-gold { color: var(--gold) !important; text-shadow: 0 0 10px rgba(255, 215, 0, 0.7); font-weight: 700; font-size: 10px; letter-spacing: 1px; }
.glow-silver { color: #fff !important; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); font-weight: 700; font-size: 10px; letter-spacing: 1px; }
.badge-dev { color: var(--dev); font-size: 10px; font-weight: 800; border: 1px solid var(--dev); padding: 2px 8px; border-radius: 4px; box-shadow: 0 0 10px rgba(0,255,136,0.2); letter-spacing: 1px; }
.icon-code { font-size: 12px; color: var(--dev); margin-right: 4px; filter: drop-shadow(0 0 5px var(--dev)); }
.badge-crown { font-size: 12px; margin-right: 2px; }
.gold { color: var(--gold); filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6)); }
.silver { color: var(--silver); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)); }
.icon-verified { color: var(--verified); font-size: 13px; margin-left: 4px; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); }

/* BOTONES */
.btn-delete { background: rgba(255, 0, 0, 0.2); border: 1px solid red; color: red; padding: 5px 8px; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.btn-delete:hover { background: red; color: #fff; }
.btn-pay { width: 100%; padding: 12px; border: none; border-radius: 8px; background: var(--mp-color); color: #fff; font-weight: 700; font-size: 10px; letter-spacing: 2px; cursor: pointer; margin-top: 10px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-pay:hover { background: #0081b9; box-shadow: 0 0 15px rgba(0, 158, 227, 0.4); }

/* FOOTER */
.cilix-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 5% 30px; margin-top: 100px; background: #020202; text-align: center; }
.footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 5px; color: #fff; margin-bottom: 20px; display: inline-block; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-link { color: #888; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: 0.3s; }
.footer-link:hover { color: var(--primary); }
.footer-copy { color: #444; font-size: 9px; letter-spacing: 1px; }

/* MODAL & CARRUSEL */
.modal-details { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.96); backdrop-filter: blur(20px); display: none; justify-content: center; align-items: center; z-index: 10000; }
.modal-content { width: 90%; max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; position: relative; }
.modal-close { position: absolute; top: -50px; right: 0; font-size: 30px; color: #fff; cursor: pointer; }
.modal-info-box { display: flex; flex-direction: column; justify-content: center; }
.carousel-container { position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.carousel-slide { display: flex; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); width: 100%; height: 100%; }
.carousel-slide img { min-width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 15px; cursor: pointer; border-radius: 50%; z-index: 20; }

/* ADMIN & SELLER */
.admin-container { padding: 140px 5% 50px; max-width: 1200px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.user-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 20px; border-radius: 10px; }
.admin-actions { display: flex; gap: 5px; margin-top: 15px; flex-wrap: wrap; }
.btn-action { padding: 6px 10px; font-size: 9px; cursor: pointer; border: 1px solid #333; background: #000; color: #888; border-radius: 4px; flex: 1; text-align: center; }
.btn-action:hover { color: #fff; border-color: #fff; }
.btn-gold.active { border-color: var(--gold); color: var(--gold); background: rgba(255,215,0,0.1); }
.btn-silver.active { border-color: var(--silver); color: var(--silver); background: rgba(192,192,192,0.1); }
.btn-verify.active { border-color: #00d4ff; color: #00d4ff; background: rgba(0,212,255,0.1); }

.seller-layout { padding: 140px 5% 50px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 350px; gap: 40px; }
.upload-card { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px; backdrop-filter: blur(30px); }
.seller-input-label { font-size: 10px; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; display: block; }
.seller-input, .seller-select { width: 100%; background: #111; border: 1px solid #333; padding: 15px; color: #ffffff !important; border-radius: 8px; font-size: 11px; outline: none; margin-bottom: 20px; }
.seller-input:focus, .seller-select:focus { border-color: var(--primary); background: #1a1a1a; }
.seller-select option { background: #000; color: #fff; padding: 10px; }
.preview-img { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; margin-top: 10px; display: none; border: 1px solid var(--glass-border); }
.stat-card { background: var(--glass); border: 1px solid var(--glass-border); padding: 30px; border-radius: 20px; text-align: center; margin-bottom: 20px; }
.stat-card i { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.stat-card h4 { font-size: 20px; font-weight: 800; letter-spacing: 2px; color: #fff; }
.stat-card span { font-size: 9px; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; color: #fff; }

@media (max-width: 900px) { .modal-content { grid-template-columns: 1fr; height: 90vh; overflow-y: auto; padding-top: 50px; } .carousel-container { height: 350px; } .seller-layout { grid-template-columns: 1fr; } .nav-boutique { padding: 15px; } .hero-title { font-size: 2rem; } }
div:where(.swal2-container) div:where(.swal2-popup) { background: #111 !important; border: 1px solid #333; color: #fff; }

/* ============================================================
   BLOQUE 4: TICKETS (NUEVO)
   ============================================================ */

.ticket-container { background: #fff; color: #000; padding: 20px; border-radius: 5px; font-family: 'Courier New', Courier, monospace; text-align: left; border-top: 5px solid var(--primary); margin-bottom: 20px; }
.ticket-header { text-align: center; border-bottom: 2px dashed #000; padding-bottom: 10px; margin-bottom: 10px; }
.ticket-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.ticket-total { border-top: 2px dashed #000; padding-top: 10px; margin-top: 10px; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; }
.ticket-id { font-size: 10px; text-align: center; margin-top: 10px; color: #555; }
.btn-confirm-wsp { background: #25D366; color: #fff; border: none; padding: 15px; width: 100%; border-radius: 8px; font-weight: 800; font-size: 12px; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }

/* ============================================================
   BLOQUE 5: ESTRATEGIAS TOP TIER (SOLD OUT & VISTAS)
   ============================================================ */

.product-card.sold-out { opacity: 0.5; filter: grayscale(1); pointer-events: none; }
.product-card.sold-out .vendor-badge-row { pointer-events: auto; filter: grayscale(0); } 
.badge-sold-out { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); background: var(--sold); color: #fff; padding: 10px 20px; font-weight: 800; font-size: 14px; letter-spacing: 2px; border: 2px solid #fff; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.5); white-space: nowrap; }
.btn-mark-sold { background: transparent; border: 1px solid var(--sold); color: var(--sold); padding: 5px 8px; border-radius: 4px; cursor: pointer; margin-left: 5px; transition: 0.3s; }
.btn-mark-sold:hover { background: var(--sold); color: #fff; }
.view-counter { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--dev); margin-bottom: 10px; opacity: 0.9; letter-spacing: 1px; }
.pulse-dot { width: 6px; height: 6px; background: var(--sold); border-radius: 50%; animation: blinkRed 1.5s infinite; }
@keyframes blinkRed { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* ============================================================
   BLOQUE 6: ENLACE A EXCLUSIVE (BOTÓN DORADO)
   ============================================================ */

.btn-exclusive-link {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 8px 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-exclusive-link:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}