/* =========================================================
   Eme Convierte · v5
   Paneles teal redondeados, titulares Playfair en mayúscula
   pesada, acentos a mano en coral y mucha foto real.
   ========================================================= */

@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-500-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display-latin-500-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url(fonts/karla-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url(fonts/karla-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url(fonts/karla-latin-700-normal.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/caveat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --abismo: #213639;
  --teal-dark: #345054;
  --teal: #496c70;
  --coral: #eda39e;
  --coral-vivo: #f0b1ac;
  --lapiz: #c4605a;
  --arena: #e3e0d3;
  --fondo: #efede6;
  --blanco: #fffdf8;
  --tinta: #1d2e31;
  --gris: #55676a;
  --linea: #d3cfc1;
  --display: "Playfair Display", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --mano: "Caveat", "Segoe Print", cursive;
  --max: 1200px;
  --r: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lapiz); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.centrado { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Tipografía ---------- */
.titulo, h1, h2, h3, .cifra b, .monto, .precio-portada strong, .complementos b { font-variant-numeric: lining-nums; }
.titulo, h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: -0.01em; color: var(--teal-dark); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: .35em; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.15; color: var(--teal-dark); margin-bottom: .3em; }
.resalta { color: var(--coral); }
.resalta-tinta { color: var(--lapiz); }
.acento { display: block; font-family: var(--mano); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--lapiz); margin-bottom: 10px; }
.panel .acento, .oscuro .acento { color: var(--coral); }
.bajada { font-size: 1.18rem; line-height: 1.55; color: var(--gris); max-width: 34em; }
.nota { font-size: .95rem; color: var(--gris); }
.etiqueta { display: inline-block; font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--arena); color: var(--teal-dark); }

