/* Reset y Variables */
:root {
    --bg-color: #0a0a0b;
    --accent-color: #00d2ff;
    --accent-secondary: #3a7bd5;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --premium-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --font-main: 'Outfit', sans-serif;
    --font-kids: 'Fredoka One', cursive;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.95)), url("./Marketing/FOTOSS.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-in-out;
}

.preloader-content {
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.preloader-tag {
    display: inline-block;
    background: linear-gradient(90deg, #ff4b2b, #ff8533);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.98); box-shadow: 0 0 10px rgba(255, 75, 43, 0.4); }
    100% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 75, 43, 0.8); }
}

.preloader-headline {
    font-family: var(--font-kids);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.highlight-pre {
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-subheadline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: loading 5s cubic-bezier(0.4, 0, 0.2, 1) forwards, gradientMove 2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), 0 0 5px rgba(0, 210, 255, 0.8);
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

body.content-ready #preloader {
    opacity: 0;
    pointer-events: none;
}

/* --- Animaciones de Entrada --- */
.initial-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 1.5s ease-out, filter 1.5s ease-out;
}

body.loaded .initial-fade {
    opacity: 0;
    filter: blur(20px);
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body.loaded .fade-in-element {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navegación --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    backdrop-filter: blur(8px);
}

.nav-main {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Banner de Urgencia --- */
.urgency-banner {
    width: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee {
    display: inline-block;
    animation: marquee 40s linear infinite;
    padding-left: 100%; /* Empieza desde la derecha de la pantalla */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.logo {
    font-family: var(--font-kids);
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

.logo .plan { color: #fff; }
.logo .veo { color: var(--accent-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #ffffff; /* Blanco puro */
    text-shadow: 0 2px 8px rgba(0,0,0,1); /* Sombra fuerte para lectura */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-color); opacity: 0.8; }

.btn-nav {
    background: var(--premium-gradient);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: white !important;
    font-weight: 700 !important;
}

/* --- Hero & Scroll Animation Section --- */
#scroll-video-container {
    position: relative;
    height: 700vh; /* Aumentado para que la animación de 50 frames sea más fluida */
    width: 100%;
}

#hero-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.scroll-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin-top: -100vh; /* Para que el primer texto empiece arriba */
}

.content-step {
    height: 200vh; /* Mucho más espacio entre textos para que no se pisen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Cuando el JS active la opacidad, también quitamos el desplazamiento */
.content-step[style*="opacity: 1"] {
    transform: translateY(0);
}

.content-step h1, .content-step h2 {
    font-family: var(--font-kids);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    color: #fff; /* Usamos color blanco con sombra para mayor impacto */
    text-shadow: 0 0 30px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}

.content-step p {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
}

/* --- Secciones de Información --- */
.info-section {
    padding: 10vh 5%;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

h3 {
    font-family: var(--font-kids);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    margin-top: 2rem;
}

.info-card ul li::before {
    content: "✓";
    color: var(--accent-color);
    margin-right: 1rem;
    font-weight: bold;
}

/* --- Sección Hero con Vídeo de Fondo --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 170px 5% 60px; /* Suficiente espacio arriba para no tapar con el nav fixed */
    overflow: hidden;
    background-color: var(--bg-color);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.8) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-family: var(--font-kids);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 210, 255, 0.2);
}

.hero-content .hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    background: none;
    padding: 0;
}

.quick-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 210, 255, 0.2);
}

.hero-note {
    margin-top: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-note a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hero-note a:hover {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 5%;
    }
    
    .quick-benefits {
        align-items: center;
    }
}

.form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.1), inset 0 0 20px rgba(0, 210, 255, 0.05);
    padding: 3.5rem;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(0, 210, 255, 0.2), inset 0 0 20px rgba(0, 210, 255, 0.1);
}

.form-header h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    line-height: 1.35;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.form-urgency {
    display: inline-block;
    background: rgba(255, 75, 43, 0.1);
    border: 1px solid rgba(255, 75, 43, 0.4);
    color: #ff4b2b;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulseGlow 1.5s infinite alternate;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.7;
}

.premium-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border-radius: 15px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.premium-form input:hover {
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(0, 210, 255, 0.02);
}

.premium-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.premium-form input:focus::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-main {
    background: var(--premium-gradient);
    color: white;
    border: none;
    padding: 1.4rem;
    border-radius: 15px;
    font-family: var(--font-kids);
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
    animation: none;
}

footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* --- MEDIA QUERIES PARA MÓVILES Y TABLETS --- */

@media (max-width: 768px) {
    /* Navegación simplificada */
    .nav-main {
        padding: 1rem 5%;
    }
    
    .nav-links li:not(:last-child) {
        display: none; /* Ocultamos enlaces secundarios en móvil */
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Ajuste de textos en el scroll */
    .content-step h1, .content-step h2 {
        font-size: 2.2rem; /* Tamaño más pequeño para móvil */
        padding: 0 5%;
    }

    .content-step p {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        width: 90%;
    }

    /* Secciones de información */
    .info-card {
        padding: 2rem;
        border-radius: 20px;
    }

    h3 {
        font-size: 1.8rem;
    }

    /* Formulario en móvil */
    .premium-form {
        width: 100%;
        padding: 0 5%;
    }

    .btn-main {
        font-size: 1rem;
    }

    /* Ajuste del Preloader en móvil */
    .preloader-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* --- Sección Ubicación --- */
.location-section {
    padding: 8vh 5%;
    background-color: var(--bg-color);
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.location-info h3 {
    font-family: var(--font-kids);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.address-text {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.address-details {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.schedule {
    margin-bottom: 2.5rem;
}

.schedule h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.btn-map {
    display: inline-block;
    background: var(--premium-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 320px;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .location-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .location-info h3 {
        font-size: 1.9rem;
    }
}
