/* ================================
   PITIUPI PRESENTATION - SLIDE 8 STYLES
   The Reveal (Hero Slide) - CORREGIDO
   ================================ */

   .slide[data-slide="8"] {
    padding: 0 !important;
    overflow: hidden;
}

.slide-8-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    /* Ajuste clave: Un poco de padding bottom para no chocar con la nav */
    padding-bottom: 3rem; 
}

/* ================================
   ATMÓSFERA Y FONDO
   ================================ */
.hero-spotlight {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(51, 204, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: breatheLight 6s ease-in-out infinite;
}

@keyframes breatheLight {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ================================
   CONTENEDOR DEL LOGO
   ================================ */
.hero-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Reducido el margen para acercar el texto al logo */
    margin-bottom: 1.5rem; 
    opacity: 0;
    transform: scale(0.9);
}

/* Estado Visible (Step 1) */
.slide[data-slide="8"][data-step="1"] .hero-logo-container,
.slide[data-slide="8"][data-step="2"] .hero-logo-container {
    opacity: 1;
    transform: scale(1);
    animation: neonTurnOn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Imagen del Logo Principal */
.hero-logo {
    /* CAMBIO CLAVE: Usamos vh (altura de viewport) para que nunca se salga */
    height: 35vh; 
    width: auto;
    max-width: 100%;
    
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

/* Aura detrás del logo */
.logo-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(57, 255, 20, 0);
    transition: all 0.5s;
}

/* Animación de Encendido Neón */
@keyframes neonTurnOn {
    0% { opacity: 0; filter: drop-shadow(0 0 0 rgba(51, 204, 0, 0)); }
    10% { opacity: 0.7; filter: drop-shadow(0 0 10px rgba(51, 204, 0, 0.5)); }
    15% { opacity: 0; filter: drop-shadow(0 0 0 rgba(51, 204, 0, 0)); }
    20% { opacity: 0.7; filter: drop-shadow(0 0 10px rgba(51, 204, 0, 0.5)); }
    25% { opacity: 0; filter: drop-shadow(0 0 0 rgba(51, 204, 0, 0)); }
    30% { opacity: 1; filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.6)); }
    35% { opacity: 0.8; filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.5)); }
    100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 25px rgba(57, 255, 20, 0.8)) drop-shadow(0 0 50px rgba(51, 204, 0, 0.4));
        transform: scale(1);
    }
}

/* ================================
   REFLEJO EN EL SUELO (Efecto Premium)
   ================================ */
.hero-logo-reflection {
    margin-top: 5px;
    transform: scaleY(-1);
    opacity: 0.25; /* Un poco más transparente */
    position: relative;
    z-index: 1;
    /* Máscara más agresiva para que el reflejo sea más corto */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
    filter: blur(1.5px);
    height: 10vh; /* Limitamos la altura del reflejo */
    overflow: hidden;
}

.hero-logo-reflection img {
    height: 35vh; /* Mismo tamaño que el original para mantener proporción */
    width: auto;
}

/* ================================
   TEXTO CINEMÁTICO
   ================================ */
.hero-text-container {
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.slide[data-slide="8"][data-step="2"] .hero-text-container {
    animation: textSlideUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes textSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-main-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    /* Tamaño responsivo con clamp */
    font-size: clamp(1.5rem, 4vw, 2.2rem); 
    color: #ffffff;
    letter-spacing: 4px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-separator {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    margin: 0.8rem auto;
    transition: width 1s ease;
}

.slide[data-slide="8"][data-step="2"] .hero-separator {
    width: 60%;
}

.hero-sub-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    /* Tamaño responsivo con clamp */
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--accent);
    letter-spacing: 6px;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .hero-logo { height: 30vh; } /* Un poco más pequeño en tablets */
    .hero-logo-reflection img { height: 30vh; }
}

@media (max-width: 768px) {
    .slide-8-wrapper { padding-bottom: 5rem; } /* Más espacio abajo en móviles para controles */
    .hero-logo { height: 25vh; } /* Mucho más controlado en móvil */
    .hero-logo-reflection img { height: 25vh; }
    .hero-main-text { letter-spacing: 2px; }
    .hero-sub-text { letter-spacing: 3px; }
}

@media (max-height: 700px) {
    /* Ajuste especial para pantallas panorámicas con poca altura */
    .hero-logo { height: 30vh; }
    .hero-logo-reflection { display: none; } /* Ocultar reflejo si hay poca altura */
    .hero-text-container { margin-top: 0.5rem; }
}