.destello { display: inline-block; width: .9em; height: .9em; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); vertical-align: -.08em; flex: none; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--body); font-weight: 800; font-size: 1.02rem; text-decoration: none; padding: 1em 1.8em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.boton:hover { transform: translateY(-2px); }
.boton-coral { background: var(--coral); color: var(--abismo); }
.boton-coral:hover { background: var(--coral-vivo); }
.boton-teal { background: var(--teal-dark); color: #fff; }
.boton-teal:hover { background: var(--abismo); }
.boton-borde { border-color: currentColor; background: transparent; }
.boton-borde:hover { background: rgba(255,255,255,.08); }
.boton-chico { padding: .7em 1.3em; font-size: .93rem; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

/* ---------- Aviso superior ---------- */
.aviso { background: var(--abismo); color: #d9e2df; font-size: .92rem; text-align: center; padding: 9px 16px; }
.aviso a { color: var(--coral); font-weight: 700; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(239, 237, 230, .95); backdrop-filter: blur(10px); }
.cabecera .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.marca img { height: 56px; width: auto; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; background: var(--blanco); border-radius: 999px; padding: 6px; box-shadow: 0 1px 0 var(--linea); }
.menu a { display: block; text-decoration: none; font-weight: 700; font-size: .95rem; padding: .55em 1em; border-radius: 999px; }
.menu a:not(.boton):hover { background: var(--fondo); }
.menu a[aria-current="page"] { background: var(--teal-dark); color: #fff; }
.menu .boton { margin-left: 4px; }
.menu-boton { display: none; background: var(--blanco); border: 0; border-radius: 50%; width: 48px; height: 48px; color: var(--teal-dark); cursor: pointer; }
.menu-boton span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }
@media (max-width: 960px) {
  .menu-boton { display: block; }
  .menu { display: none; position: absolute; top: 80px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; border-radius: 24px; padding: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
  .menu.abierto { display: flex; }
  .menu a { padding: .9em 1.1em; }
  .menu .boton { margin: 8px 0 0; }
}

/* ---------- Paneles ---------- */
.panel { background: var(--abismo); color: #e6ecea; border-radius: var(--r); margin: 0 14px; position: relative; overflow: hidden; }
.panel h1, .panel h2, .panel h3 { color: #fff; }
.panel .bajada, .panel .nota { color: #b9c6c2; }
.panel-arena { background: var(--arena); border-radius: var(--r); margin: 0 14px; }
.bloque { padding: 96px 0; }
.bloque-panel { padding: 84px 0; }
.separa { height: 28px; }
@media (max-width: 700px) { .bloque { padding: 68px 0; } .bloque-panel { padding: 56px 0; } .panel, .panel-arena { margin: 0 8px; border-radius: 24px; } }

/* ---------- Portada ---------- */
.portada { padding: 64px 0 64px; }
.portada-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.portada h1 { margin-bottom: 22px; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 540px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.collage .alta { grid-row: span 2; }
.collage figure { position: relative; height: 100%; min-height: 0; }
.collage figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,253,248,.95); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; color: var(--teal-dark); }
.foto-portada { width: 100%; height: 540px; object-fit: cover; border-radius: 22px; }
.precio-portada { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.precio-portada strong { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--coral); line-height: 1; }
.precio-portada span { color: #b9c6c2; }
@media (max-width: 900px) {
  .portada { padding: 44px 0 44px; }
  .portada-grid { grid-template-columns: 1fr; gap: 34px; }
  .collage { height: 420px; }
  .foto-portada { height: 380px; }
}

/* ---------- Cinta de servicios ---------- */
.cinta { background: var(--coral); color: var(--abismo); overflow: hidden; margin: 18px 14px 0; border-radius: 999px; padding: 14px 0; }
.cinta-pista { display: flex; width: max-content; animation: desfile 36s linear infinite; }
.cinta ul { display: flex; align-items: center; gap: 30px; padding-right: 30px; list-style: none; font-weight: 800; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.cinta li.sep { display: flex; font-size: .8em; }
@keyframes desfile { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .cinta { margin: 14px 8px 0; } }
@media (prefers-reduced-motion: reduce) { .cinta-pista ul + ul { display: none; } .cinta ul { flex-wrap: wrap; justify-content: center; white-space: normal; padding: 0 20px; gap: 6px 22px; } .cinta-pista { width: auto; justify-content: center; } }

/* ---------- Logos ---------- */
.logos { padding: 54px 0 46px; }
.logos p { text-align: center; color: #b9c6c2; margin-bottom: 26px; }
.logos ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 44px; align-items: center; }
.logos img { max-height: 54px; width: auto; opacity: .92; }
@media (max-width: 860px) { .logos ul { gap: 20px 28px; } .logos img { max-height: 40px; } }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cifra { background: var(--blanco); border-radius: 24px; padding: 30px 28px; }
.cifra b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1; color: var(--teal-dark); }
.cifra span { display: block; margin-top: 10px; font-weight: 500; color: var(--gris); }
.cifra:nth-child(2) { background: var(--teal-dark); }
.cifra:nth-child(2) b { color: var(--coral); }
.cifra:nth-child(2) span { color: #d4ddda; }
@media (max-width: 760px) { .cifras { grid-template-columns: 1fr; } }

/* ---------- Dos columnas ---------- */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.foto-redonda { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 26px; }
@media (max-width: 880px) { .dos { grid-template-columns: 1fr; gap: 40px; } }
.lista { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.lista li { display: flex; gap: 14px; align-items: baseline; }
.lista .destello { color: var(--lapiz); }
.panel .lista .destello { color: var(--coral); }

/* ---------- Receta de síntomas ---------- */
.receta { background: var(--blanco); border-radius: 26px; padding: 30px 30px 26px; box-shadow: 0 26px 50px -34px rgba(33,54,57,.6); }
.receta-titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--teal-dark); }
.receta-titulo b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; color: var(--teal-dark); }
.receta-titulo span { font-size: .86rem; color: var(--gris); }
.receta label { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px dashed var(--linea); cursor: pointer; font-size: 1.08rem; line-height: 1.45; }
.receta input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--teal); border-radius: 8px; display: grid; place-items: center; cursor: pointer; background: #fff; }
.receta input::after { content: ""; width: 15px; height: 15px; background: var(--lapiz); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%); transform: scale(0); transition: transform .15s ease-out; }
.receta input:checked { border-color: var(--lapiz); background: #fdf0ef; }
.receta input:checked::after { transform: scale(1); }
.receta input:checked + span { color: var(--teal-dark); font-weight: 700; }
.receta-resultado { margin-top: 18px; min-height: 4.4em; }
.receta-resultado .mano { display: block; font-family: var(--mano); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--lapiz); }
.receta-resultado a { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--teal-dark); text-decoration: underline wavy var(--lapiz) 1.5px; text-underline-offset: 6px; }

/* ---------- Tarjetas de servicio ---------- */
.servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.servicio { background: var(--blanco); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--linea); }
.servicio-img { position: relative; aspect-ratio: 4 / 3.4; background: var(--teal-dark); overflow: hidden; }
.servicio-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.servicio-img .etiqueta { position: absolute; left: 12px; top: 12px; background: var(--blanco); }
.servicio-img .etiqueta.destacada { background: var(--coral); color: var(--abismo); }
.servicio-cuerpo { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.servicio-cuerpo p { color: var(--gris); font-size: .98rem; }
.servicio .para { font-family: var(--mano); font-weight: 600; font-size: 1.35rem; color: var(--lapiz); line-height: 1.05; margin-bottom: 6px; }
.servicio .monto { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--teal-dark); margin-top: auto; padding-top: 16px; line-height: 1; }
.servicio .monto small { font-family: var(--body); font-weight: 500; font-size: .9rem; color: var(--gris); }
.servicio .botones { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.servicio .botones .boton { flex: 1; padding: .8em 1em; font-size: .92rem; }
@media (max-width: 1060px) { .servicios { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .servicios { grid-template-columns: 1fr; } }

/* Mini celular dibujado para la tarjeta de landing */
.mock { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--teal) 0%, var(--abismo) 100%); }
.mock-tel { width: 46%; aspect-ratio: 9 / 17; background: var(--blanco); border-radius: 22px; border: 6px solid #10201f; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; transform: rotate(-6deg); box-shadow: 0 18px 30px -12px rgba(0,0,0,.6); }
.mock-tel i { display: block; height: 7px; border-radius: 4px; background: var(--arena); }
.mock-tel i.t { height: 12px; width: 80%; background: var(--teal-dark); }
.mock-tel i.c { width: 60%; }
.mock-tel i.b { margin-top: auto; height: 16px; border-radius: 999px; background: var(--coral); }

/* ---------- Ficha de la Radiografía ---------- */
.ficha-marco { position: relative; padding-top: 36px; }
.ficha { background: var(--blanco); color: var(--tinta); border-radius: 22px; padding: 26px 26px 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.ficha-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--teal-dark); }
.ficha-cabeza b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: var(--teal-dark); }
.ficha-cabeza span { font-size: .82rem; color: var(--gris); }
.ficha ul { list-style: none; }
.ficha li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid #ebe8de; line-height: 1.4; }
.ficha li:last-child { border-bottom: 0; }
.ficha li b { color: var(--teal-dark); }
.ficha li p { grid-column: 1; color: var(--gris); font-size: .95rem; }
.sello { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .8rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; position: relative; }
.sello-urgente { background: var(--coral); color: var(--abismo); }
.sello-ajustar { background: var(--arena); color: var(--teal-dark); }
.sello-bien { background: #dde9e7; color: var(--teal); }
.circulo { position: absolute; left: -12px; top: -10px; width: calc(100% + 24px); height: calc(100% + 20px); pointer-events: none; overflow: visible; }
.circulo path { fill: none; stroke: var(--lapiz); stroke-width: 2.4; stroke-linecap: round; }
.anota { position: absolute; right: 8px; top: -4px; font-family: var(--mano); font-weight: 600; font-size: 1.6rem; color: var(--coral); transform: rotate(-3deg); white-space: nowrap; }
@media (max-width: 600px) { .ficha { padding: 20px 18px 12px; } .ficha li p { font-size: .9rem; } .anota { font-size: 1.35rem; } }

/* ---------- Testimonios ---------- */
.testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.reel { background: var(--blanco); border-radius: 26px; overflow: hidden; }
.reel iframe { width: 100%; aspect-ratio: 9 / 15.5; border: 0; display: block; background: var(--arena); }
.reel figcaption { padding: 16px 20px 20px; }
.reel figcaption b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: var(--teal-dark); }
.reel figcaption span { color: var(--gris); font-size: .93rem; }
@media (max-width: 860px) {
  .testimonios { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: -22px; padding-right: 22px; }
  .reel { scroll-snap-align: start; }
}

/* ---------- Equipo ---------- */
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.persona { background: var(--blanco); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; }
.persona img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center 20%; }
.persona div { padding: 28px 26px; }
.persona .rol { font-family: var(--mano); font-weight: 600; font-size: 1.5rem; color: var(--lapiz); line-height: 1; margin-bottom: 4px; }
.persona h3 { font-weight: 900; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 12px; }
.persona p:not(.rol) { color: var(--gris); font-size: .97rem; }
.persona p + p { margin-top: 8px; }
@media (max-width: 1000px) { .equipo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .persona { grid-template-columns: 1fr; } .persona img { min-height: 0; aspect-ratio: 4 / 3.6; } }

