
/* =========================================================
   EDUCA DIGITAL — INICIO
   Marca: rojo #e11d48 y blanco #fffffffffff
   Texto: oscuro y legible

   IMPORTANTE:
   Este archivo controla exclusivamente el contenido de
   index.html. El encabezado se controla desde header.css.
   ========================================================= */

.index-page {
  --ed-red: #e11d48;
  --ed-white: #ffffff;
  --ed-text: #1f2937;
  --ed-muted: #4b5563;
  --ed-line: rgba(225, 29, 72, .16);
  --ed-soft: #f8f9fb;
  --ed-radius: 18px;

  margin: 0;
  color: var(--ed-text);
  background: var(--ed-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

.index-page img,
.index-page iframe {
  max-width: 100%;
}

.index-page img {
  display: block;
}

.index-page a {
  color: inherit;
}

.index-page h1,
.index-page h2,
.index-page h3,
.index-page p {
  margin-top: 0;
}

.index-page button,
.index-page input,
.index-page textarea,
.index-page select {
  font: inherit;
}

/* CONTENEDOR GENERAL */

.index-page .container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.index-page section {
  scroll-margin-top: 100px;
}

/* =========================================================
   PORTADA
   ========================================================= */

.index-page .hero {
  padding: 64px 0 72px;
  background: var(--ed-white);
}

.index-page .hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: clamp(20px, 3vw, 36px);
}

/* ETIQUETA */

.index-page .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ed-red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* FOTO Y TARJETA DE PORTADA
   En PC, display:contents permite que la foto y la leyenda
   ocupen columnas separadas sin modificar el HTML. */

.index-page .hero-photo {
  display: contents;
}

.index-page .hero-photo::after {
  display: none;
}

.index-page .hero-photo img {
  position: static;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
  border-radius: var(--ed-radius);
  background: #07152f;
}

.index-page .hero-photo-title {
  position: relative;
  inset: auto;
  z-index: auto;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(225, 29, 72, .18);
  border-top: 5px solid var(--ed-red);
  border-radius: var(--ed-radius);
  color: var(--ed-text);
  background: var(--ed-white);
  box-shadow: 0 12px 32px rgba(31, 41, 55, .07);
}

.index-page .hero-photo-title > span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ed-red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.index-page .hero-photo-title h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--ed-text);
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.index-page .hero-photo-title .hero-description {
  max-width: 590px;
  margin: 0 0 18px;
  color: var(--ed-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.index-page .hero-photo-title .hero-benefits {
  display: grid;
  gap: 12px;
  max-width: 590px;
  margin: 0;
  padding: 0;
  color: #374151;
  font-size: .91rem;
  line-height: 1.5;
  list-style: none;
}

.index-page .hero-photo-title .hero-benefits li {
  position: relative;
  padding-left: 24px;
}

.index-page .hero-photo-title .hero-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "✓";
  color: var(--ed-red);
  font-weight: 900;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.index-page .hero-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
  box-shadow: 0 12px 38px rgba(31, 41, 55, .06);
}

.index-page .hero-form h2 {
  margin-bottom: 10px;
  color: var(--ed-text);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.index-page .hero-form > p {
  margin-bottom: 20px;
  color: var(--ed-muted);
  font-size: .96rem;
  line-height: 1.65;
}

.index-page .hero-form iframe {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 540px;
  flex: 1 1 auto;
  border: 0;
  border-radius: 10px;
  background: var(--ed-white);
}

.index-page .hero-form .form-fallback {
  margin: 14px 0 0;
  color: var(--ed-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.index-page .hero-form .form-fallback a {
  color: var(--ed-red);
  font-weight: 750;
  text-underline-offset: 3px;
}

/* INTRODUCCIÓN, SI SE UTILIZA */

.index-page .hero-intro {
  max-width: 850px;
  margin: 42px auto 0;
  text-align: center;
}

.index-page .hero-intro h2 {
  margin-bottom: 14px;
  color: var(--ed-text);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.index-page .hero-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ed-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* =========================================================
   BOTONES DEL CONTENIDO
   ========================================================= */

.index-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--ed-red);
  border-radius: 999px;
  font: inherit;
  font-size: .92rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform .2s, color .2s, background .2s;
}

.index-page .btn:hover {
  transform: translateY(-2px);
}

.index-page .btn-primary {
  color: var(--ed-white);
  background: var(--ed-red);
}

.index-page .btn-primary:hover {
  color: var(--ed-red);
  background: var(--ed-white);
}

.index-page .btn-outline {
  color: var(--ed-red);
  background: var(--ed-white);
}

.index-page .btn-outline:hover {
  color: var(--ed-white);
  background: var(--ed-red);
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.index-page main > section:not(.hero) {
  padding: 82px 0;
}

.index-page .section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.index-page .section-heading h2,
.index-page .trust-box h2 {
  margin-bottom: 16px;
  color: var(--ed-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.index-page .section-heading p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* TARJETAS GENERALES */

.index-page .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.index-page .card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
}

.index-page .card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  color: var(--ed-red);
  font-size: 1.35rem;
}

.index-page .card h3 {
  margin-bottom: 10px;
  color: var(--ed-text);
  font-size: 1.15rem;
  line-height: 1.35;
}

.index-page .card p {
  margin-bottom: 0;
  color: var(--ed-muted);
  line-height: 1.7;
}

/* =========================================================
   BENEFICIOS: CUATRO TARJETAS FLOTANTES
   ========================================================= */

.index-page .benefits-section {
  padding: 58px 0 !important;
  background: var(--ed-soft);
}

.index-page .benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.index-page .benefit-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px;
  border: 1px solid rgba(46, 64, 83, .10);
  border-top: 3px solid var(--ed-red);
  border-radius: 15px;
  background: var(--ed-white);
  box-shadow: 0 8px 24px rgba(7, 21, 47, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.index-page .benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(7, 21, 47, .10);
}

.index-page .benefit-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 17px;
  border-radius: 50%;
  color: #26964b;
  background: #e8f5ec;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.index-page .benefit-card h2 {
  margin: 0 0 12px;
  color: var(--ed-text);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
}

.index-page .benefit-card p {
  margin: 0;
  color: var(--ed-muted);
  font-size: .94rem;
  line-height: 1.65;
}

/* =========================================================
   CARRUSEL DE EXPERIENCIAS
   ========================================================= */

.index-page .student-stories {
  padding: 70px 0 !important;
  background: var(--ed-white);
}

.index-page .student-stories .section-heading {
  margin-bottom: 36px;
}

.index-page .student-carousel {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.index-page .student-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.index-page .student-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.index-page .student-carousel-track {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.index-page .student-story {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 20px;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.index-page .student-story-image {
  width: clamp(180px, 30vw, 260px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border: 5px solid var(--ed-white);
  border-radius: 50%;
  background: #f3f4f6;
  box-shadow: 0 8px 24px rgba(7, 21, 47, .14);
}

.index-page .student-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.index-page .student-story h3 {
  margin: 20px 0 10px;
  color: var(--ed-red);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.index-page .student-story blockquote {
  max-width: 620px;
  margin: 0;
  color: var(--ed-text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

.index-page .student-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.index-page .student-carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ed-red);
  border-radius: 50%;
  color: var(--ed-white);
  background: var(--ed-red);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}

.index-page .student-carousel-controls button:hover {
  color: var(--ed-red);
  background: var(--ed-white);
  transform: translateY(-2px);
}

.index-page .student-carousel-controls button:focus-visible {
  outline: 3px solid rgba(225, 29, 72, .35);
  outline-offset: 4px;
}

/* =========================================================
   CURSO
   ========================================================= */

.index-page .course-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  gap: 20px;
}

.index-page .course-panel {
  min-width: 0;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
}

.index-page .course-panel h3 {
  margin-bottom: 24px;
  color: var(--ed-text);
  font-size: 1.4rem;
}

.index-page .course-panel p {
  color: var(--ed-muted);
  line-height: 1.7;
}

.index-page .check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-page .check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ed-muted);
  line-height: 1.6;
}

.index-page .check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--ed-red);
  font-weight: 900;
}

.index-page .check-list a {
  color: var(--ed-red);
  font-weight: 700;
  text-underline-offset: 3px;
}

.index-page .course-panel.highlight {
  color: var(--ed-white);
  background: var(--ed-red);
}

.index-page .course-panel.highlight .eyebrow,
.index-page .course-panel.highlight h3,
.index-page .course-panel.highlight p,
.index-page .course-panel.highlight .check-list li,
.index-page .course-panel.highlight .check-list li::before,
.index-page .course-panel.highlight .check-list a,
.index-page .course-panel.highlight .price,
.index-page .course-panel.highlight .price small {
  color: var(--ed-white);
}

.index-page .price {
  margin-bottom: 16px;
  color: var(--ed-red);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.05em;
}

.index-page .price small {
  display: block;
  margin-top: 9px;
  color: var(--ed-muted);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.index-page .bonus {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--ed-white);
  border-radius: 14px;
}

.index-page .bonus p {
  margin: 7px 0 0;
}

.index-page .course-panel.highlight .bonus p {
  color: var(--ed-white);
}

/* =========================================================
   VIDEOS
   ========================================================= */

.index-page .video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.index-page .video-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
}

.index-page .video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ed-white);
}

