/* =============================
   VARIABLES Y RESET GLOBAL
   ============================= */
:root {
  --bg: #0b1020;
  --text: #0e1324;
  --muted: #6a7280;
  --brand: #092a4a;
  /* azul header/botones */
  --brand-2: #0e3c6b;
  --card-bg: #ffffff;
  --card-tint: rgba(9, 42, 74, 0.06);
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(14, 19, 36, 0.08);


  --white: #fff;
  --black: #000000;
  --blue-dark: #1a3e6e;
  --blue-header: #002349;
  --blue-light: #E9F1FA;
  --blue-hover: #c5dffc;
  --gray-dark: #444;
  --gray-light: #f6fafd;
  --gray-border: #e5e7eb;
  --gray-muted: #222;
  --gray-light-alt: #eaf3fb;
  --text-primary: #111827;
  --text-secondary: #0f172a;
  --text-accent: #0b1225;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f6fafd;
  color: var(--text);
  min-height: 100vh;
}

/* Header */
header {
  background: var(--blue-header);
  color: var(--white);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.logo span {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  float: right
}

.login {
  background: var(--blue-light);
  color: var(--black);
  padding: 0.2rem 0.8rem;
  border-radius: 0.25rem;
  border: 1px solid var(--blue-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
}

.login:hover {
  background: var(--blue-hover);
  color: var(--black);
}


.lang-btn {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--blue-dark);
  border-radius: 0.25rem;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.lang-btn:hover:not(.active),
.lang-btn:focus:not(.active) {
  background: var(--blue-hover);
  color: var(--black);
}

/* HERO LAYOUT CENTERED WITH "NUESTRO COMPROMISO" BELOW IMAGE */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: linear-gradient(180deg, var(--gray-light) 70%, var(--gray-light-alt) 100%);
  border-radius: 18px;
  margin: 2rem auto 0 auto;
  max-width: 900px;
  padding: 2rem 1rem;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-center h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  text-align: center;
}

.hero-desc {
  font-size: 1.3rem;
  color: var(--gray-dark);
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.cta-button {
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 2.5rem;
}

.cta-button:focus {
  outline: 2px solid var(--brand);
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 62, 110, 0.08);
  object-fit: cover;
}

.features-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4rem;
  margin-top: 2.5rem;
  width: 100%;
}

.features-below {
  background: var(--white);
  border-radius: 16px;  
  box-shadow: 0 2px 12px rgba(26, 62, 110, 0.04);
  padding: 2.5rem 2rem;
  min-width: 260px;
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-below h2 {
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.features-below p {
  font-size: 1.15rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

.feature-image-right {
  max-width: 300px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 62, 110, 0.08);
  align-self: center;
}

@media (max-width: 900px) {
  .features-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .features-below {
    max-width: 98vw;
    padding: 1.5rem 1rem;
    text-align: center;
    align-items: center;
  }

  .features-below h2 {
    font-size: 1.3rem;
  }

  .features-below p {
    font-size: 1rem;
  }

  .feature-image-right {
    max-width: 90vw;
    margin-left: 0;
  }
}

/* Liders Section */
.liders {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  text-align: center;
}

.liders h2 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
}

.liders-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.liders-track {
  display: flex;
  transition: transform 0.3s;
  will-change: transform;
}

.liders-card {
  min-width: 9.375rem;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liders-card img {
  max-width: 6.25rem;
  height: auto;
}

/* ====== SECCIÓN: TESTIMONIALS ====== */
.testimonials {
  padding: 0 1.5rem;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--black);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #0f172a;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.testimonial-text p {
  font-style: italic;
}

.testimonial-from {
  font-weight: 600;
}

.testimonial-city {
  opacity: 0.7;
}


/* ====== SECCIÓN: CONTACTO ====== */
.contact {
  max-width: 900px;
  margin: 3rem auto 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26, 62, 110, 0.04);
  padding: 2rem 1rem;
}

/* Título y Contenedor (mantener igual) */
.contact h1 {
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: center;
}

form {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  text-align: left;
}

fieldset {
  border: none;
}


li {
  margin-bottom: 1.2rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--blue-dark);
}

/* NUEVOS ESTILOS: Dos columnas para Nombre y Apellido */
.form-row {
  display: flex;
  /* Habilitar Flexbox en la fila */
  gap: 1.2rem;
  /* Espacio entre los dos campos */
}

