:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: rgba(255, 255, 255, 0.1);
    --secondary-hover: rgba(255, 255, 255, 0.2);
    --accent: #f59e0b;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --whatsapp: #25D366;
    
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    /* Evita que el scroll suave interfiera abruptamente con snap en algunos navegadores */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden; /* Se oculta el scroll del body para usar el del contenedor snap */
}

/* --- SNAP SCROLL CONTAINER --- */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
}
.snap-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* --- GLASSMORPHISM UTILITIES --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

/* --- SECTION 1: HERO --- */
.hero-section {
    padding: 0;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}

.hero-section .content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 3rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out forwards;
}

.main-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px; /* Tamaño máximo para el logo en escritorio */
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); /* Sombra para que resalte sobre el video */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    animation: bounce 2s infinite;
    font-size: 0.9rem;
}

.scroll-indicator i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* --- SECTION 2: FEATURES --- */
.features-section {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, var(--bg-color) 50%);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* --- SECTION 3: PROVIDERS --- */
.providers-section {
    background: radial-gradient(circle at bottom left, rgba(37, 211, 102, 0.1) 0%, var(--bg-color) 60%);
}

.dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.provider-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.p-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.p-feature i {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 16px;
}

.p-feature i.logo-wp {
    color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.1);
}

.p-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.p-feature p {
    color: #94a3b8;
}

.visual-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0; /* Crucial para evitar que Swiper rompa el CSS Grid */
    overflow: hidden;
}

/* --- SWIPER SLIDER --- */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.swiper-slide {
    /* Mantenemos un aspect-ratio típico de celular para las capturas */
    aspect-ratio: 9/16;
    border-radius: 30px; /* Bordes redondeados estilo smartphone */
    overflow: hidden;
    /* Eliminamos bordes y sombras para no hacer recuadro */
    background: transparent;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Las capturas llenarán el espacio del celular virtual */
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* --- SECTION 4: REGISTRO --- */
.register-section {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    flex-direction: column;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
}

.register-info {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.register-info p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.register-form {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.optional {
    color: #64748b;
    font-weight: 400;
    font-size: 0.8rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.2rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
    background-color: var(--primary);
    color: white;
    font-size: 1.1rem;
    padding: 1.2rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.site-footer {
    position: absolute;
    bottom: 1rem;
    text-align: center;
    width: 100%;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .dual-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .register-container {
        grid-template-columns: 1fr;
    }
    .register-info {
        padding: 2rem;
        text-align: center;
    }
    .register-form {
        padding: 2rem;
    }
    .snap-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 2rem;
    }
    .hero-section {
        padding: 0;
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    .hero-section .content-wrapper {
        padding: 2rem 1.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