.index-page .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.index-page .video-caption {
  padding: 22px 24px;
}

.index-page .video-caption h3 {
  margin-bottom: 9px;
  color: var(--ed-text);
  font-size: 1.15rem;
}

.index-page .video-caption p {
  margin-bottom: 0;
  color: var(--ed-muted);
  line-height: 1.65;
}

/* =========================================================
   CONTACTO
   ========================================================= */

.index-page .trust-box {
  padding: clamp(30px, 6vw, 68px);
  border-radius: 26px;
  color: var(--ed-white);
  background: var(--ed-red);
  text-align: center;
}

.index-page .trust-box .eyebrow,
.index-page .trust-box h2,
.index-page .trust-box p {
  color: var(--ed-white);
}

.index-page .trust-box h2 {
  max-width: 780px;
  margin-inline: auto;
}

.index-page .trust-box > p {
  max-width: 680px;
  margin: 0 auto 26px;
  line-height: 1.7;
}

.index-page .trust-box .btn-primary {
  color: var(--ed-red);
  background: var(--ed-white);
  border-color: var(--ed-white);
}

.index-page .trust-box .btn-primary:hover {
  color: var(--ed-white);
  background: var(--ed-red);
}

.index-page .socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.index-page .socials a {
  color: var(--ed-white);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.index-page .socials a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   TABLETS Y PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 1000px) {
  .index-page .hero {
    padding: 48px 0 60px;
  }

  .index-page .hero-feature {
    gap: 18px;
  }

  .index-page .hero-photo-title {
    padding: 22px;
  }

  .index-page .hero-photo-title h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
  }

  .index-page .hero-photo-title .hero-description,
  .index-page .hero-photo-title .hero-benefits {
    font-size: .88rem;
  }

  .index-page .hero-form {
    padding: 20px;
  }

  .index-page .hero-form iframe {
    min-height: 520px;
  }

  .index-page .course-layout {
    grid-template-columns: 1fr;
  }

  .index-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-page .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 640px) {
  .index-page .container {
    width: calc(100% - 32px);
  }

  /* PORTADA */

  .index-page .hero {
    padding: 32px 0 48px;
  }

  .index-page .hero-feature {
    display: block;
  }

  /* En móvil, la foto se muestra completa y la leyenda va debajo. */

  .index-page .hero-photo {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 16px;
    background: transparent;
  }

  .index-page .hero-photo img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 16px 16px 0 0;
    background: #07152f;
  }

  .index-page .hero-photo-title {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    padding: 24px 22px 26px;
    border: 0;
    border-radius: 0 0 16px 16px;
    color: #ffffff;
    background: #07152f;
    box-shadow: none;
  }

  .index-page .hero-photo-title > span {
    margin-bottom: 9px;
    color: #ffffff;
    font-size: .7rem;
    letter-spacing: .1em;
  }

  .index-page .hero-photo-title h1 {
    display: block;
    max-width: none;
    margin: 0 -22px 14px;
    padding: 18px 22px;
    color: #ffffff;
    background: var(--ed-red);
    font-size: clamp(1.9rem, 7.5vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .index-page .hero-photo-title .hero-description {
    margin: 12px 0 14px;
    color: #ffffff;
    font-size: .92rem;
    line-height: 1.5;
  }

  .index-page .hero-photo-title .hero-benefits {
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: .84rem;
    line-height: 1.4;
  }

  .index-page .hero-photo-title .hero-benefits li::before {
    color: #ffffff;
  }

  /* FORMULARIO */

  .index-page .hero-form {
    width: 100%;
    padding: clamp(20px, 5vw, 28px);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, .06);
  }

  .index-page .hero-form .eyebrow {
    margin-bottom: 10px;
    font-size: .7rem;
    letter-spacing: .1em;
  }

  .index-page .hero-form h2 {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    line-height: 1.15;
  }

  .index-page .hero-form > p {
    margin-bottom: 18px;
    font-size: .95rem;
    line-height: 1.6;
  }

  .index-page .hero-form iframe {
    width: 100%;
    min-height: 650px;
  }

  .index-page .hero-form .form-fallback {
    margin-top: 14px;
    font-size: .85rem;
    overflow-wrap: anywhere;
  }

  /* INTRODUCCIÓN */

  .index-page .hero-intro {
    margin-top: 34px;
  }

  .index-page .hero-intro h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .index-page .hero-intro p {
    font-size: .98rem;
  }

  /* SECCIONES */

  .index-page main > section:not(.hero) {
    padding: 58px 0;
  }

  .index-page .cards,
  .index-page .video-grid {
    grid-template-columns: 1fr;
  }

  .index-page .card {
    padding: 23px;
  }

  /* BENEFICIOS: DOS COLUMNAS EN MÓVILES */

  .index-page .benefits-section {
    padding: 38px 0 !important;
  }

  .index-page .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .index-page .benefit-card {
    padding: 18px 15px;
    border-radius: 13px;
  }

  .index-page .benefit-check {
    width: 27px;
    height: 27px;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .index-page .benefit-card h2 {
    font-size: .98rem;
    line-height: 1.3;
  }

  .index-page .benefit-card p {
    font-size: .86rem;
    line-height: 1.55;
  }

  /* CARRUSEL DE EXPERIENCIAS */

  .index-page .student-stories {
    padding: 48px 0 !important;
  }

  .index-page .student-stories .section-heading {
    margin-bottom: 26px;
  }

  .index-page .student-stories .section-heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .index-page .student-carousel {
    max-width: 100%;
  }

  .index-page .student-story {
    padding: 6px 12px 18px;
  }

  .index-page .student-story-image {
    width: clamp(190px, 58vw, 260px);
    border-width: 4px;
  }

  .index-page .student-story h3 {
    margin-top: 17px;
    font-size: 1.15rem;
  }

  .index-page .student-story blockquote {
    max-width: 480px;
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .index-page .student-carousel-controls {
    margin-top: 8px;
  }

  .index-page .student-carousel-controls button {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  /* WHATSAPP */

  .index-page .imessage-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .index-page .imessage-float img {
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   TELÉFONOS MUY ESTRECHOS
   ========================================================= */

@media (max-width: 380px) {
  .index-page .container {
    width: calc(100% - 24px);
  }

  .index-page .hero-photo-title {
    padding: 22px 16px;
  }

  .index-page .hero-photo-title h1 {
    margin-right: -16px;
    margin-left: -16px;
    padding: 16px;
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
  }

  .index-page .hero-description {
    font-size: .9rem;
  }

  .index-page .hero-benefits {
    font-size: .83rem;
  }

  .index-page .hero-form {
    padding: 18px;
  }

  .index-page .hero-form iframe {
    min-height: 620px;
  }

  .index-page .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .index-page .benefit-card {
    padding: 16px 12px;
  }

  .index-page .benefit-card h2 {
    font-size: .9rem;
  }

  .index-page .benefit-card p {
    font-size: .8rem;
  }

  .index-page .student-story {
    padding-inline: 6px;
  }

  .index-page .student-story-image {
    width: min(68vw, 230px);
  }

  .index-page .student-story blockquote {
    font-size: .96rem;
  }
}

/* =========================================================
   MÉTODO DE APRENDIZAJE
   Seis beneficios sin bordes ni fondos individuales
   ========================================================= */

.index-page .method-section {
  padding: 68px 0 76px !important;
  background: var(--ed-white);
}

.index-page .method-section .container {
  width: min(1160px, calc(100% - 48px));
}

/* TÍTULO Y DESCRIPCIÓN */

.index-page .method-heading {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.index-page .method-heading h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.index-page .method-heading p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* DISTRIBUCIÓN DE LAS SEIS TARJETAS */

.index-page .method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 58px);
  row-gap: 30px;
  align-items: start;
}

.index-page .method-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ÍCONOS */

.index-page .method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--ed-red);
}

.index-page .method-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
}

/* TÍTULOS Y DESCRIPCIONES */

.index-page .method-content {
  min-width: 0;
}

.index-page .method-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.index-page .method-card p {
  margin: 0;
  color: #374151;
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* TABLETS */

@media (max-width: 900px) {
  .index-page .method-section {
    padding: 58px 0 64px !important;
  }

  .index-page .method-section .container {
    width: calc(100% - 40px);
  }

  .index-page .method-heading {
    margin-bottom: 38px;
  }

  .index-page .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 34px;
  }

  .index-page .method-card {
    gap: 13px;
  }

  .index-page .method-card h3 {
    font-size: 1.03rem;
  }

  .index-page .method-card p {
    font-size: .92rem;
  }
}

/* MÓVILES */

@media (max-width: 640px) {
  .index-page .method-section {
    padding: 44px 0 48px !important;
  }

  .index-page .method-section .container {
    width: calc(100% - 32px);
  }

  .index-page .method-heading {
    max-width: 480px;
    margin-bottom: 32px;
  }

  .index-page .method-heading h2 {
    max-width: 440px;
    margin: 0 auto 12px;
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: -.035em;
  }

  .index-page .method-heading p {
    font-size: .94rem;
    line-height: 1.6;
  }

  .index-page .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 30px;
  }

  .index-page .method-card {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
  }

  .index-page .method-icon {
    width: 26px;
    height: 26px;
  }

  .index-page .method-icon svg {
    width: 25px;
    height: 25px;
  }

  .index-page .method-card h3 {
    margin-bottom: 8px;
    font-size: .92rem;
    line-height: 1.35;
    letter-spacing: -.015em;
  }

  .index-page .method-card p {
    font-size: .82rem;
    line-height: 1.55;
  }
}

