/* ==========================================
   ESTILOS PARA EL NUEVO HERO (ESTRUCTURA LIBRE)
   ========================================== */

.hero-new {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 18vh; 
    padding-bottom: 100px;
}

/* Fondo de líneas reactivas (Global para toda la página) */
#bg-lines { 
    position: fixed; 
    inset: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 0; 
    pointer-events: none; 
}
main, footer { 
    position: relative; 
    z-index: 1; 
}

/* ==========================================
   INDICADOR DE CARGA INICIAL (HERO LOADER)
   ========================================== */
.hero-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hero-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-loader-dot {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(157, 0, 255, 0.2);
    border-top-color: var(--accent, #9d00ff);
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

.hero-loader-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    opacity: 0.8;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* =========================================
   NEON WAVE BACKGROUND (SIMPLIFICADO Y LIGERO)
   ========================================= */
.wave-bg-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.neon-wave {
    position: absolute;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 130vw;
    height: 90vh;
    height: 90dvh;
    border-radius: 50%;
    border: 3px solid rgba(157, 0, 255, 0.015);
    border-top: none;
    background: transparent;
    box-shadow: none;
    filter: none;
    opacity: 0;
    animation:
        waveEnter 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards,
        waveIdle 8s ease-in-out infinite 0.4s;
}

.neon-wave::before,
.neon-wave::after {
    content: none;
}

@keyframes waveEnter {
    0% { 
        width: 150vw; 
        height: 50vh; 
        top: -35vh; 
        opacity: 0; 
    }
    100% { 
        width: 130vw; 
        height: 90vh; 
        height: 90dvh; 
        top: -30vh; 
        opacity: 0.3; 
    }
}

@keyframes waveIdle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(4px); }
}

/* ==========================================
   BLOQUES DE CONTENIDO
   ========================================== */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; 
    width: 90%;
    max-width: 1000px;
    min-height: 70vh; 
}

.hero-title-block h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-main);
}

.hero-text-block {
    max-width: 800px;
    width: 100%;
}

.hero-text-block p {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Texto de Scroll */
.hero-bottom-text {
    margin-top: auto; 
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}

.hero-bottom-text i {
    font-size: 1.2rem;
    color: var(--text-main);
    animation: slideDown 2s infinite ease-in-out;
}

@keyframes slideDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ==========================================
   CONTENEDOR DE BOTONES
   ========================================== */
.hero-ctas-container {
    margin-top: 15vh; 
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-ctas {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   BOTÓN NEÓN
   ========================================== */
.btn-neon-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    z-index: 1;
}

.btn-neon-glow::after {
    content: '';
    position: absolute;
    inset: 2px; 
    background: var(--accent); 
    border-radius: 48px;
    z-index: -1;
    transition: background 0.4s ease;
}

.btn-neon-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 300%;
    background: conic-gradient(transparent, transparent, transparent, #e3a6ff, #ffffff);
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-neon-glow .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-neon-glow:hover {
    transform: scale(1.08); 
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.6); 
}

.btn-neon-glow:hover::before {
    opacity: 1;
    animation: rotateNeonBorder 1.2s linear infinite; 
}

.btn-neon-glow:hover::after {
    background: radial-gradient(circle at center, #b438ff 0%, var(--accent) 100%);
}

@keyframes rotateNeonBorder {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================
   FADE IN RÁPIDO Y ESCALONADO
   ========================================== */
.fade-step-1, .fade-step-2, .fade-step-3 {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-step-1 { animation-delay: 0.033s; }
.fade-step-2 { animation-delay: 0.067s; }
.fade-step-3 { animation-delay: 0.1s; }

@keyframes fadeUp {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVE
   ========================================== */
@media (max-width: 768px), (max-aspect-ratio: 9/16) {
    .hero-new {
        padding-top: 15vh;
    }
    
    .neon-wave { 
        width: 150vw;
        height: 80vh;
        height: 80dvh;
        border-width: 3px;
        top: -20vh;
    }
    
    @keyframes waveEnter {
        0% { width: 170vw; height: 40vh; top: -25vh; opacity: 0; }
        100% { width: 150vw; height: 80vh; height: 80dvh; top: -20vh; opacity: 0.3; }
    }
    
    .hero-content { gap: 20px; }
    
    .hero-title-block h1 {
        font-size: clamp(3.2rem, 12vw, 4.5rem);
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn-neon-glow, .btn-outline {
        width: 100%;
    }
}