/* =========================================
   1. CONFIGURACIÓN BASE
   ========================================= */
:root {
    --bg: #080808;
    --text: #ffffff;
    --accent: #ffffff;
    --gray: #666666;
    --border: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. NAV FLOTANTE
   ========================================= */
.glass-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1400px; z-index: 1000; mix-blend-mode: difference;
}
.nav-content {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.2);
}
.logo { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.nav-cta {
    color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; border: 1px solid #fff; padding: 8px 20px;
    border-radius: 50px; transition: all 0.3s ease; cursor: pointer;
}
.nav-cta:hover { background: #fff; color: #000; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { position: relative; height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
.overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    /* degradado: fondo arriba -> sombra suave centro -> fondo abajo */
    background: linear-gradient(
        to bottom, 
        var(--bg) 0%, 
        rgba(0,0,0,0.4) 20%, 
        rgba(0,0,0,0.4) 80%, 
        var(--bg) 100%
    ); 
}.hero-center { z-index: 2; }

h1 {
    font-family: 'Manrope', sans-serif; font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800; line-height: 0.9; letter-spacing: -4px; margin: 0;
}
h2 {
    font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 10px; margin-top: 10px; opacity: 0.9;
}

.main-button {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 50px;
    padding: 15px 40px; background: #fff; color: #000; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; border-radius: 100px; transition: transform 0.3s ease;
    cursor: pointer;
}
.main-button:hover { transform: scale(1.05); }

/* Añadimos z-index al footer del hero para que no se pierda con el difuminado */
.hero-footer {
    position: absolute; bottom: 40px; width: 90%; display: flex;
    justify-content: space-between; font-size: 0.7rem; opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px;
    z-index: 2; /* Esto asegura que el texto se vea sobre el fade */
}


/* =========================================
   4. INTRO (EDITORIAL STYLE - CORREGIDO)
   ========================================= */
.intro {
    position: relative;
    z-index: 10; /* Asegura que esté por encima del video */
    background-color: var(--bg); /* Fondo negro sólido obligatorio */
    padding: 180px 0 100px 0; /* Buen espacio para respirar */
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* Etiqueta pequeña superior (Estilo técnico) */
.intro-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Título Grande */
.intro-heading {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -1px;
}

.text-highlight {
    color: #fff; /* O puedes poner un gris muy claro #ddd */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    text-decoration-color: rgba(255,255,255,0.3);
}

/* Línea separadora vertical pequeña */
.intro-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    margin: 40px auto;
}

/* Texto descriptivo sutil */
.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #888; /* Gris para que no compita con el título */
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .intro { padding: 120px 0 80px 0; }
    .intro-divider { height: 40px; margin: 30px auto; }
}
/* =========================================
   5. LISTA DE FECHAS
   ========================================= */
.dates-section { padding-bottom: 150px; background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.dates-header {
    display: flex; justify-content: space-between; font-size: 0.8rem;
    color: #666; border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 0;
}

/* FILA PRINCIPAL */
.tour-row {
    display: flex; flex-direction: column; 
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer; overflow: hidden;
}

.row-main {
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 20px; width: 100%;
}

.tour-row:hover, .tour-row.active {
    background: #fff; color: #000;
    padding-left: 20px; padding-right: 20px;
    border-radius: 4px; border-bottom-color: transparent;
}

.date-col { width: 15%; font-family: 'Inter', sans-serif; font-size: 0.9rem; opacity: 0.7; display: flex; align-items: center; gap: 10px; }
.city-col { width: 45%; font-family: 'Manrope', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
.venue-col { width: 20%; text-align: right; font-size: 0.9rem; font-weight: 500; }
.action-col { width: 20%; text-align: right; }

/* ICONO + */
.icon-plus { font-weight: 300; font-size: 1.5rem; transition: transform 0.3s; }
.tour-row.active .icon-plus { transform: rotate(45deg); }

/* BOTÓN TICKET */
.t-btn {
    border: 1px solid rgba(255,255,255,0.3); padding: 10px 25px;
    border-radius: 50px; font-size: 0.7rem; text-transform: uppercase;
    transition: all 0.3s; background: transparent; color: inherit;
}
.tour-row:hover .t-btn, .tour-row.active .t-btn { border-color: #000; color: #000; font-weight: 700; }

/* DETALLES DESPLEGABLES */
.row-details {
    max-height: 0; opacity: 0; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 20px; background: #fff; color: #000;
}
.tour-row.active .row-details { max-height: 400px; opacity: 1; padding-bottom: 40px; }

.details-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; margin-left: 15%;
}
.detail-item h4 { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 8px; font-weight: 600; }
.detail-item p { font-size: 0.9rem; font-weight: 500; }
.map-link { display: inline-block; margin-top: 5px; font-size: 0.75rem; color: #000; text-decoration: none; border-bottom: 1px solid #000; font-weight: 700; }

/* SOLD OUT */
.tour-row.sold-out { opacity: 0.5; pointer-events: none; }
.tour-row.sold-out .city-col { text-decoration: line-through; }
.tour-row.sold-out .t-btn { border: none; font-weight: 800; color: #fff; }

/* =========================================
   6. FOOTER & ANIMATIONS
   ========================================= */
footer { padding: 100px 0; border-top: 1px solid #222; text-align: center; }
.footer-content h3 { font-family: 'Manrope', sans-serif; font-size: 2rem; margin-bottom: 30px; }
.footer-links a { color: #666; text-decoration: none; margin: 0 15px; font-size: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 50px; font-size: 0.7rem; color: #444; }

/* Animaciones Reveal */
.reveal-text { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
.reveal-scroll { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .row-main { flex-wrap: wrap; gap: 10px; }
    .date-col { width: 100%; margin-bottom: 5px; }
    .city-col { width: 100%; font-size: 1.5rem; }
    .venue-col { width: 100%; text-align: left; opacity: 0.7; }
    .action-col { width: 100%; text-align: left; margin-top: 10px; }
    .details-grid { grid-template-columns: 1fr; margin-left: 0; gap: 20px; }
}

/* Pantalla de bloqueo de audio */
.intro-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    z-index: 2000; /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
    opacity: 100%;
}

.intro-gate-content {
    text-align: center;
}

/* Estado cuando se activa */
.intro-gate.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Ajuste del botón para que parezca una invitación */
.intro-gate .main-button {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    margin-top: 30px;
    padding: 40px;
}

.intro-gate .main-button:hover {
    background: #fff;
    color: #000;
}