/* TELÉFONOS MUY ESTRECHOS */

@media (max-width: 380px) {
  .index-page .method-section .container {
    width: calc(100% - 24px);
  }

  .index-page .method-grid {
    column-gap: 12px;
    row-gap: 26px;
  }

  .index-page .method-card {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
  }

  .index-page .method-icon {
    width: 23px;
    height: 23px;
  }

  .index-page .method-icon svg {
    width: 22px;
    height: 22px;
  }

  .index-page .method-card h3 {
    font-size: .86rem;
    line-height: 1.35;
  }

  .index-page .method-card p {
    font-size: .78rem;
    line-height: 1.5;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .index-page .method-card {
    transition: none;
  }
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */

.faq-section {
  padding: 88px 0;
  background: #ffffff;
}

.faq-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.faq-heading .eyebrow,
.class-video-heading .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #e11d48;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-heading h2,
.class-video-heading h2 {
  margin: 0 0 18px;
  color: #2e4053;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.faq-heading p,
.class-video-heading > p {
  max-width: 680px;
  margin: 0 auto;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.8;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #e8edf2;
  transition: background-color 0.25s ease;
}

.faq-item.is-open {
  background: #f8fafc;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 78px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: #2e4053;
  text-align: left;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #e11d48;
}

.faq-question:focus-visible {
  outline: 3px solid #e11d48;
  outline-offset: -4px;
  border-radius: 8px;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fce7ed;
  color: #e11d48;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: #e11d48;
  color: #ffffff;
}

/* ANIMACIÓN DE APERTURA Y CIERRE */

.faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 0.35s ease,
    opacity 0.25s ease;
}

.faq-answer[hidden] {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.faq-answer-content {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px 24px;
  color: #526174;
  font-size: 0.98rem;
  line-height: 1.85;
}

.faq-answer[hidden] .faq-answer-content {
  padding-bottom: 0;
}

.faq-answer-content p {
  margin: 0 0 14px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content strong {
  color: #2e4053;
  font-weight: 700;
}

.faq-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 8px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.faq-whatsapp-link:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.faq-whatsapp-link:focus-visible {
  outline: 3px solid #2e4053;
  outline-offset: 4px;
}

.faq-whatsapp-link span {
  font-size: 1.1rem;
}

/* =========================================================
   VIDEO DE UNA CLASE REAL
   ========================================================= */

.class-video-section {
  padding: 80px 0 96px;
  background: #f8fafc;
}

.class-video-heading {
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.class-video-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.class-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #2e4053;
  box-shadow: 0 18px 45px rgba(46, 64, 83, 0.15);
}

.class-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.class-video-description {
  max-width: 440px;
}

.class-video-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #e11d48;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.class-video-description h3 {
  margin: 0 0 18px;
  color: #2e4053;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.class-video-description p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.8;
}

.class-video-description p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE — TABLETS Y MÓVILES
   ========================================================= */

@media (max-width: 800px) {
  .faq-section {
    padding: 64px 0;
  }

  .faq-heading {
    margin-bottom: 32px;
  }

  .faq-heading h2,
  .class-video-heading h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .class-video-section {
    padding: 64px 0 72px;
  }

  .class-video-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .class-video-description {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 52px 0;
  }

  .faq-heading {
    margin-bottom: 26px;
  }

  .faq-heading p,
  .class-video-heading > p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .faq-question {
    min-height: 70px;
    gap: 14px;
    padding: 18px 16px;
    font-size: 0.96rem;
  }

  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 1.35rem;
  }

  .faq-answer-content {
    padding: 0 16px 22px;
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .faq-answer[hidden] .faq-answer-content {
    padding-bottom: 0;
  }

  .faq-whatsapp-link {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
  }

  .class-video-section {
    padding: 52px 0 60px;
  }

  .class-video-heading {
    margin-bottom: 30px;
  }

  .class-video-content {
    gap: 24px;
  }

  .class-video-frame {
    border-radius: 10px;
  }

  .class-video-description h3 {
    font-size: 1.45rem;
  }

  .class-video-description p {
    font-size: 0.95rem;
    line-height: 1.75;
  }
}

/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
  .index-page .imessage-float,
  .index-page .benefit-card,
  .index-page .btn,
  .index-page .student-carousel-viewport,
  .index-page .student-carousel-controls button,
  .faq-item,
  .faq-icon,
  .faq-answer,
  .faq-whatsapp-link {
    scroll-behavior: auto;
    transition: none;
  }
}
