/* =================================================================
||  VARIABLES GLOBALES Y ESTILOS BASE
================================================================== */
:root {
    --negro-pizarra: #0a0a0a;
    --blanco-quirurgico: #FFFFFF;
    --oro-sutil: #D4AF37;
    --gris-oscuro: #1A1A1A;
    --font-titulos: 'Playfair Display', serif;
    --font-cuerpo: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: #000; font-family: var(--font-cuerpo); overflow-x: hidden; cursor: default; }
body.no-scroll { overflow: hidden; }

#interactive-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =================================================================
||  PRELOADER Y HEADER
================================================================== */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--negro-pizarra); z-index: 1000; opacity: 1; display: flex; justify-content: center; align-items: center; }
#matrix-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; }
.invisible { opacity: 0; pointer-events: none; }
#fase-genesis, #fase-iluminacion { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1001; }
#palabra-final { font-family: var(--font-titulos); font-size: 8vw; color: var(--blanco-quirurgico); text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
#power-button { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--oro-sutil); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.4s ease; }
#power-button svg { width: 50px; height: 50px; color: var(--oro-sutil); transition: all 0.4s ease; }
#power-button:hover { background-color: var(--oro-sutil); box-shadow: 0 0 25px var(--oro-sutil); transform: scale(1.1); }
#power-button:hover svg { color: var(--negro-pizarra); }
#texto-invitacion { color: var(--blanco-quirurgico); margin-top: 20px; font-size: 1.2rem; letter-spacing: 2px; text-shadow: 0 0 5px var(--oro-sutil); }
#header-principal { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 900; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); }
.logo { font-family: var(--font-titulos); font-size: 2rem; font-weight: 700; color: var(--oro-sutil); }
.menu-navegacion a { color: var(--blanco-quirurgico); margin-left: 30px; text-decoration: none; font-weight: 700; font-family: var(--font-cuerpo); transition: color 0.3s, text-shadow 0.3s; }
.menu-navegacion a:hover { color: var(--oro-sutil); text-shadow: 0 0 10px var(--oro-sutil); }

/* =================================================================
||  BOTÓN CTA PREMIUM
================================================================== */
.cta-button-final {
    position: relative;
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    font-family: var(--font-cuerpo);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    letter-spacing: 1px;
    color: var(--negro-pizarra);
    border: 2px solid var(--oro-sutil);
    border-radius: 50px;
    background: var(--oro-sutil);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
}
.cta-button-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}
.cta-button-final:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6);
    color: #000;
}
.cta-button-final:hover::before {
    left: 100%;
}

