:root {
  --violet: #9711FB;
  --green: #0CB740;
  --bg: #0D0218;
  --white: #FFFFFF;
  --muted: #B8B8B8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- 1. HERO SECTION --- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 1.5rem 0; /* Reducido el padding inferior a 0 */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 2, 24, 0.9) 0%, rgba(13, 2, 24, 1) 100%);
  z-index: 2;
}

.hero-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  width: 100%;
  z-index: 3; /* Asegura que todo el contenido del hero esté sobre el overlay */
}

.hero-text {
  flex: 1;
  text-align: left;
  position: relative; /* Asegura que el z-index funcione */
  z-index: 3;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--violet), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.form-box {
  background: rgba(255, 255, 255, 0.05); /* Fondo ligeramente visible */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
  border-radius: 16px; /* Bordes redondeados */
  padding: 2rem; /* Padding uniforme para la caja */
  width: 100%; 
  max-width: 500px; /* Ancho máximo para la caja del formulario */
  margin-top: 2rem; /* Margen superior para separar del texto */
  margin-bottom: 2rem; /* Margen inferior */
}

.hero-form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los elementos del formulario */
  gap: 1rem; /* Aumentamos el espacio entre elementos */
  width: 100%;
  margin: 0; /* Eliminamos los márgenes del formulario, ahora los maneja .form-box */
}

.hero-form .inputs {
  display: flex;
  gap: 0.75rem;
  width: 100%; /* Asegura que el contenedor de inputs ocupe el ancho completo del formulario */
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  text-align: left;
}

.hero-form input {
  padding: 10px 10px; /* Padding vertical y horizontal */
  height: 52px; /* Altura ideal de 52px */
  border-radius: 10px;
  border: 1.5px solid var(--violet); /* Borde violeta por defecto */
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1rem;
  flex: 1;
  transition: border-color 0.3s ease; /* Transición suave para el foco */
}

.hero-form input:focus {
  outline: none;
  border-color: var(--green); /* Borde verde al enfocar, como recomendado */
  box-shadow: 0 0 10px rgba(12, 183, 64, 0.3); /* Sombra sutil verde */
}

.form-small-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-warning-text {
  font-size: 0.8rem;
  color: #ff6b6b; /* Un color de advertencia suave */
  width: 100%;
  max-width: 90%;
}

.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Añadido para que el z-index funcione correctamente */
  z-index: 3; /* Asegura que el video esté por encima del overlay */
}

.hero-image iframe {
  width: 100%;
  max-width: 350px; /* Ancho para simular un formato reel/móvil */
  aspect-ratio: 9 / 16; /* Proporción vertical para el formato reel */
  border-radius: 24px;
  border: none; /* Eliminamos el borde para evitar la línea fina */
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); /* Sombra más sutil */
  pointer-events: none; /* Evita que el usuario haga clic y vaya a Vimeo */
}

/* --- ESTILOS PARA ACEPTACIÓN LEGAL --- */
.legal-acceptance-container {
  margin-top: 20px; /* Separación de 20px del botón */
  width: 100%; /* Ocupa el ancho para poder centrar su contenido */
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
}

.check-task {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer; 
    user-select: none;
    color: var(--muted);
}

.check-task .legal-text {
    font-size: 14px; /* Tamaño de fuente recomendado */
    line-height: 1.4; /* Interlineado recomendado */
    max-width: 360px; /* Ancho máximo para el texto */
    text-align: left;
}

.check-task input {
    display: none;
}

.check-task .box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--violet);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

/* Cuando está marcado */
.check-task input:checked + .box {
    background: var(--violet);
    border-color: var(--violet);
}

/* icono check */
.check-task input:checked + .box::after {
    content: "✔";
    font-size: 14px;
    color: white;
    transform: scale(1);
    opacity: 1;
    transition: all 0.2s ease;
}

.check-task .box::after {
    content: "";
    opacity: 0;
    transform: scale(0.2);
}

/* --- 2. BEFORE/AFTER SECTION --- */
.before-after-section {
    background: var(--bg);
}

.three-column-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.column {
    flex: 1;
}

.video-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-column h3 {
    font-size: 1.5rem;
    text-align: center;
}