/* ---------- Pasos ---------- */
.pasos { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pasos li { counter-increment: paso; background: var(--blanco); border-radius: 24px; padding: 24px 22px; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: var(--abismo); font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin-bottom: 14px; }
.pasos b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--teal-dark); margin-bottom: 4px; }
.pasos p { color: var(--gris); font-size: .97rem; }
@media (max-width: 960px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }

/* ---------- Módulos del curso ---------- */
.modulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.modulo { background: var(--blanco); border-radius: 24px; padding: 26px 24px; border-top: 6px solid var(--coral); }
.modulo .num { font-family: var(--mano); font-weight: 600; font-size: 1.5rem; color: var(--lapiz); }
.modulo p { color: var(--gris); }
.complementos { margin-top: 18px; background: var(--teal-dark); color: #e6ecea; border-radius: 24px; padding: 24px 26px; display: flex; gap: 18px; align-items: center; }
.complementos b { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--coral); line-height: 1; }
@media (max-width: 860px) { .modulos { grid-template-columns: 1fr; } }

/* ---------- Niveles de agencia ---------- */
.niveles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.nivel { background: var(--blanco); border-radius: 26px; padding: 30px 26px; display: flex; flex-direction: column; }
.nivel.nivel-medio { background: var(--abismo); color: #e6ecea; transform: translateY(-14px); box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.nivel h3 { font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.nivel-medio h3 { color: #fff; }
.nivel .para { color: var(--gris); font-size: .96rem; min-height: 3.2em; }
.nivel-medio .para { color: #b9c6c2; }
.nivel .monto { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--teal-dark); margin: 16px 0 2px; line-height: 1; }
.nivel.nivel-medio .monto { color: var(--coral); }
.nivel .monto small { font-family: var(--body); font-size: .92rem; font-weight: 500; color: var(--gris); }
.nivel-medio .monto small { color: #b9c6c2; }
.nivel ul { list-style: none; margin-top: 18px; }
.nivel li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--linea); font-size: .96rem; }
.nivel-medio li { border-color: rgba(255,255,255,.12); }
.nivel li .destello { color: var(--lapiz); font-size: .8em; }
.nivel-medio li .destello { color: var(--coral); }
.nivel .etiqueta { align-self: flex-start; margin-bottom: 12px; background: var(--coral); color: var(--abismo); }
@media (max-width: 960px) { .niveles { grid-template-columns: 1fr; } .nivel.nivel-medio { transform: none; } }
.condiciones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.condiciones div { background: var(--blanco); border-radius: 22px; padding: 22px 24px; }
@media (max-width: 760px) { .condiciones { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.preguntas { max-width: 820px; margin: 34px auto 0; display: grid; gap: 10px; }
.preguntas details { background: var(--blanco); border-radius: 20px; }
.preguntas summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font-weight: 800; font-size: 1.06rem; color: var(--teal-dark); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--fondo); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; color: var(--teal-dark); transition: transform .2s; }
.preguntas details[open] summary::after { content: "–"; background: var(--coral); }
.preguntas details p { padding: 0 24px 22px; color: var(--gris); max-width: 42em; }