.form-row .input-group {
  width: 50%;
  /* Cada campo ocupa la mitad del espacio */
}

/* Asegura que el contenedor de grupo dentro de la fila también use el estilo de la lista */
.form-row .input-group label {
  margin-bottom: 0.3rem;
}

/* Ajuste de estilos existentes para inputs y textarea */
input[type="text"],
input[type="email"],
/* Añadido el selector para email */
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--blue-header);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-muted);
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 9.375rem;
}

.submit-container {
  text-align: center;
}

input[type="submit"].submit {
  background: var(--blue-header);
  color: var(--white);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  box-shadow: 0 4px 6px rgba(26, 62, 110, 0.2);
}

input[type="submit"].submit:hover {
  background: var(--blue-dark);
  color: var(--white);
  opacity: 0.9;
}

/* ====== SECCIÓN: FOOTER ====== */
footer {
  background: var(--blue-header);
  color: var(--white);
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--blue-dark);
}

.footer-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9375rem;
}

/* Ajuste de estilos existentes */
.socials {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-avatar {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.social-avatar:hover {
  opacity: 1;
}

*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem 0;
  }

  

  /* Antes: max-width: 98vw; padding: 1rem; */
  .liders,
  .testimonials,
  .contact {
    width: 100%;              /* evita vw */
    max-width: 100%;          /* no te pases del viewport */
    padding: 1rem;            /* con border-box no suma ancho */
    margin-inline: auto;
  }

  /* Antes: width: 90vw; */
  .testimonial-card {
    width: 100%;
    max-width: 680px;         /* o el ancho que prefieras */
    margin: 1rem auto;
  }
}

/* Por si algún carrusel saca algo fuera */
.carousel, .slider, .testimonials { overflow: hidden; }

/* Evita desbordes globales accidentales */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  nav {
    padding: 0.5rem 1rem;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .hero-center h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
  }

  .features-row {
    gap: 1.5rem;
  }

  .features-below {
    padding: 1.5rem 1rem;
  }

  .features-below h2 {
    font-size: 1.2rem;
  }

  .features-below p {
    font-size: 0.95rem;
  }

  .feature-image-right {
    max-width: 80vw;
  }

  .liders h2 {
    font-size: 1.1rem;
  }

  .liders-card {
    min-width: 7rem;
  }

  .liders-card img {
    max-width: 5rem;
  }

  .testimonials h2 {
    font-size: 1.6rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-author {
    gap: 0.8rem;
  }

  .testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }

  .contact {
    padding: 1.5rem 0.5rem;
  }

  .contact h1 {
    font-size: 1.1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-row .input-group {
    width: 100%;
  }

  .videos h2 {
    font-size: 1.6rem;
  }

  .services h2 {
    font-size: 1.8rem;
  }

  .subscription h2 {
    font-size: 16px;
  }

  .subscription h1 {
    font-size: clamp(32px, 5vw, 48px);
  }

  .subscription-card {
    padding: 1.25rem 1rem 1rem;
    min-height: 480px;
  }

  .subscription ul {
    padding-left: 1rem;
  }

  .subscription li {
    font-size: 13px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-right-group {
    align-items: center;
    gap: 1rem;
  }

  .socials {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}


/* Hide nav-toggle for desktop */
.nav-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  nav {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    gap: 0;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    order: 2;
  }

  .nav-toggle {
    display: block;
    position: static;
    margin-left: 0.5rem;
    z-index: 1002;
    background: var(--blue-header);
    border: none;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    order: 3;
  }

  .nav-toggle:focus {
    outline: 2px solid var(--brand);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-header);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }

  .language-selector {
    order: 1;
  }
}

/* Accesibilidad: Reducir animaciones si el usuario prefiere */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ====== SECCIÓN: PLANES (pricing) ====== */

