/* ==========================================================================
   La Profe Ana — clases particulares de matemáticas
   CSS propio, sin frameworks ni build.

   Está escrito MOBILE-FIRST: los estilos base son los del celular a 380px y
   las media queries solo agregan a partir de ahí. El grueso del tráfico entra
   por el enlace de Instagram, así que el celular manda.
   ========================================================================== */

:root {
  --verde:      #1ba34e;   /* CTA. No es el #25d366 de marca: ese solo da     */
  --verde-osc:  #12864a;   /* 1,98:1 con texto blanco y no se lee al sol.     */

  --azul:       #00a3ff;
  --azul-osc:   #0079c0;
  --ambar:      #ffa800;

  --tinta:      #14161a;
  --texto:      #383d45;
  --suave:      #6b7280;

  --linea:      #e4ebf3;
  --fondo:      #f5f7fa;
  --chip:       #eef2f7;

  --sombra:     0 1px 2px rgba(20, 22, 26, .04), 0 10px 30px rgba(20, 22, 26, .07);
  --radio:      16px;

  --ubuntu:   Ubuntu, Helvetica, sans-serif;
  --opensans: "Open Sans", Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: #fff;
  color: var(--texto);
  font-family: var(--ubuntu);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3 { color: var(--tinta); margin: 0; font-family: var(--opensans); font-weight: 700; line-height: 1.2; }

.wrap { width: 100%; max-width: 1060px; margin-inline: auto; padding-inline: 20px; }

.skip-link { position: absolute; left: -9999px; background: var(--tinta); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 0; top: 0; }

:where(a, button, summary):focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

/* ---------- Encabezados de sección ---------- */

section { padding: 56px 0; }

section > .wrap > h2 {
  font-size: 27px;
  margin-bottom: 8px;
}

.seccion-bajada { color: var(--suave); font-size: 16px; margin-bottom: 28px; }

/* ---------- Botón de WhatsApp: el único CTA de la página ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  color: #fff;
  text-decoration: none;
  text-align: center;
  background: var(--verde);
  border-radius: 999px;
  padding: 17px 28px;
  font-family: var(--opensans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(18, 134, 74, .28);
  transition: background-color .15s ease;
}
.cta::before {
  content: "";
  flex: 0 0 25px; width: 25px; height: 25px;
  background: url("assets/whatsapp.svg") no-repeat center / contain;
}
.cta:hover { background: var(--verde-osc); }

/* no es letra chica: la clase gratis es el gancho, así que se lee como oferta.
   Ámbar sólido con texto tinta (9,4:1). El ámbar como letra no sirve: sobre
   blanco da 1,9:1, así que solo funciona de fondo. */
.cta-nota { text-align: center; margin-top: 14px; }
.cta-nota strong {
  display: inline-block;
  color: var(--tinta);
  background: var(--ambar);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.cta-blanco { background: #fff; color: var(--verde-osc); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.cta-blanco::before { filter: invert(38%) sepia(85%) saturate(430%) hue-rotate(105deg) brightness(92%); }
.cta-blanco:hover { background: #eefaf2; color: var(--verde-osc); }

.centrado { display: flex; justify-content: center; }

/* ---------- Cabecera fija ---------- */

/* Sin menú: solo la marca y el botón, para que el CTA nunca se pierda de
   vista sin robar altura de pantalla. */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--linea);
}

.cabecera-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px;
}

.marca {
  color: var(--tinta);
  font-family: var(--opensans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta-cabecera {
  width: auto;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: none;
}
.cta-cabecera::before { flex-basis: 19px; width: 19px; height: 19px; }

/* ---------- 1. Hero ---------- */

.hero { padding: 28px 0 48px; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* en celular la foto va contenida: si ocupa media pantalla, empuja el
   titular y el botón por debajo del pliegue */
.hero-foto { margin: 0 0 20px; }
.hero-foto img {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 4px solid #fff;
  box-shadow: var(--sombra);
}

.hero-donde {
  color: var(--azul-osc);
  background: #e8f5ff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero h1 { font-size: 30px; letter-spacing: -.4px; }

.hero-prueba { color: var(--texto); font-size: 16px; margin: 16px 0 26px; }
.hero-prueba strong { color: var(--tinta); font-weight: 500; }

/* ---------- 2. Prueba social ---------- */

.social { background: var(--fondo); }

/* mismo azul que los números de .datos: el dato es el que hace el trabajo */
.social h2 strong { color: var(--azul-osc); font-weight: 700; }

.testimonios { display: grid; gap: 16px; }

.testimonio {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radio);
  padding: 16px;
  box-shadow: var(--sombra);
}

.testimonio-media {
  position: relative;
  flex: 0 0 104px;
  width: 104px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.testimonio-media img { width: 100%; height: 100%; object-fit: cover; }

.play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.play::before {
  content: "";
  position: absolute; top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  border-left: 13px solid var(--tinta);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.duracion {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0, 0, 0, .74);
  color: #fff;
  font-size: 11px; line-height: 1.5;
  padding: 1px 7px;
  border-radius: 9px;
}

.testimonio-texto { flex: 1; min-width: 0; }

.testimonio blockquote {
  margin: 0 0 12px;
  color: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  quotes: "«" "»";
}
.testimonio blockquote::before { content: open-quote; }
.testimonio blockquote::after  { content: close-quote; }

.testimonio-autor strong { display: block; color: var(--tinta); font-size: 15px; font-weight: 500; }
.testimonio-autor span { display: block; color: var(--suave); font-size: 13px; line-height: 1.4; }

/* ---------- 3. Qué enseña ---------- */

.materias-grid { display: grid; gap: 26px; }

.materia-bloque h3 { font-family: var(--ubuntu); font-size: 18px; font-weight: 500; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--chip);
  color: var(--texto);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 15px;
}

.destacado {
  margin-top: 28px;
  background: #fff8ec;
  border-left: 4px solid var(--ambar);
  border-radius: 12px;
  padding: 20px;
}
.destacado h3 { font-family: var(--ubuntu); font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.destacado p { color: var(--texto); font-size: 16px; }

/* ---------- 4. Cómo funciona ---------- */

.pasos { background: var(--fondo); }

.pasos-lista { display: grid; gap: 22px; margin-bottom: 30px; }

.pasos-lista li {
  position: relative;
  background: #fff;
  border-radius: var(--radio);
  padding: 22px 20px 20px 62px;
  box-shadow: var(--sombra);
}

.paso-num {
  position: absolute;
  left: 20px; top: 22px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  font-family: var(--opensans);
  font-size: 15px;
  font-weight: 700;
}

.pasos-lista h3 { font-family: var(--ubuntu); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.pasos-lista p { color: var(--suave); font-size: 16px; }

/* ---------- 5. Quién da las clases ---------- */

.sobre-parrafo { font-size: 17px; margin-bottom: 24px; }
.sobre-parrafo strong { color: var(--tinta); }

.datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.datos li { background: var(--fondo); border-radius: 12px; padding: 16px 8px; }
.datos strong { display: block; color: var(--azul-osc); font-family: var(--opensans); font-size: 22px; font-weight: 700; }
.datos span { display: block; color: var(--suave); font-size: 13px; line-height: 1.35; margin-top: 4px; }

/* ---------- 6. Precios ---------- */

.precios { background: var(--fondo); }

.planes { display: grid; gap: 32px; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radio);
  padding: 26px 22px;
  box-shadow: var(--sombra);
}

.plan-destacado { box-shadow: 0 1px 2px rgba(20,22,26,.04), 0 14px 36px rgba(0, 163, 255, .22); }

.plan-etiqueta {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--ambar);
  color: #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(150, 163, 181, .35);
}
.plan-etiqueta-suave { background: var(--tinta); }

.plan h3 { font-family: var(--ubuntu); font-size: 22px; font-weight: 500; }
.plan-detalle { color: var(--suave); font-size: 15px; margin-top: 4px; }

.plan-precio {
  color: var(--azul-osc);
  font-family: var(--opensans);
  font-size: 30px;
  font-weight: 700;
  margin: 18px 0 18px;
  line-height: 1.1;
}
.plan-precio span { display: block; color: var(--suave); font-family: var(--ubuntu); font-size: 14px; font-weight: 400; margin-top: 4px; }

.plan-lista { margin-bottom: 24px; }
.plan-lista li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--texto);
  font-size: 15px;
  line-height: 1.45;
}
.plan-lista li::before {
  content: "";
  position: absolute; left: 2px; top: .45em;
  width: 13px; height: 7px;
  border-left: 2.2px solid var(--verde);
  border-bottom: 2.2px solid var(--verde);
  transform: rotate(-45deg);
}

.cta-plan { margin-top: auto; font-size: 16px; padding: 15px 20px; }

/* ---------- 7. Reversión de riesgo ---------- */

.riesgo { background: var(--verde); color: #fff; }
.riesgo-inner { text-align: center; }
.riesgo h2 { color: #fff; font-size: 28px; margin-bottom: 14px; }
.riesgo p { color: rgba(255, 255, 255, .94); font-size: 17px; margin-bottom: 26px; }

/* misma píldora ámbar del hero. Se escribe con la especificidad de `.riesgo p`
   porque esa regla pinta todos los párrafos de la sección de blanco. */
.riesgo p.riesgo-detalle {
  display: inline-block;
  color: var(--tinta);
  background: var(--ambar);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--opensans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 22px;
}

.riesgo-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ---------- 8. Preguntas ---------- */

.faq details {
  border-bottom: 1px solid var(--linea);
}
.faq details:first-of-type { border-top: 1px solid var(--linea); }

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  color: var(--tinta);
  font-size: 17px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 26px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--suave);
  border-bottom: 2px solid var(--suave);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }

.faq details > div { padding: 0 0 20px; }
.faq details p { color: var(--texto); font-size: 16px; }

/* ---------- 9. Cierre ---------- */

.cierre { background: var(--tinta); color: #fff; }
.cierre-inner { text-align: center; }
.cierre h2 { color: #fff; font-size: 28px; }
.cierre p { color: rgba(255, 255, 255, .8); margin: 12px 0 26px; }

/* ---------- Pie ---------- */

.pie { background: var(--tinta); color: rgba(255, 255, 255, .6); padding: 0 0 40px; font-size: 14px; text-align: center; }
.pie strong { color: rgba(255, 255, 255, .9); font-weight: 500; }
.pie a { color: rgba(255, 255, 255, .9); }

/* ---------- Visor de video ---------- */

.visor {
  border: 0; padding: 0; background: transparent;
  width: 100vw; max-width: 100vw;
  height: 100vh; height: 100dvh; max-height: 100dvh;
  overflow: hidden;
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(0, 0, 0, .9); }

.visor-marco {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(86dvh, 840px);
  max-width: 94vw;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.visor-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.visor-cerrar {
  position: fixed;
  top: 14px; right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 0; border-radius: 50%;
  font-size: 30px; line-height: 1;
  cursor: pointer;
}
.visor-cerrar:hover { background: rgba(255, 255, 255, .3); }

/* ==========================================================================
   De 700px en adelante — tablet
   ========================================================================== */

@media (min-width: 700px) {
  section { padding: 76px 0; }
  section > .wrap > h2 { font-size: 34px; }
  .seccion-bajada { font-size: 17px; margin-bottom: 36px; }

  .cta { width: auto; }
  .cta-plan { width: 100%; }

  .hero h1 { font-size: 38px; }
  .hero-foto img { width: 190px; height: 190px; }

  .testimonios { grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonio { padding: 18px; gap: 18px; }
  .testimonio-media { flex-basis: 124px; width: 124px; }

  .materias-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .pasos-lista { grid-template-columns: repeat(3, 1fr); }

  .planes { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

  .riesgo h2, .cierre h2 { font-size: 34px; }
  .riesgo p { max-width: 60ch; margin-inline: auto; }

  .faq .wrap { max-width: 780px; }
}

/* ==========================================================================
   De 1000px en adelante — escritorio
   ========================================================================== */

@media (min-width: 1000px) {
  .hero { padding: 64px 0 76px; }

  .hero-inner {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    text-align: left;
  }

  .hero-foto { flex: 0 0 360px; margin: 0; }
  .hero-foto img {
    width: 360px; height: 440px;
    border-radius: 20px;
    object-position: 50% 20%;
  }

  .hero-texto { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 46px; max-width: 15ch; }
  .hero-prueba { font-size: 17px; max-width: 52ch; }
  /* solo en el hero: la columna de texto va alineada a la izquierda.
     En el cierre la píldora sigue centrada como el resto de la sección. */
  .hero .cta-nota { text-align: left; }

  .datos { max-width: 620px; }
  .sobre-parrafo { max-width: 70ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .faq summary::after { transition: none; }
}
