* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gris: #3d3d3d;
    --naranja: #ff8800;
    --lila-suave: #c8d2ff;
    --rosado: #4de0ff;
    --morado: #052850;
    --rosa-pastel: #7e90f8;
    --azul-pastel: rgb(224, 231, 255);
}

/* TITULOS */
h2 {
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    color: var(--gris);
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--rosado);
    margin: 1rem auto 0;
    border-radius: 2px;
}

section {
    padding: 2rem 2rem;
}

body {
    background-color: var(--lila-suave);
}

/* Estilos nav */
.nav {
    background-color: rgb(50, 50, 50);
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    height: 2.7rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links.active {
  display: flex !important;
}


.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--morado);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* Estilos hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: start;
    overflow: hidden;
    padding: 6rem 2rem;
    padding-top: 30rem;
    padding-left: 15rem;
}

.hero-content {
    max-width: 50%;
    padding-left: 8rem;
    position: relative;
    z-index: 3;
    padding: 0 2rem;
}

.hero-img-pc img, .hero-img-movil img {
    width: auto;
    height: 100vh;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(80%);
}

.hero-img-pc {
    display: block;
}

.hero-img-movil {
    display: none;
}

.btn-naranja {
    background-color: var(--rosado);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-naranja:hover {
    background-color: var(--morado);
}


/* que aprenderas */

.ia-carousel-container {
  overflow: hidden;
  position: relative;
}

.ia-carousel {
  display: flex;
  gap: 1.5rem;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ia-card {
  flex: 0 0 auto;
  width: 150px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.ia-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.ia-card:hover {
  transform: scale(1.05);
}

.ia-card p {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  font-family: "Poppins", sans-serif;
}
.ia-carousel-container:hover .ia-carousel {
  animation-play-state: paused;
}




/* beneficios */
.beneficios {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.beneficios-titulo {
  font-size: 2rem;
  color: #000629;
  margin-bottom: 3rem;
  font-weight: 700;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.beneficio {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-beneficio {
  font-size: 2rem;
  color: #000629;
  margin-bottom: 1rem;
}

.beneficio p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

.sello-container-nuevo {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.sello-img {
  width: 150px;
  height: auto;
}


.beneficios {
  background: #f9fafc;
  padding: 4rem 15rem;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #1d3557;
}

.tarjetas-beneficios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tarjeta-beneficio {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-beneficio:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tarjeta-beneficio img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.tarjeta-beneficio h3 {
  font-size: 1.3rem;
  color: #1d3557;
  margin-bottom: 0.5rem;
}

.tarjeta-beneficio p {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.4;
}



/* Precio */
.precios-container {
    background-color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.mensaje-precio {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--gris);
    font-weight: 500;
}

.mensaje-precio span {
    color: var(--rosado);
    font-weight: bold;
}

.precios-box {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.precio-card {
    background-color: #f9f9f9;
    border-radius: 1rem;
    padding: 2rem;
    width: 260px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.icono-precio {
    font-size: 2.5rem;
    color: var(--gris);
    margin-bottom: 1rem;
}

.precio-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--gris);
    margin-bottom: 0.5rem;
}

.precio {
    font-size: 2rem;
    font-weight: bold;
    color: var(--rosa-pastel);
    margin-bottom: 0.5rem;
}

.precios-container .btn-naranja {
    margin-top: 3rem;
    display: inline-block;
}

/* Boton al punto naranja */
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--naranja);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 999;
}

.btn-whatsapp i {
    line-height: 60px;
}

.modalidad {
    padding: 3rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.modulo {
    flex: 1 1 150px;
}

.modulo h3 {
    color: var(--gris);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

.txt-mod {
    font-size: 1.2rem;
}

.emoji {
    font-size: 2.5em;
}

/* ideal para */
.publico-grid {
  background: var(--azul-pastel);
  color: var(--morado);
  text-align: center;
  padding: 3rem 2rem;
}

.publico-grid h2 {
  margin-bottom: 2rem;
}

.publico-contenido {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: left;
}

.imagen-publico img {
  width: 480px;
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.grid-publico {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 400px;
}


.grid-publico div {
  background: var(--rosa-pastel);
  padding: 1.5rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Estilos footer */
.footer {
    background-color: var(--gris);
    color: white;
    padding: 1rem;
    font-size: 1rem;
}

.footer-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 1rem;
}

.footer-col {
    flex: 1 1 30%;
    min-width: 250px;
}

.ft-logo {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.redes h6 {
    margin-bottom: 0.5em;
    font-size: 1.5em;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    gap: 0.5em;
}

.social-list li a {
    color: white;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-list li a:hover {
    color: var(--morado);
}

.direccion h6 {
    margin-bottom: 0.5em;
    font-size: 1.5em;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
}

.direccion p {
    margin: 0.3em 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.copy {
    text-align: center;
    padding-bottom: 0;
}


/* ========================================= */
/* ESTILOS RESPONSIVOS PARA MÓVILES (768px o menos) */
/* ========================================= */
@media (max-width: 768px) {
    
    /* --- AJUSTES GENERALES --- */
    h2 {
        font-size: 2rem; /* Reducir tamaño de títulos principales */
    }

    section {
        /* Reducir el padding horizontal en todas las secciones */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .btn-naranja {
        font-size: 1rem;
        padding: 0.7em 1.4em;
    }
    
    /* --- NAVEGACIÓN --- */
    .nav-container {
        padding: 0 1rem; /* Menos padding en la barra de navegación */
    }

    .nav-logo {
        height: 2.5rem; /* Ajustar tamaño del logo */
    }

    .menu-toggle {
        display: block; /* Mostrar el ícono de hamburguesa */
    }

    .nav-links {
        display: none; /* Ocultar el menú por defecto */
        position: absolute;
        top: 100%; /* Posicionar justo debajo del nav */
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgb(50, 50, 50);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex !important; /* Mostrar el menú al hacer clic */
    }

    /* --- SECCIÓN HERO --- */
    .hero {
        padding: 8rem 1.5rem 4rem 1.5rem; /* Ajustar padding para centrar contenido */
        height: auto; /* Altura automática */
        text-align: center; /* Centrar el texto */
        min-height: 80vh;
    }

    .hero-content {
        max-width: 100%; /* Ocupar todo el ancho disponible */
        padding: 0;
        text-align: center;
    }

    .hero-img-pc {
        display: none; /* Ocultar imagen de escritorio */
    }

    .hero-img-movil {
        display: block; /* Mostrar imagen de móvil */
    }

    .hero-img-movil img {
        top: 0;
        object-fit: cover; /* Asegurar que la imagen cubra el fondo */
        filter: brightness(60%); /* Oscurecer un poco para legibilidad */
    }

    /* --- SECCIÓN BENEFICIOS --- */
    .beneficios {
        padding: 3rem 1.5rem; /* Reducir padding horizontal */
    }
    
    .tarjetas-beneficios {
        flex-direction: column; /* Apilar tarjetas verticalmente */
        align-items: center;
        gap: 1.5rem;
    }

    .tarjeta-beneficio {
        max-width: 100%; /* Permitir que las tarjetas ocupen más ancho */
    }

    /* --- SECCIÓN PÚBLICO OBJETIVO --- */
    .publico-grid {
        padding: 3rem 1.5rem;
    }

    .publico-contenido {
        flex-direction: column; /* Apilar imagen y texto */
        align-items: center;
        text-align: center;
    }

    .grid-publico {
        text-align: left;
    }

    /* --- MÓDULOS AVANZADOS --- */
    .modulos-avanzados {
        padding: 3rem 1.5rem;
    }

    .fila-modulo, .fila-modulo.invertido {
        flex-direction: column !important; /* Apilar imagen y contenido */
        text-align: center;
        gap: 1rem;
    }

    .fila-modulo .contenido {
        padding: 1rem 0;
    }

    /* --- SECCIÓN PRECIOS --- */
    .precios-container {
        padding: 3rem 1.5rem;
    }

    .mensaje-precio {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* --- VIDEO --- */
    .video-container {
        padding: 3rem 1.5rem;
    }

    .video-content {
        flex-direction: column; /* Apilar video y texto */
        text-align: center;
    }

    .video-texto h2 {
        text-align: center; /* Centrar título del video */
    }
     .video-texto h2::after {
        margin: 1rem auto 0; /* Centrar la línea debajo del título */
    }

    /* --- FAQ --- */
    .faq {
        padding: 3rem 1.5rem;
    }

    /* --- FOOTER --- */
    .footer-container {
        flex-direction: column; /* Apilar columnas del footer */
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .footer-col {
        flex-basis: 100%; /* Cada columna ocupa todo el ancho */
    }

    .ft-logo {
        max-width: 180px; /* Ajustar tamaño del logo en footer */
        margin: 0 auto;
    }

    .social-list {
        justify-content: center; /* Centrar íconos de redes sociales */
    }

    .direccion p {
        text-align: center;
    }
}


.modulos-avanzados {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}
.titulo-seccion {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.fila-modulo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}
.fila-modulo .contenido, .fila-modulo .imagen {
  flex: 1 1 50%;
}

.fila-modulo .contenido {
  flex: 1 1 500px;
  padding: 20px;
}

.fila-modulo .contenido h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.fila-modulo .contenido p {
  font-size: 1.1rem;
  color: #555;
}

.fila-modulo .imagen {
  flex: 1 1 400px;
  text-align: center;
}

.fila-modulo .imagen img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Invertir orden para módulos alternos */
.fila-modulo.invertido {
  flex-direction: row-reverse;
}
.fila-modulo .contenido p.intro {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #333;
}


.lista-detalles {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lista-detalles li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: #555;
  font-size: 0.95rem;
}

.lista-detalles li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #007bff;
  font-size: 0.9rem;
}




/* faq */
.faq {
    background-color: white;
    padding: 4rem 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-pregunta {
    background-color: #eee;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-respuesta {
    display: none;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.faq-respuesta.activa {
    display: block;
}

.flecha span{
    columns: var(--rosa-pastel);
}


.video-container {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.video-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.video-box {
  flex: 1 1 500px;
  min-width: 300px;
}

.video-texto {
  flex: 1 1 400px;
  min-width: 280px;
}

.video-texto h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.video-texto p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================= */
/* CORRECCIÓN DE DESBORDAMIENTO HORIZONTAL */
/* ========================================= */
html, body {
    overflow-x: hidden;
}

.ia-carousel-container {
    width: 100%;
}