/* ---------- Cierre ---------- */
.cierre { text-align: center; }
.cierre h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cierre .bajada { margin: 0 auto; }
.cierre .acciones { justify-content: center; }

/* ---------- Agenda ---------- */
.agenda { background: var(--blanco); border-radius: 24px; overflow: hidden; margin-top: 30px; }

/* ---------- Pie ---------- */
.pie { background: var(--abismo); color: #b9c6c2; margin: 28px 14px 14px; border-radius: var(--r); padding: 56px 0 40px; font-size: .96rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.pie img { height: 78px; width: auto; margin-bottom: 14px; }
.pie h4 { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #fff; font-size: 1rem; margin-bottom: 12px; }
.pie ul { list-style: none; display: grid; gap: 8px; }
.pie a { color: #e6ecea; text-decoration: none; }
.pie a:hover { color: var(--coral); }
.pie-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
@media (max-width: 860px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie { margin: 20px 8px 8px; padding-bottom: 110px; } .pie-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp y barra fija ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.wa svg { width: 30px; height: 30px; fill: #fff; }
.barra { display: none; }
@media (max-width: 760px) {
  .wa { display: none; }
  .barra { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(33,54,57,.97); backdrop-filter: blur(6px); }
  .barra .boton { flex: 1; padding: .9em 1em; font-size: 1rem; }
  .barra .barra-wa { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
  .barra .barra-wa svg { width: 26px; height: 26px; fill: #fff; }
}


/* =========================================================
   Movimiento. Todo respeta prefers-reduced-motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* --- Entrada de la portada: una sola secuencia al cargar --- */
  .portada .acento, .portada h1, .portada .bajada, .portada .precio-portada, .portada .acciones, .portada .nota {
    animation: subir .8s cubic-bezier(.2,.7,.2,1) both;
  }
  .portada h1 { animation-delay: .08s; }
  .portada .bajada { animation-delay: .2s; }
  .portada .precio-portada { animation-delay: .28s; }
  .portada .acciones { animation-delay: .34s; }
  .portada .nota { animation-delay: .42s; }
  .collage figure, .foto-portada { animation: aparecer-foto 1s cubic-bezier(.2,.7,.2,1) both; }
  .collage figure:nth-child(1) { animation-delay: .15s; }
  .collage figure:nth-child(2) { animation-delay: .3s; }
  .collage figure:nth-child(3) { animation-delay: .45s; }
  .cinta { animation: subir .8s .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes aparecer-foto { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }

  /* --- Revelado al hacer scroll --- */
  .js .revela { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js .revela.visto { opacity: 1; transform: none; }
  .js .revela.revela-escala { transform: translateY(18px) scale(.96); }
  .js .revela.revela-escala.visto { transform: none; }

  /* --- Texto a mano que se "escribe" --- */
  .js .acento:not(.portada .acento) { clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.1s cubic-bezier(.3,.6,.2,1) .15s; }
  .js .acento.visto, .js .visto .acento { clip-path: inset(-20% -5% -20% 0); }

  /* --- Cifras: el número sube --- */
  .cifra { transition: transform .4s; }
  .cifra:hover { transform: translateY(-4px); }

  /* --- Tarjetas de servicio: levantan y la foto respira --- */
  .servicio { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
  .servicio:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(33,54,57,.55); }
  .servicio-img img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .servicio:hover .servicio-img img { transform: scale(1.06); }
  .mock-tel { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
  .servicio:hover .mock-tel { transform: rotate(0deg) translateY(-6px); }

  /* --- Ficha: cada hallazgo entra y el sello se estampa --- */
  .js .ficha li { opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s; }
  .js .ficha.visto li { opacity: 1; transform: none; }
  .js .ficha.visto li:nth-child(1) { transition-delay: .2s; }
  .js .ficha.visto li:nth-child(2) { transition-delay: .4s; }
  .js .ficha.visto li:nth-child(3) { transition-delay: .55s; }
  .js .ficha.visto li:nth-child(4) { transition-delay: .7s; }
  .js .ficha .sello { opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity .35s, transform .45s cubic-bezier(.2,1.4,.4,1); }
  .js .ficha.visto .sello { opacity: 1; transform: none; }
  .js .ficha.visto li:nth-child(1) .sello { transition-delay: .55s; }
  .js .ficha.visto li:nth-child(2) .sello { transition-delay: .7s; }
  .js .ficha.visto li:nth-child(3) .sello { transition-delay: .85s; }
  .js .ficha.visto li:nth-child(4) .sello { transition-delay: 1s; }
  .js .circulo path { stroke-dasharray: 320; stroke-dashoffset: 320; }
  .js .ficha.visto .circulo path { animation: trazar 1s 1.1s ease-out forwards; }
  @keyframes trazar { to { stroke-dashoffset: 0; } }
  .js .anota { opacity: 0; transform: rotate(-3deg) translateY(8px); transition: opacity .5s 1.6s, transform .5s 1.6s; }
  .js .ficha-marco.visto .anota { opacity: 1; transform: rotate(-3deg); }

  /* --- Receta: el resultado late una vez al cambiar --- */
  .receta-resultado.late .mano { animation: latir .5s ease-out; }
  @keyframes latir { 0% { transform: scale(.96); opacity: .4; } 60% { transform: scale(1.03); } 100% { transform: none; opacity: 1; } }
  .receta label { transition: background .2s; border-radius: 10px; }
  .receta label:hover { background: var(--fondo); }

  /* --- Niveles, módulos, pasos, personas --- */
  .nivel, .modulo, .pasos li, .persona, .reel { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
  .nivel:hover, .modulo:hover, .pasos li:hover, .reel:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -30px rgba(33,54,57,.5); }
  .nivel.nivel-medio:hover { transform: translateY(-20px); }
  .persona img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .persona:hover img { transform: scale(1.04); }

  /* --- Logos: aparecen uno a uno --- */
  .js .logos li { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; transition-delay: calc(var(--i, 0) * 90ms); }
  .js .logos.visto li { opacity: 1; transform: none; }

  /* --- Cabecera compacta al bajar --- */
  .cabecera .wrap, .marca img { transition: height .3s, box-shadow .3s; }
  .cabecera.compacta .wrap { height: 64px; }
  .cabecera.compacta .marca img { height: 44px; }
  .cabecera.compacta { box-shadow: 0 10px 30px -20px rgba(33,54,57,.35); }

  /* --- Cinta: se detiene al pasar el mouse --- */
  .cinta:hover .cinta-pista { animation-play-state: paused; }

  /* --- Botones: brillo al pasar --- */
  .boton { position: relative; overflow: hidden; }
  .boton::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s; }
  .boton:hover::after { left: 120%; }

  /* --- Preguntas: la respuesta se despliega --- */
  .preguntas details[open] p { animation: subir .4s cubic-bezier(.2,.7,.2,1) both; }
  .preguntas summary::after { transition: transform .3s, background .3s; }
  .preguntas details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

  /* --- Barra fija móvil: aparece al bajar --- */
  @media (max-width: 760px) {
    .js .barra { transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
    .js .barra.visible { transform: none; }
  }
}

/* =========================================================
   Aula del curso
   ========================================================= */
.aula-main { padding: 48px 0 96px; }
.acceso { max-width: 520px; margin: 0 auto; background: var(--blanco); border-radius: 28px; padding: 40px 36px; }
.acceso h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.acceso .bajada { font-size: 1.05rem; }
.acceso .nota { margin-top: 20px; }
.acceso .nota a, .acceso .bajada a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lapiz); text-underline-offset: 4px; }
.acceso-admin { max-width: 560px; }
.aviso-acceso { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--arena); color: var(--teal-dark); font-weight: 500; }
.form-acceso { display: grid; gap: 16px; margin-top: 24px; }
.form-acceso label { display: grid; gap: 6px; font-weight: 700; color: var(--teal-dark); font-size: .95rem; }
.form-acceso input { font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--linea); background: #fff; color: var(--tinta); }
.form-acceso input:focus { outline: 0; border-color: var(--teal); }
.form-acceso .boton { margin-top: 4px; width: 100%; }
.form-acceso .boton[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-error { color: var(--lapiz); font-weight: 700; min-height: 1.4em; }
.form-ok { color: var(--teal); font-weight: 700; }
@media (max-width: 600px) { .acceso { padding: 30px 22px; border-radius: 22px; } }

.aula-cabecera { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.aula-cabecera .bajada { margin: 0 auto; }
.aula-cabecera .bajada a { color: var(--teal-dark); font-weight: 700; }
.aula-indice { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.aula-indice a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 16px; border-radius: 999px; background: var(--blanco); color: var(--teal-dark); }
.aula-indice a:hover { background: var(--teal-dark); color: #fff; }

.clase { max-width: 900px; margin: 0 auto 56px; }
.video-marco { position: relative; padding-top: 56.25%; border-radius: 22px; overflow: hidden; background: var(--abismo); box-shadow: 0 30px 60px -34px rgba(33,54,57,.6); }
.video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { margin: 18px 0 4px; font-size: 1.5rem; text-transform: uppercase; font-weight: 900; }
.video-desc { color: var(--gris); }
.apoyo { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--linea); }
.apoyo-titulo { font-family: var(--mano); font-weight: 600; font-size: 1.5rem; color: var(--lapiz); line-height: 1.1; margin-bottom: 14px; }
.apoyo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-apoyo h3 { font-size: 1.1rem; margin-top: 12px; }
.video-apoyo .video-marco { border-radius: 16px; box-shadow: none; }
@media (max-width: 640px) { .apoyo-grid { grid-template-columns: 1fr; } }

.aula-cta { margin-top: 28px; background: var(--abismo); color: #e6ecea; border-radius: 26px; padding: 32px 30px; }
.aula-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.aula-cta .acento { color: var(--coral); }
.aula-cta p { color: #b9c6c2; margin-bottom: 20px; max-width: 36em; }
.aula-pie { text-align: center; margin-top: 20px; }
.aula-pie a { color: var(--gris); }

/* Video de presentación en la landing */
.video-portada { position: relative; padding-top: 56.25%; border-radius: 22px; overflow: hidden; background: var(--abismo); box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
.video-portada iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.servicio-img.servicio-video { aspect-ratio: 16 / 9; background: var(--abismo); }
.servicio-img.servicio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: no-preference) { .video-portada { animation: aparecer-foto 1s .2s cubic-bezier(.2,.7,.2,1) both; } }

/* Aula: el contenido llega después de cargar, así que no participa del revelado por scroll */
.js .aula-main .acento { clip-path: none !important; }
.aula-cabecera h1 { margin-bottom: 14px; }

/* ---- pasos del correo en /curso/gracias/ ---- */
.pasos-correo { counter-reset: paso; list-style: none; margin: 26px 0 18px; padding: 0; display: grid; gap: 14px; text-align: left; }
.pasos-correo li { position: relative; padding: 16px 18px 16px 58px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-size: 1rem; line-height: 1.55; color: #e8eceb; }
.pasos-correo li::before { counter-increment: paso; content: counter(paso); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--teal-dark); font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
.pasos-correo strong { color: #fff; }
.pasos-correo em { font-style: normal; background: rgba(255,255,255,.14); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 640px) { .pasos-correo li { padding: 14px 14px 14px 52px; font-size: .95rem; } }

/* ---------- Páginas legales ---------- */
.legal h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 46px 0 14px; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.4; margin: 26px 0 8px; color: var(--teal-dark); }
.legal p { margin-bottom: 14px; line-height: 1.7; }
.legal ul { margin: 0 0 16px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 22px; line-height: 1.6; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.legal a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lapiz); text-underline-offset: 3px; }
.legal a:hover { color: var(--coral); }

/* =========================================================
   Curso v2 (24-nov): página de venta pensada para el
   navegador interno de Facebook e Instagram.
   ========================================================= */
.cinta { pointer-events: none; }

.portada-curso h1 { margin-bottom: 14px; }
.portada-curso .bajada { font-size: 1.12rem; max-width: 28em; }

.credenciales { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.credenciales img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--coral); }
.credenciales p { font-size: .93rem; line-height: 1.45; color: #b9c6c2; }
.credenciales b { color: #fff; }

.portada-curso .precio-portada { flex-wrap: wrap; margin-top: 20px; }

.compra { display: grid; gap: 10px; margin-top: 18px; max-width: 440px; }
.boton-compra { width: 100%; min-height: 60px; font-size: 1.14rem; padding: 1em 1.2em; white-space: normal; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.boton-compra:active { transform: scale(.98); }
.medios { font-size: .92rem; line-height: 1.45; color: var(--gris); text-align: center; }
.panel .medios { color: #b9c6c2; }
.ver-contenido { justify-self: center; font-size: .95rem; font-weight: 700; color: #d9e2df; text-decoration: underline; text-underline-offset: 4px; padding: 6px 10px; }
.cierre .compra { margin: 26px auto 0; }
.cierre .acciones { justify-content: center; }

/* Botón mientras se abre el pago */
.boton.abriendo { pointer-events: none; opacity: .9; }
.boton.abriendo::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Video y testimonios: cargan solo al tocarlos */
.video-facade, .reel-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 12px; font: inherit; font-weight: 800; color: #fff; background: radial-gradient(120% 90% at 30% 20%, var(--teal) 0%, var(--abismo) 70%); touch-action: manipulation; }
.reel-facade { position: relative; aspect-ratio: 4 / 4.2; height: auto; color: var(--teal-dark); background: linear-gradient(160deg, var(--arena) 0%, #d6d2c2 100%); }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--abismo); }
.reel iframe.cargado { aspect-ratio: 9 / 15.5; }

/* Lo que incluye, en formato corto */
.bloque-corto { padding: 64px 0; }
.aprende { counter-reset: clase; list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.aprende li { counter-increment: clase; position: relative; padding-left: 52px; line-height: 1.5; }
.aprende li::before { content: counter(clase); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; display: grid; place-items: center; }
.aprende li b { color: var(--teal-dark); }
.aprende-sub { margin-top: 26px; font-weight: 800; color: var(--teal-dark); }
.aprende-extra { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.aprende-extra li { background: var(--arena); color: var(--teal-dark); font-weight: 700; font-size: .92rem; padding: 7px 14px; border-radius: 999px; }
#contenido .compra { margin-top: 26px; }

/* Ayuda si el pago no se abre */
.pago-ayuda { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; max-width: 460px; margin: 0 auto; background: var(--blanco); color: var(--tinta); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55); font-size: .95rem; line-height: 1.5; }
.pago-ayuda b { display: block; font-size: 1.05rem; color: var(--teal-dark); margin-bottom: 4px; }
.pago-ayuda .fila { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pago-ayuda .fila a, .pago-ayuda .fila button { flex: 1 1 auto; text-align: center; font: inherit; font-weight: 800; font-size: .92rem; padding: .75em 1em; border-radius: 999px; border: 2px solid var(--teal-dark); background: transparent; color: var(--teal-dark); text-decoration: none; cursor: pointer; }
.pago-ayuda .fila a.principal { background: var(--coral); border-color: var(--coral); color: var(--abismo); }
.pago-ayuda .cerrar { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--gris); cursor: pointer; padding: 6px; }
@media (min-width: 761px) { .pago-ayuda { bottom: 24px; } }

@media (max-width: 760px) {
  .portada-curso { padding: 30px 0 34px; }
  .portada-curso .portada-grid { gap: 26px; }
  .portada-curso h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .portada-curso .bajada { font-size: 1.06rem; }
  .compra { max-width: none; }
  .bloque-corto { padding: 48px 0; }
}