/* =================================================================
||  SECCIONES INICIALES Y ANIMACIONES
================================================================== */
section { position: relative; z-index: 2; padding: 120px 5%;}
.titulo-animado, .texto-animado {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.titulo-animado.visible, .texto-animado.visible {
    opacity: 1;
    transform: translateY(0);
}
#gancho { height: 100vh; width: 100%; overflow: hidden; padding: 0;}
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.video-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,1) 5%, transparent 60%); }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.gancho-content-layout { position: absolute; bottom: 10%; width: 90%; left: 5%; display: flex; justify-content: space-between; align-items: flex-end; }
.texto-inferior-izquierda { max-width: 45%; }
.linea-animada { overflow: hidden; padding: 0.1rem 0; }
.gancho-titulo-izquierdo, .gancho-subtitulo-derecho { transform: translateY(110%); }
.texto-aura { font-family: var(--font-titulos); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blanco-quirurgico); line-height: 1.3; text-shadow: 0 0 5px rgba(255,255,255,0.7); }
.gancho-subtitulo-derecho { font-size: clamp(1rem, 2vw, 1.5rem); color: #ccc; font-family: var(--font-cuerpo); }
.section-maquina-escribir { min-height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.contenido-manifiesto { text-align: center; padding: 2rem; }
.titulo-manifiesto { font-family: var(--font-titulos); font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; line-height: 1.4; color: var(--blanco-quirurgico); }
.text-gold { color: var(--oro-sutil); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.titulo-manifiesto .palabra-dorada { color: var(--oro-sutil); animation: pulse-glow 2s infinite ease-in-out; }
.typed-cursor { font-size: clamp(2rem, 5vw, 4rem); color: var(--oro-sutil); animation: blink 0.7s infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-glow { 0%, 100% { text-shadow: 0 0 10px var(--oro-sutil), 0 0 20px var(--oro-sutil); } 50% { text-shadow: 0 0 20px #fff, 0 0 30px var(--oro-sutil); } }


/* =================================================================
||  SECCIÓN #3: GALERÍA HORIZONTAL
================================================================== */
#sistema-galeria { padding: 0; }
.galeria-horizontal-container { height: 100vh; width: 100%; overflow: hidden; }
.galeria-track { height: 100%; display: flex; flex-wrap: nowrap; width: 800%; }
.panel { height: 100%; width: 100vw; flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 5vw; color: var(--blanco-quirurgico); }
.panel-contenido { display: flex; justify-content: space-around; align-items: center; gap: 5%; width: 100%; max-width: 1200px; }
.panel-texto { flex-basis: 40%; max-width: 480px; }
.panel-texto h3 { font-family: var(--font-titulos); font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.3; margin-bottom: 20px; }
.panel-texto p { font-size: 1.1rem; line-height: 1.8; color: #ddd; }
.panel-imagenes { flex-basis: 55%; display: flex; justify-content: center; align-items: center; }
.imagen-principal { max-width: 100%; height: 60vh; object-fit: contain; border-radius: 10px; }
.multi-imagen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; width: 100%; }
.multi-imagen img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(212, 175, 55, 0.4); }
.audio-panel { justify-content: center; }
.panel-contenido-audio { text-align: center; max-width: 600px; }
.panel-contenido-audio h3 { font-family: var(--font-titulos); font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 20px;}
.panel-contenido-audio p { font-size: 1.2rem; line-height: 1.8; color: #ccc;}
.sound-animation { display: flex; justify-content: center; align-items: flex-end; height: 60px; margin-top: 30px; }
.bar { width: 8px; margin: 0 4px; background: var(--oro-sutil); box-shadow: 0 0 5px var(--oro-sutil); animation: sound-wave 1.2s infinite ease-in-out; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }
.bar:nth-child(5) { animation-delay: 0.8s; }
@keyframes sound-wave { 0%, 100% { height: 5px; opacity: 0.5; } 50% { height: 60px; opacity: 1; } }

/* =================================================================
||  NUEVAS SECCIONES Y FAQ
================================================================== */
#valor-real, #costo-de-esperar { text-align: center; color: var(--blanco-quirurgico); }
#valor-real .subtitulo-valor { max-width: 700px; margin: 20px auto 30px; font-size: 1.2rem; color: #ccc; }
.precio-ancla { font-family: var(--font-titulos); font-size: clamp(4rem, 10vw, 8rem); color: var(--oro-sutil); text-shadow: 0 0 20px var(--oro-sutil); margin: 10px 0; text-decoration: line-through; opacity: 0.7; }
#costo-de-esperar h2 { max-width: 900px; margin: 0 auto 50px; }
.columnas-costo { display: flex; max-width: 1100px; margin: 0 auto; gap: 40px; }
.columna { flex: 1; background: var(--gris-oscuro); padding: 30px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.2); }
.columna h3 { color: var(--oro-sutil); margin-bottom: 15px; font-family: var(--font-titulos); font-size: 1.5rem; }
.columna p { color: #ccc; line-height: 1.8; }
#faq { max-width: 900px; margin: 0 auto; }
.titulo-faq { text-align: center; margin-bottom: 60px; font-family: var(--font-titulos); font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.3; color: var(--blanco-quirurgico); }
.faq-item { border-bottom: 1px solid rgba(212, 175, 55, 0.3); margin-bottom: 20px; }
.faq-pregunta { padding: 20px 0; font-size: 1.3rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--blanco-quirurgico); }
.faq-icono { font-size: 2rem; color: var(--oro-sutil); transition: transform 0.3s ease; }
.faq-respuesta { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.faq-respuesta p { padding: 0 0 20px; line-height: 1.8; color: #ccc; }
.faq-item.abierto .faq-icono { transform: rotate(45deg); }

/* =================================================================
||  SECCIONES #4, #5, #6, #7
================================================================== */
#tratado-de-paz { min-height: 100vh; width: 100%; display: flex; align-items: center; }
.contenido-tratado { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; }
.texto-tratado { flex-basis: 45%; }
.imagen-tratado-container { flex-basis: 50%; text-align: center; }
.imagen-tratado-container img { max-width: 100%; height: auto; border-radius: 15px; box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
.texto-tratado h2 { font-family: var(--font-titulos); font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.3; margin-bottom: 25px; color: var(--blanco-quirurgico); }
.texto-tratado p { font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.9; color: #ddd; }
.cta-button-final.cta-tratado { margin-top: 40px; }
#testimonios-negativos { text-align: center; }
.contenido-testimonios { max-width: 800px; margin: 0 auto; }
.titulo-seccion-testimonios { font-family: var(--font-titulos); font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 40px; line-height: 1.3; color: var(--blanco-quirurgico); }
.subtitulo-testimonios { font-size: 1.2rem; line-height: 1.9; color: #ccc; margin-bottom: 50px; }
#garantia { padding: 120px 20px; background: transparent; overflow: hidden; }
.hojas-content { max-width: 1100px; margin: 0 auto; text-align: center; }
.hojas-titulo { font-family: var(--font-titulos); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--blanco-quirurgico); margin-bottom: 60px; line-height: 1.3; }
.hojas-texto-container { display: flex; align-items: center; gap: 50px; background: rgba(10, 10, 10, 0.8); padding: 40px; border-radius: 10px; border: 1px solid var(--oro-sutil); backdrop-filter: blur(5px); }
.hojas-ebook-cover { max-width: 280px; flex-shrink: 0; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.texto-garantia { text-align: left; }
.texto-garantia p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; color: #ddd; }
.conclusion-garantia { font-weight: 700; color: var(--blanco-quirurgico); font-style: italic; }
#garantia .cta-button-final { margin-top: 60px; }
#video-particulas { min-height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; padding: 40px 5%;}
.video-final-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
.video-container-final { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; border-radius: 20px; box-shadow: 0 0 60px rgba(212, 175, 55, 0.4); overflow: hidden; border: 3px solid var(--oro-sutil); position: relative; }
.video-container-final video { width: 100%; height: 100%; object-fit: cover; }
.texto-video-superpuesto { text-align: center; margin-bottom: 40px; }
.texto-video-superpuesto h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 400; color: var(--blanco-quirurgico); }
.texto-video-superpuesto h2 { font-family: var(--font-titulos); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; color: var(--blanco-quirurgico); }
.cta-video-final-container { text-align: center; margin-top: 50px; max-width: 700px; }
.cta-video-final-container p { color: #ccc; font-size: 1.2rem; line-height: 1.8; margin-bottom: 30px; }
.precio-tachado { text-decoration: line-through; opacity: 0.7; margin-right: 10px; }
.precio-final { color: var(--oro-sutil); font-weight: 700; font-size: 1.5rem; }
.precio-comparativo { font-weight: 700; color: #ff6b6b; }


/* =================================================================
||  OPTIMIZACIÓN RESPONSIVE
================================================================== */

@media (max-width: 900px) {
    /* --- General --- */
    section { padding: 80px 5%; }
    .gancho-content-layout { flex-direction: column; align-items: flex-start; gap: 15px; }
    .texto-inferior-izquierda { max-width: 100%; }
    .texto-inferior-derecha { max-width: 100%; }

    /* --- Galería Vertical en Móvil --- */
    .galeria-horizontal-container { height: auto; }
    .galeria-track { width: 100%; flex-direction: column; }
    .panel { width: 100%; height: auto; padding: 60px 20px; flex-shrink: unset; }
    .panel-contenido { flex-direction: column; text-align: center; }
    .panel-texto { order: 2; margin-top: 30px; }
    .panel-imagenes { order: 1; }
    .imagen-principal { height: auto; max-height: 40vh; }

    /* --- Otros Ajustes --- */
    .contenido-tratado { flex-direction: column; text-align: center; }
    .texto-tratado { order: 2; margin-top: 40px;}
    .imagen-tratado-container { order: 1; max-width: 80%; }
    #tratado-de-paz { min-height: auto; }
    .hojas-texto-container { flex-direction: column; }
    .hojas-ebook-cover { margin-bottom: 30px; max-width: 220px;}
    .texto-video-superpuesto { margin-bottom: 30px; }
    .video-final-content { padding: 20px; }
    .columnas-costo { flex-direction: column; }
}

@media (max-width: 600px) {
    .texto-aura { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .gancho-subtitulo-derecho { font-size: clamp(1rem, 4vw, 1.2rem); }
    .multi-imagen { grid-template-columns: 1fr 1fr; }
    .multi-imagen img { height: 150px; }
    .panel-texto h3 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .faq-pregunta { font-size: 1.1rem; }
    .titulo-seccion-testimonios { font-size: clamp(2.5rem, 8vw, 3rem); }
}