.subscription {
  max-width: 1100px;
  margin: 2.5rem auto 5rem;
  padding: 0 20px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .subscription-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .subscription-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subscription-card {
  position: relative;
  background:
    radial-gradient(1200px 300px at 50% 120%, var(--card-tint), transparent),
    #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.625rem 1.5rem 1.5rem;
  text-align: left;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.subscription h2 {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0.125rem;
}

.subscription h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}

.subscription h1 {
  text-align: center;
  font-size: clamp(44px, 6vw, 64px);
  letter-spacing: 1px;
  color: #0b1225;
  margin-bottom: 1rem;
}

.subscription ul {
  list-style: disc;
  padding-left: 1.375rem;
  margin: 8px 0 26px;
  color: #1f2937;
}

.subscription li {
  font-size: 14px;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.subscription li::marker {
  color: var(--brand-2);
}

.subscription .cta-button {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.75rem 1.125rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform .04s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(9, 42, 74, .25);
  text-decoration: none;
}

.subscription .cta-button:hover {
  background: var(--brand-2);
}

.subscription .cta-button:active {
  transform: translateY(1px);
}

.subscription .student-plan {
  background:
    radial-gradient(900px 260px at 50% 115%, rgba(14, 60, 107, 0.08), transparent),
    var(--white);
  outline: 1px solid rgba(14, 60, 107, 0.15);
  box-shadow: 0 16px 40px rgba(14, 60, 107, .12);
  transform: translateY(-0.375rem);
}

@media (max-width: 979px) {
  .subscription .student-plan {
    transform: none;
  }
}

.subscription .family-plan ul {
  margin-bottom: 1.75rem;
}

.videos .about-team p,
.videos .about-product p {
  color: var(--black);
  font-size: 14px;
  line-height: 1.5;
  padding: 0.75rem 1rem 1.125rem;
  text-align: center;
}

/* Estilos para la sección videos */
.videos {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.videos h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.about-team h3,
.about-product h3 {
  padding: 0.4rem;
  background: var(--blue-header);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  border-radius: 20px 20px 0 0;
}
.about-team,
.about-product {
  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;
  border-radius: 20px;
}
.about-team video,
.about-product video,
.about-team iframe,
.about-product iframe {
  aspect-ratio: 16 / 9;   /* <--- CLAVE */
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  max-width: 100%;
      
}
/* Layout responsivo para las tarjetas */
@media (min-width: 768px) {
  .videos .videos-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
  }

  .about-team,
  .about-product {
    flex: 1;
    max-width: 45%;
  }
}

@media (max-width: 767px) {
  .videos .videos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-team,
  .about-product {
    width: 100%;
  }
}

/* ====== SECCIÓN: SERVICIOS ====== */
.services {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 16px;
  text-align: center;
}

.services h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--text-primary);
  margin-bottom: 1.125rem;
  font-weight: 800;
}

.services h2 em {
  font-style: italic;
}

/* Slider */
.services-slider {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.75rem 2rem;
  /* espacio para flechas y dots */
}

.services-slider .track {
  display: flex;
  gap: 24px;
  transition: transform .45s ease;
  will-change: transform;
}

/* Tarjeta */
.services-slider .card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(9, 42, 74, .08);
  padding: 1.375rem 1.375rem 1.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* el ancho visible lo controla el JS con min-width */
}

.services-slider .card img {
  width: 11.25rem;
  /* ajusta según tus png */
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

/* Franja inferior (como en la maqueta) */
.services-slider .label {
  display: block;
  margin-top: auto;
  padding: 0.75rem 1rem;
  min-width: 220px;
  text-align: center;
  font-weight: 700;
  color: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 28px rgba(9, 42, 74, .18);
  background: linear-gradient(180deg, #8fa7d0 0%, #7e8fb6 100%);
}

/* Flechas */
.services-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  color: var(--brand);
  font-size: 24px;
  line-height: 2.375rem;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease;
  z-index: 2;
}

.services-slider .nav:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.services-slider .nav:active {
  transform: translateY(-50%) scale(0.96);
}

.services-slider .nav:focus {
  outline: 2px solid var(--brand);
}

.services-slider .prev {
  left: 6px;
}

.services-slider .next {
  right: 6px;
}

/* Dots */
.services-slider .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.services-slider .dots button {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 0;
  background: #d1d5db;
  cursor: pointer;
}

.services-slider .dots button[aria-current="true"] {
  background: var(--text-primary);
}

.services-slider .dots button:focus {
  outline: 2px solid var(--brand);
}

/* Responsive: 2 y 1 por vista */
@media (max-width: 1023px) {
  .services-slider {
    padding: 1rem 2.5rem 2rem;
  }

  .services-slider .card img {
    width: 10.625rem;
  }
}

@media (max-width: 639px) {
  .hero-image img { max-width: 300px; width: 100%; height: auto; }

  .services-slider {
    padding: 1rem 1.75rem 2rem;
  }

  .services-slider .card img {
    width: 10rem;
  }

  .services-slider .label {
    min-width: 12.5rem;
  }
}