.video-column h3[data-i18n="before-title"] { color: #ff6b6b; }
.video-column h3[data-i18n="after-title"] { color: var(--green); }

.video-column iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    pointer-events: none;
    border: none;
}

.text-column {
    text-align: left;
    padding-left: 2rem; /* Espacio extra para separar del video */
}

.text-column h2 {
    text-align: left;
    margin-left: 0;
}

.text-column p {
    text-align: left;
    margin-left: 0;
    margin-bottom: 2rem;
}

/* --- GENERIC SECTION STYLES --- */
.benefits-section, .creators-section, .dashboard-section, .social-proof-section, .cta-section, .slider-section, .before-after-section, .footer {
    padding-top: 1.25rem; /* 20px para móvil */
    padding-bottom: 1.25rem; /* 20px para móvil */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

.cta-section {
    background: linear-gradient(180deg, rgba(13, 2, 24, 1) 0%, rgba(29, 29, 31, 0.9) 100%);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

section p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 4. SLIDER L-E-A-D SECTION --- */
.slider-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-direction: row-reverse; /* Invertimos el orden: Slider a la izquierda */
}

.slider-reels {
    flex: 1.5; /* Damos más peso al slider (aprox 60%) */
    max-width: 450px; /* Aumentamos el tamaño máximo */
    position: relative; /* Para posicionar los botones de navegación */
    padding: 0 50px; /* Aumentamos el espacio para los botones */
}

.slider-text-content {
    flex: 1;
    text-align: left;
}

.slider-text-content h2 {
    text-align: left;
    margin-left: 0; /* Mantenemos alineación izquierda */
}

.slider-text-content h4 {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.slide-descriptions .slide-description {
    display: none;
}

.slide-descriptions .slide-description.active {
    display: block;
}

.lead-slider .slide {
    display: none; /* Hide all slides by default */
}

.lead-slider .slide.active {
    display: block; /* Show only the active slide */
}

.slide-description h3 {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.slide-description p {
    max-width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
    margin-left: 0;
}

.slide-description ul {
    list-style: none;
}

.slide-description li {
    font-weight: 600;
}

.swiper {
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.swiper-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Estilos para la navegación y paginación de Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: var(--green);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: var(--green);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2rem !important;
}

/* --- 5. KEY BENEFITS SECTION --- */
.benefits-container {
    display: flex;
    flex-direction: row; /* Asegura el layout de 2 columnas en desktop */
    gap: 3rem;
    align-items: center;
    flex-direction: row-reverse; /* Invertimos el orden: Video a la izquierda */
}

.benefits-text {
    flex: 1.5;
    text-align: left;
}

.benefits-text h2, .benefits-text p {
    text-align: left;
    margin-left: 0;
}

.benefits-text h3 {
    font-size: 1.5rem;
    color: var(--green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.benefits-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-text li {
    margin-bottom: 0.75rem;
}

.benefits-video {
    flex: 1;
    max-width: 400px;
}

.benefits-video iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: none;
    pointer-events: none;
}

/* --- 7. DASHBOARD SECTION --- */
.dashboard-image {
    width: 100%;
    max-width: 900px; /* Ajusta el tamaño máximo según tu imagen */
    margin-top: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- NEW: CREATORS SECTION --- */
.creators-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.creators-text {
    flex: 1.5;
    text-align: left;
}

.creators-text h2, .creators-text p {
    text-align: left;
    margin-left: 0;
}

.creators-text .btn-primary {
    margin-top: 2rem;
}

.creators-video {
    flex: 1;
    max-width: 400px;
}

.creators-video iframe {
    width: 100%;
    aspect-ratio: 1 / 1; /* Formato cuadrado 1:1 para el retrato */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: none;
    pointer-events: none;
}

/* --- 8. FINAL CTA SECTION --- */
.cta-section {
    padding: 6rem 1.5rem;
}

/* --- 9. FOOTER --- */
.footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* --- SHARED FORM & BUTTON STYLES --- */
.btn-primary {
  display: inline-flex; /* Cambiado a flex para centrar contenido */
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
  background: linear-gradient(90deg, var(--violet), var(--green));
  border: none;
  color: var(--white);
  height: 52px; /* Altura ajustada para ser un poco más pequeña */
  text-decoration: none; /* Elimina el subrayado de los enlaces */
  border-radius: 10px; /* Borde recomendado */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 480px; /* Ancho máximo recomendado */
  padding: 10px 10px; /* Padding ajustado para el nuevo tamaño */
  margin-top: 0.5rem; 
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(151, 17, 251, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--disabled {
  opacity: 0.5;
  cursor: default; /* El cursor normal, no el de prohibido */
  pointer-events: none; /* Evita los efectos hover/active */
}

/* --- RESPONSIVE DESIGN --- */

/* --- 6. SOCIAL PROOF SECTION --- */
.social-proof-section {
    overflow: hidden; /* Oculta el desbordamiento para el carrusel */
}
.social-proof-section::before, .social-proof-section::after {
    /* ... existing styles ... */
}

.testimonials-scroller {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.social-proof-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50px; /* Ajusta el ancho del fundido */
    height: 100%;
    background: linear-gradient(to left, rgba(13, 2, 24, 0) , var(--bg));
    z-index: 10;
}
.social-proof-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 50px; /* Ajusta el ancho del fundido */
    height: 100%;
    background: linear-gradient(to right, rgba(13, 2, 24, 0) , var(--bg));
    z-index: 10;
}
.testimonials-scroller:hover {
    animation-play-state: paused;
}

.testimonials-grid {
    display: flex; /* Cambiado a flex para el carrusel horizontal */
    gap: 2rem;
    margin-top: 3rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50%)); /* Desplaza la mitad del contenedor total */
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    width: 380px; /* Ancho fijo para las tarjetas */
    flex-shrink: 0; /* Evita que las tarjetas se encojan */
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-align: left;
    margin-left: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--green);
}

.author-name {
    font-weight: 700;
    color: var(--white);
}

.author-title {
    font-size: 0.9rem;
    color: var(--muted);
}

/* --- RESPONSIVE SPACING (TABLET) --- */
@media (min-width: 768px) {
    .benefits-section, .dashboard-section, .social-proof-section, .cta-section, .slider-section, .before-after-section, .footer {
        padding-top: 2rem; /* 32px para tablet */
        padding-bottom: 2rem; /* 32px para tablet */
    }
}

/* --- RESPONSIVE SPACING (DESKTOP) --- */
@media (min-width: 1100px) {
    .benefits-section, .dashboard-section, .social-proof-section, .cta-section, .slider-section, .before-after-section, .footer {
        padding-top: 1.5rem; /* 24px para desktop */
        padding-bottom: 1.5rem; /* 24px para desktop */
    }
}
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text p {
        max-width: 100%;
        text-align: left; /* Asegura la alineación del párrafo */
    }
    .hero-form {
        align-items: center;
    }
    .hero-form .inputs {
        flex-direction: column;
    }
    .three-column-container {
        flex-direction: column;
    }
    .benefits-container {
        flex-direction: column; /* Mantenemos el orden natural: texto y luego video */
        text-align: center;
    }
    .slider-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .slide-image {
        order: 1;
        min-height: 250px;
        width: 100%;
    }
    .slider-text-content {
        text-align: center;
    }
    .slider-text-content h2, .slider-text-content h4 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .testimonials-grid {
        /* No se necesitan cambios aquí, ya es flex */
    }
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 3.5rem;
    right: 3.5rem;
    z-index: 1001;
}

.lang-selector-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lang-selector-btn svg {
    stroke: var(--green);
}

.lang-selector-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(29, 29, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    list-style: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    min-width: 120px;
}

.lang-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.lang-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header Fijo */
.main-header {
    position: fixed;
    top: 3.5rem;
    left: 3.5rem;
    z-index: 1001;
}

.header-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(151, 17, 251, 0.3));
}

/* Estilos para el Modal de Cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 24, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.95), rgba(13, 2, 24, 0.98));
    border: 1px solid rgba(151, 17, 251, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.cookie-modal-content h3 {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.cookie-modal-content > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.cookie-category {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
}

.cookie-category:last-of-type {
    padding-bottom: 0;
}

.cookie-category strong {
    color: var(--white);
    font-size: 1.1rem;
}

.cookie-category p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    max-height: 0; /* Oculto por defecto */
    overflow: hidden; /* Oculta el contenido que se desborda */
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out; /* Transición suave */
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cookie-toggle label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
}