/* ═══════════════════════════════════════════════════════════════
   Escuela Adela Sanz · tienda de cursos online · v4
   THESIS: catálogo de taller que vende, no folleto de bienvenida.
   Rechaza el default IA (papel crema + serif tibia + pastillas +
   kickers traqueados) que tenía la v3.
   OWN-WORLD: blanco franco, tinta ciruela, y EL rosa de la marca
   trabajando en serio (banda de pasos, lema, subrayado a mano,
   numerales). Bricolage Grotesque 800 para titular, Archivo para
   todo lo demás. Bordes finos en vez de sombras flotantes,
   esquinas 12px, botones rectangulares. Fotos grandes: el marquee
   del taller corre solo debajo del hero.
   STORY: llego, entiendo que acá se aprende un oficio de verdad,
   veo los cursos en fotos reales, y en un toque estoy hablando
   por WhatsApp.
   MOVIMIENTO: entradas 500ms ease-out exponencial, marquee lineal
   infinito, cabecera que se achica al bajar, prensa .97 en todo
   lo apretable. Nada decorativo repetitivo.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --tinta:      #221019;
  --tinta-2:    #55424C;
  --tinta-3:    #7A6570;
  --papel:      #FFFFFF;
  --hoja:       #FFFFFF;
  --crudo:      #FBF7F9;
  --linea:      #EDE2E8;
  --linea-2:    #DFCFD8;

  --rosa:       #E8318F;
  --rosa-bloq:  #D11A78;   /* 5.1:1 con blanco */
  --rosa-hondo: #8E1252;
  --rosa-texto: #A81A63;   /* 7:1 con blanco */
  --rosa-tenue: #FBE4F0;
  --rosa-piel:  #FDF1F7;

  --curva: cubic-bezier(.23, 1, .32, 1);
  --marco: min(1180px, 100% - 3rem);
  --display: "Bricolage Grotesque", Archivo, system-ui, sans-serif;
  --sans: Archivo, system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--sans);
  font-size: 16.5px; line-height: 1.62;
  color: var(--tinta); background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rosa-tenue); color: var(--rosa-hondo); }
:focus-visible { outline: 3px solid var(--rosa-bloq); outline-offset: 3px; border-radius: 4px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 40;
  background: var(--tinta); color: #fff; padding: .7rem 1.1rem;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top 180ms var(--curva);
}
.saltar:focus { top: 1rem; }

/* ───────── revelado al scroll ───────── */

.r {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--curva), transform 500ms var(--curva);
  transition-delay: var(--d, 0ms);
}
.r.in { opacity: 1; transform: none; }
html.sinjs .r { opacity: 1; transform: none; }

/* ───────── aviso de promoción ───────── */

.promo {
  position: relative; z-index: 31;
  background: var(--tinta); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .52rem 2.8rem .52rem 1rem; text-align: center;
  font-size: .85rem; line-height: 1.35;
  transition: opacity 240ms ease, transform 240ms var(--curva);
}
.promo b { font-weight: 700; color: #FF9DCB; }
.promo a { color: #fff; font-weight: 700; text-underline-offset: 3px; text-decoration-color: var(--rosa); }
.promo button {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.15rem; line-height: 1;
  cursor: pointer; transition: background 150ms ease;
}
.promo button:hover { background: rgba(255,255,255,.26); }
.promo--fuera { opacity: 0; transform: translateY(-8px); }

/* ───────── cabecera (se achica al bajar) ───────── */

.cabecera {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background 250ms ease;
}
.cabecera.baja { border-color: var(--linea); background: rgba(255,255,255,.95); }
.cabecera__in {
  width: var(--marco); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .82rem 0;
  transition: padding 300ms var(--curva);
}
.cabecera.baja .cabecera__in { padding: .45rem 0; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca img {
  width: 42px; height: 42px; border-radius: 10px;
  transition: width 300ms var(--curva), height 300ms var(--curva);
}
.cabecera.baja .marca img { width: 34px; height: 34px; }
.marca__t { display: flex; flex-direction: column; line-height: 1.2; }
.marca__t b { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.marca__t i { font-style: normal; font-size: .72rem; color: var(--tinta-3); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.menu-btn { display: none; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--tinta-2);
  transition: color 150ms ease;
}
.nav a:not(.nav__aula) {
  background: linear-gradient(var(--rosa-bloq), var(--rosa-bloq)) left bottom / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: color 150ms ease, background-size 240ms var(--curva);
}
.nav a:not(.nav__aula):hover { background-size: 100% 2px; }
.nav a:not(.nav__aula):hover { color: var(--rosa-texto); }
.nav a.nav__aula {
  background: var(--tinta); color: #fff;
  padding: .5rem 1rem; border-radius: 11px; font-weight: 700;
  transition: background 160ms ease, transform 160ms var(--curva);
}
.nav a.nav__aula:hover { background: var(--rosa-bloq); }
.nav a.nav__aula:active { transform: scale(.96); }

/* ───────── botones ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--rosa-bloq); color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: -.01em; font-size: .98rem;
  padding: .78rem 1.5rem; border-radius: 12px; min-height: 48px;
  box-shadow: 0 1px 2px rgba(142,18,82,.3);
  transition: background 160ms ease, transform 160ms var(--curva), box-shadow 160ms ease;
}
.btn:hover { background: var(--rosa-hondo); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn--grande { font-size: 1.04rem; padding: .95rem 1.9rem; min-height: 54px; }
.btn--ancho { width: 100%; }
.btn--claro { background: #fff; color: var(--rosa-hondo); box-shadow: none; }
.btn--claro:hover { background: var(--rosa-tenue); }
.btn--fantasma {
  background: transparent; color: var(--tinta); box-shadow: none;
  font-weight: 650; border: 1.5px solid var(--linea-2);
}
.btn--fantasma:hover { background: var(--crudo); border-color: var(--tinta-3); }
.btn--linea {
  background: transparent; color: var(--rosa-hondo);
  border: 1.5px solid var(--linea-2); font-weight: 650;
  padding: .62rem 1.15rem; min-height: 44px; box-shadow: none;
}
.btn--linea:hover { background: var(--rosa-piel); border-color: var(--rosa-bloq); }

/* ───────── marcas de sección (chau kickers traqueados) ───────── */

.kicker {
  display: inline-flex; align-items: baseline; gap: .45rem;
  font-size: .9rem; font-weight: 650; letter-spacing: 0;
  text-transform: none; color: var(--rosa-bloq);
}
.kicker::before {
  content: ""; width: .74em; height: .74em; align-self: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23D11A78' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.como .kicker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23FFC9E4' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.kicker::after { display: none; }

/* ───────── hero ───────── */

.hero { background: var(--papel); overflow: clip; }
.hero__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
h1 {
  margin-top: 1rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  line-height: 1.02; letter-spacing: -.03em;
  max-width: 17ch; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--rosa-bloq); position: relative; display: inline; }
h1 em .sub { position: relative; display: inline-block; }
h1 em .sub svg {
  position: absolute; left: -1%; bottom: -.14em; width: 102%; height: .28em;
  overflow: visible;
}
h1 em .sub path {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: traza 900ms var(--curva) 550ms forwards;
}
@keyframes traza { to { stroke-dashoffset: 0; } }

.bajada {
  margin-top: 1.2rem; max-width: 46ch;
  color: var(--tinta-2); font-size: 1.06rem;
}
.hero__cta { margin-top: 1.6rem; display: flex; gap: .65rem; flex-wrap: wrap; justify-content: center; }

/* entrada del hero, solo al cargar */
.ap > * { animation: sube 600ms var(--curva) backwards; }
.ap > *:nth-child(1) { animation-delay: 40ms; }
.ap > *:nth-child(2) { animation-delay: 110ms; }
.ap > *:nth-child(3) { animation-delay: 180ms; }
.ap > *:nth-child(4) { animation-delay: 250ms; }
@keyframes sube {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* marquee del taller: corre solo, de punta a punta */
.tira {
  margin-top: clamp(1.9rem, 3.4vw, 2.8rem);
  display: flex; overflow: hidden; gap: .8rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tira__track {
  display: flex; gap: .8rem; flex: none;
  animation: marquee 46s linear infinite;
}
.tira:hover .tira__track { animation-play-state: paused; }
.tira img {
  width: clamp(150px, 17vw, 215px); aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 12px; flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - .8rem)); }
}

/* franja de condiciones: una línea, sin caja */
.condiciones {
  list-style: none;
  width: var(--marco); margin: clamp(1.7rem, 3vw, 2.4rem) auto 0;
  padding: 1.05rem 0 1.35rem;
  border-top: 1px solid var(--linea);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .8rem 1.8rem; text-align: left;
}
.condiciones li { display: flex; gap: .6rem; align-items: flex-start; }
.condiciones i { flex: none; color: var(--rosa-bloq); font-style: normal; }
.condiciones i::before {
  content: ""; display: block; width: 13px; height: 13px; margin-top: .3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23D11A78' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.condiciones b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.015em; }
.condiciones span { font-size: .83rem; color: var(--tinta-3); }

/* ───────── catálogo ───────── */

.catalogo { padding: clamp(2.4rem, 4.5vw, 4rem) 0 clamp(2.6rem, 5vw, 4.2rem); }
.catalogo__cab { width: var(--marco); margin-inline: auto; text-align: center; margin-bottom: clamp(1.5rem, 2.6vw, 2.2rem); }
.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.025em;
  line-height: 1.06; text-wrap: balance;
}
.catalogo__cab .h2 { margin-top: .55rem; }
.catalogo__cab p { margin-top: .6rem; color: var(--tinta-3); }

/* filtros: solapas con subrayado, no pastillas */
.filtros {
  width: var(--marco); margin: 0 auto 1.7rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.4rem;
  border-bottom: 1px solid var(--linea);
}
.filtro {
  font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer;
  background: none; border: 0; color: var(--tinta-3);
  padding: .55rem .15rem .8rem; min-height: 44px;
  position: relative;
  transition: color 150ms ease;
}
.filtro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--rosa-bloq);
  transform: scaleX(0); transform-origin: center;
  transition: transform 220ms var(--curva);
}
.filtro:hover { color: var(--tinta); }
.filtro.on { color: var(--tinta); }
.filtro.on::after { transform: scaleX(1); }

.grilla {
  width: var(--marco); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.curso {
  background: var(--hoja); border: 1px solid var(--linea);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms var(--curva), box-shadow 240ms var(--curva), border-color 240ms ease;
}
.curso:hover {
  transform: translateY(-4px);
  border-color: var(--linea-2);
  box-shadow: 0 20px 36px -24px rgba(60,20,42,.4);
}
.curso:active { transform: scale(.99); transition-duration: 100ms; }
.curso.pop { animation: sube 380ms var(--curva) backwards; animation-delay: var(--pd, 0ms); }
.curso__foto { display: block; text-decoration: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rosa-piel); position: relative; }
.curso__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--curva); }
.curso:hover .curso__foto img { transform: scale(1.04); }

.curso__foto--tipo { display: grid; place-items: center; padding: 1rem; text-align: center; background: var(--rosa-tenue); }
.curso__foto--tipo span {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.2rem, 1.6vw + .6rem, 1.8rem);
  color: var(--rosa-hondo); line-height: 1.05; letter-spacing: -.025em;
  max-width: 11ch; overflow-wrap: anywhere;
}
.curso__foto--tipo.tipo-b { background: var(--tinta); }
.curso__foto--tipo.tipo-b span { color: #fff; }
.curso__foto--tipo.tipo-b::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23E8318F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: .85; }
.curso__foto--tipo::before {
  content: ""; position: absolute; right: .8rem; bottom: .7rem;
  width: 15px; height: 15px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23D11A78' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.curso__cuerpo { padding: 1rem 1.15rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.chip {
  align-self: flex-start;
  font-size: .82rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--rosa-bloq); background: none; padding: 0; border-radius: 0;
}
.curso h3 {
  margin-top: .35rem;
  font-family: var(--display); font-weight: 700;
  font-size: 1.28rem; line-height: 1.12; letter-spacing: -.02em;
}
.curso h3 a { text-decoration: none; transition: color 150ms ease; }
.curso h3 a:hover { color: var(--rosa-texto); }
.curso__d { margin-top: .45rem; font-size: .89rem; color: var(--tinta-3); }
.curso__pie {
  margin-top: auto; padding-top: .9rem;
  display: flex; align-items: center; justify-content: flex-start; gap: .8rem;
}
.curso__pie .btn { margin-left: 0; }
.curso .btn--linea {
  padding: .5rem 1.1rem; min-height: 42px; font-size: .89rem;
  background: var(--rosa-bloq); color: #fff; border-color: transparent;
}
.curso .btn--linea:hover { background: var(--rosa-hondo); }

.curso__precio { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: .45rem; line-height: 1.1; }
.curso__precio s { grid-column: 1 / -1; font-size: .8rem; color: var(--tinta-3); text-decoration-color: var(--rosa-bloq); margin-bottom: .15rem; }
.curso__precio b { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }
.curso__precio span { font-size: .74rem; color: var(--tinta-3); }

/* etiqueta sobre la foto */
.etiqueta {
  position: absolute; left: .7rem; top: .7rem;
  background: var(--tinta); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  padding: .3rem .6rem; border-radius: 8px;
}
.etiqueta--nuevo { background: var(--rosa-bloq); color: #fff; }
.chip--oscuro { color: var(--tinta); }
.chip--rosa { color: var(--rosa-bloq); }
.grilla__vacio { width: var(--marco); margin: 1rem auto 0; text-align: center; color: var(--tinta-3); }

/* ───────── cómo funciona · banda rosa compacta ───────── */

.como { background: var(--rosa-bloq); color: #fff; overflow: clip; }
.como__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.4rem, 4.5vw, 3.8rem) 0;
  text-align: center;
}
.como .kicker { color: #FFC9E4; }
.como .kicker::before { color: #FFC9E4; }
.como .h2 { margin-top: .5rem; color: #fff; }
.como__sub { margin-top: .55rem; color: #FBCFE5; max-width: 46ch; margin-inline: auto; }

.pasos {
  list-style: none; counter-reset: p;
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  text-align: left;
}
.pasos li {
  counter-increment: p;
  border-left: 1px solid rgba(255,255,255,.3);
  padding: .2rem 1.2rem .4rem 1.1rem;
  background: none; border-radius: 0; backdrop-filter: none;
}
.pasos li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; line-height: 1;
  color: #FFC9E4; display: block; margin-bottom: .55rem;
}
.pasos b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; }
.pasos span { display: block; margin-top: .25rem; font-size: .86rem; color: #FBD9E9; }

.como__garantia {
  margin: 1.8rem auto 0; max-width: 52ch; font-size: .92rem; color: #FBD9E9;
}
.como__garantia a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.como .btn--claro { margin-top: 1.2rem; }

/* ───────── opiniones ───────── */

.opiniones { background: var(--crudo); border-block: 1px solid var(--linea); }
.opiniones__in { width: var(--marco); margin-inline: auto; padding: clamp(2.4rem, 4.5vw, 4rem) 0; text-align: center; }
.opiniones .h2 { margin-top: .5rem; }
.testis {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  text-align: left;
}
.testi { background: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.testi::before {
  content: "“"; font-family: var(--display); font-weight: 800;
  font-size: 2.6rem; line-height: .6; color: var(--rosa-bloq);
}
.testi blockquote { font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--tinta); font-weight: 500; }
.testi blockquote::before { content: none; }
.testi figcaption { display: flex; gap: .5rem; align-items: baseline; font-size: .86rem; color: var(--tinta-3); }
.testi figcaption b { color: var(--tinta); font-weight: 700; }

/* ───────── lema ───────── */

.lema { background: var(--papel); overflow: clip; }
.lema p {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.2rem, 4.5vw, 3.8rem) 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: clamp(1.2rem, 4.5vw, 3.6rem);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.3rem, 6.5vw, 4.6rem); line-height: 1;
  letter-spacing: -.03em; text-transform: none;
  color: var(--tinta);
}
.lema span { position: relative; }
.lema span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--rosa-bloq);
}
.lema span:nth-child(3) { color: var(--rosa-bloq); }
.lema span + span::before {
  content: ""; position: absolute;
  left: calc(-.5 * clamp(1.2rem, 4.5vw, 3.6rem)); top: 54%;
  transform: translate(-50%, -50%);
  width: .16em; height: .16em; border-radius: 50%; background: var(--rosa-bloq);
}
@supports not (-webkit-text-stroke: 1px black) {
  .lema span:nth-child(2) { color: var(--rosa-bloq); }
}

/* ───────── escuela ───────── */

.escuela {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.6rem, 4.5vw, 4.2rem) 0;
  display: grid; grid-template-columns: 1.05fr minmax(300px, 440px);
  gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center;
}
.escuela .h2 { margin-top: .6rem; }
.escuela .h2 em { font-style: normal; color: var(--rosa-bloq); }
.escuela p { margin-top: 1rem; max-width: 56ch; color: var(--tinta-2); }
.escuela__firma { margin-top: 1.4rem; font-size: .9rem; color: var(--tinta-3); }
.escuela__firma::before {
  content: ""; display: block;
  width: 30px; height: 3px; border-radius: 2px;
  background: var(--rosa-bloq); margin-bottom: .6rem;
}
.escuela__firma b { display: block; color: var(--tinta); font-size: .98rem; font-weight: 700; }

.escuela__fotos {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: 10px;
  aspect-ratio: 5 / 4;
}
.escuela__fotos img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.escuela__fotos img:first-child { border-radius: 12px; }

/* ───────── trayectoria ───────── */

.tray { background: var(--crudo); border-block: 1px solid var(--linea); }
.tray__in { width: var(--marco); margin-inline: auto; padding: clamp(2.4rem, 4.5vw, 3.8rem) 0; }
.tray__cab { max-width: 58ch; margin-inline: auto; text-align: center; }
.tray__cab .h2 { margin-top: .5rem; }
.tray__cab .h2 em { font-style: normal; color: var(--rosa-bloq); }
.tray__cab p { margin-top: .9rem; color: var(--tinta-2); }
.tray__cuerpo {
  display: grid; grid-template-columns: 1.15fr minmax(280px, 400px);
  gap: clamp(2rem, 4vw, 3.6rem); align-items: center;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.tray__lista { list-style: none; }
.tray__lista li { padding: .75rem 0; border-top: 1px solid var(--linea); }
.tray__lista li:first-child { border-top: 0; padding-top: 0; }
.tray__lista b { display: block; font-weight: 700; letter-spacing: -.015em; }
.tray__lista span { font-size: .88rem; color: var(--tinta-3); }
.tray__fotos { display: grid; gap: .8rem; }
.tray__fotos img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.tray__cierre {
  margin: clamp(1.6rem, 3vw, 2.2rem) auto 0; max-width: 56ch; text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.45; letter-spacing: -.015em;
  color: var(--tinta);
}
@media (max-width: 900px) { .tray__cuerpo { grid-template-columns: 1fr; } }

/* ── enlace a Máster Gestoría ── */
.gestoria { background: var(--papel); }
.gestoria__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0;
  display: grid; grid-template-columns: 150px 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center;
}
.gestoria__in img { width: 150px; height: auto; }
.gestoria .h2 { margin-top: .5rem; }
.gestoria p { margin-top: .8rem; color: var(--tinta-2); max-width: 56ch; }
.gestoria .btn { margin-top: 1.1rem; }

/* ───────── aula ───────── */

.aula { background: var(--tinta); color: #fff; }
.aula__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.4rem, 4vw, 3.4rem) 0; text-align: center;
}
.aula .h2 { color: #fff; }
.aula p { margin-top: .7rem; color: #C4B2BB; }
.aula .btn { margin-top: 1.4rem; }

/* ═══════════ ficha de curso ═══════════ */

.miga {
  width: var(--marco); margin: 1.4rem auto 0;
  font-size: .84rem; color: var(--tinta-3);
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.miga a { text-decoration: none; }
.miga a:hover { color: var(--rosa-texto); }
.miga b { color: var(--tinta); font-weight: 600; }

.fc {
  width: var(--marco); margin: 1.5rem auto 0;
  padding-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
  display: grid; grid-template-columns: 1fr 352px;
  gap: clamp(2rem, 4vw, 3.6rem); align-items: start;
}
.fc__cuerpo { min-width: 0; }
.fc__cuerpo h1 {
  margin-top: .55rem; text-align: left; max-width: none;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}
.fc__entrada { margin-top: 1rem; max-width: 60ch; font-size: 1.05rem; color: var(--tinta-2); }
.fc__chips { display: flex; gap: .9rem; flex-wrap: wrap; }
.fc__datos {
  list-style: none; margin-top: 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem;
}
.fc__datos li { background: var(--crudo); border: 1px solid var(--linea); border-radius: 12px; padding: .75rem .85rem; line-height: 1.15; }
.fc__datos b { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.fc__datos span { font-size: .78rem; color: var(--tinta-3); }

.fc__foto {
  margin-top: 1.8rem; border-radius: 14px; overflow: hidden;
  background: var(--rosa-piel); border: 1px solid var(--linea);
  display: flex; flex-direction: column;
}
.fc__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fc__foto figcaption { padding: .55rem 1rem .65rem; font-size: .8rem; color: var(--tinta-3); background: var(--hoja); }

.fc__cuerpo section { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.fc__cuerpo h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem); letter-spacing: -.02em;
}
.fc__nota { margin-top: .5rem; font-size: .9rem; color: var(--tinta-3); }

.lista { list-style: none; margin-top: 1.1rem; max-width: 62ch; }
.lista li { position: relative; padding: .45rem 0 .45rem 1.7rem; color: var(--tinta-2); }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23D11A78' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* temario */
.temario { margin-top: 1.3rem; max-width: 62ch; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--linea); }
.temario details { background: none; border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; }
.temario details[open] summary b { color: var(--rosa-bloq); }
.temario summary {
  cursor: pointer; list-style: none; position: relative;
  padding: .9rem 2.4rem .9rem 0;
  font-size: 1rem; letter-spacing: -.012em;
  display: flex; align-items: baseline; gap: .7rem;
  transition: color 150ms ease;
}
.temario summary:hover { color: var(--rosa-texto); }
.temario summary::-webkit-details-marker { display: none; }
.temario summary b {
  font-family: var(--display); font-weight: 800;
  color: var(--tinta-3); font-size: .92rem; flex: none; min-width: 2.1rem;
}
.temario summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.22rem;
  width: 8px; height: 8px;
  border-right: 2px solid var(--tinta-3); border-bottom: 2px solid var(--tinta-3);
  transform: rotate(45deg); transform-origin: 66% 66%;
  transition: transform 220ms var(--curva);
}
.temario details[open] summary::after { transform: rotate(-135deg); }
.temario ol { margin: 0 0 1rem 2.8rem; color: var(--tinta-2); }
.temario ol li { padding: .18rem 0; font-size: .93rem; }
.temario details > p { padding: 0 0 1rem; color: var(--tinta-2); }
.temario summary em { font-style: normal; margin-left: auto; font-size: .78rem; color: var(--tinta-3); padding-right: 1rem; }
.temario--faq summary { font-weight: 600; }
.gratis {
  margin-left: .5rem; font-size: .78rem; font-weight: 700;
  color: #fff; background: var(--rosa-bloq); padding: .12rem .5rem; border-radius: 7px; text-decoration: none;
}

/* caja de compra */
.compra { position: sticky; top: 84px; }
.compra__caja {
  background: var(--hoja); border: 1px solid var(--linea-2);
  border-radius: 16px; padding: 1.55rem 1.45rem 1.45rem;
  box-shadow: 0 24px 48px -32px rgba(60,20,42,.35);
}
.compra__precio {
  font-family: var(--display);
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
.compra__precio s { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--tinta-3); text-decoration-color: var(--rosa-bloq); }
.compra__oferta { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: .82rem; color: var(--tinta-3); }
.compra__mp { margin-top: .75rem; display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: var(--tinta-3); }
.compra__mp svg { color: #2D9E5B; }
.compra__wa { display: block; margin-top: 1rem; text-align: center; font-size: .86rem; font-weight: 600; color: var(--rosa-texto); text-decoration: none; }
.compra__wa:hover { text-decoration: underline; }
.compra__sub { margin-top: .5rem; font-size: .88rem; color: var(--tinta-3); }
.compra .btn { margin-top: 1.2rem; }

.incluye { list-style: none; margin-top: 1.25rem; }
.incluye li { position: relative; padding: .48rem 0 .48rem 1.7rem; font-size: .92rem; color: var(--tinta-2); }
.incluye li + li { border-top: 1px solid var(--linea); }
.incluye li::before {
  content: ""; position: absolute; left: 0; top: .82rem;
  width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6v18.8M3.9 7.3l16.2 9.4M20.1 7.3L3.9 16.7' stroke='%23D11A78' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compra__pie { margin-top: 1rem; font-size: .8rem; color: var(--tinta-3); }

.docente { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; margin-top: 1.2rem; background: var(--crudo); border: 1px solid var(--linea); border-radius: 14px; padding: 1.1rem; }
.docente img { width: 110px; height: 110px; object-fit: cover; object-position: 30% 20%; border-radius: 12px; }
.docente b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.docente p { margin-top: .3rem; font-size: .92rem; color: var(--tinta-2); }

.otros {
  width: var(--marco); margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 3.4rem) 0 clamp(2.6rem, 4.5vw, 3.8rem);
  border-top: 1px solid var(--linea);
  text-align: center;
}
.otros .grilla { width: 100%; margin-top: 1.7rem; text-align: left; }

.barra-movil { display: none; }
.barra-cta { display: none; }

/* ───────── pie ───────── */

.pie { background: var(--tinta); color: #C4B2BB; }
.pie__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.4rem, 4vw, 3.2rem) 0 1.8rem;
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem;
}
.pie__marca { display: flex; gap: .9rem; align-items: flex-start; }
.pie__marca img { border-radius: 12px; }
.pie__marca p { color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pie__marca span { font-family: var(--sans); font-weight: 400; color: #97838C; font-size: .85rem; }
.pie__col h3 {
  font-size: .9rem; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: #97838C; margin-bottom: .65rem;
}
.pie__col p { font-size: .9rem; margin-bottom: .5rem; }
.pie__col a { color: #C4B2BB; text-decoration: none; transition: color 150ms ease; }
.pie__col a:hover { color: var(--rosa); }
.pie__legal {
  width: var(--marco); margin-inline: auto;
  padding: 1.3rem 0 2rem; border-top: 1px solid #3D2A34;
  font-size: .8rem; color: #83707A;
}

/* WhatsApp flotante */
.wa {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 28;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
  transition: transform 180ms var(--curva), box-shadow 180ms ease;
}
.wa:hover { transform: translateY(-2px) scale(1.04); }
.wa:active { transform: scale(.95); }

/* aviso de vista previa */
.vista-previa {
  position: fixed; left: .9rem; bottom: .9rem; z-index: 27;
  font-size: .7rem; letter-spacing: .04em; color: #fff;
  background: rgba(34,16,25,.82); padding: .35rem .7rem; border-radius: 100px;
  backdrop-filter: blur(6px); pointer-events: none;
}

/* ═══════════ adaptación ═══════════ */

@media (max-width: 1000px) {
  .fc { grid-template-columns: 1fr; }
  .compra { position: static; }
  .escuela { grid-template-columns: 1fr; text-align: center; }
  .escuela p, .escuela .h2 { margin-inline: auto; }
  .escuela__firma::before { margin-inline: auto; }
  .pie__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --marco: min(1180px, 100% - 2.1rem); }

  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
  }
  .menu-btn span:not(.vh) { display: block; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform 220ms var(--curva), opacity 160ms ease; }
  body.menu-abierto .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-abierto .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-abierto .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papel); border-bottom: 1px solid var(--linea);
    padding: .4rem 1.1rem 1rem;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity 200ms ease, transform 240ms var(--curva);
  }
  body.menu-abierto .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 1.05rem; padding: .85rem 0; border-bottom: 1px solid var(--linea); }
  .nav a.nav__aula { margin-top: .8rem; justify-content: center; display: flex; padding: .8rem 1rem; border: 0; }

  .promo { font-size: .8rem; padding-right: 2.6rem; text-align: left; justify-content: flex-start; }
  .hero__in { padding-top: 1.9rem; }
  h1 { font-size: clamp(2.35rem, 9.6vw, 3rem); max-width: 13ch; }
  .bajada { font-size: .98rem; max-width: 36ch; }
  .tira img { width: 148px; border-radius: 10px; }
  .condiciones { grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
  .condiciones b { font-size: .88rem; }
  .condiciones span { font-size: .77rem; }

  .filtros { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 1.2rem; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; }

  .grilla { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .curso__foto { aspect-ratio: 4 / 3; }
  .curso__cuerpo { padding: .8rem .85rem .9rem; }
  .curso h3 { font-size: 1.05rem; }
  .curso__d { font-size: .82rem; }
  .curso .btn--linea { padding: .45rem .85rem; min-height: 40px; font-size: .85rem; }

  .pasos { grid-template-columns: 1fr; gap: 0; }
  .pasos li {
    display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .5rem;
    padding: .8rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.28);
  }
  .pasos li:first-child { border-top: 0; }
  .pasos li::before { grid-row: 1 / 3; margin: 0; font-size: 1rem; padding-top: .2rem; }

  .testis { grid-template-columns: 1fr; gap: 1.6rem; }
  .fc__datos { grid-template-columns: 1fr 1fr; }
  .docente { grid-template-columns: 84px 1fr; }
  .docente img { width: 84px; height: 84px; }
  .vista-previa { display: none; }

  /* barra de conversión fija */
  .barra-cta {
    display: flex; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 26;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--linea-2);
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 28px rgba(60,20,42,.1);
    transform: translateY(110%);
    transition: transform 300ms var(--curva);
  }
  .barra-cta.visible { transform: none; }
  .barra-cta .btn { flex: 1; min-height: 48px; font-size: .95rem; padding: .7rem 1rem; }
  .barra-cta .btn--fantasma { flex: .8; }

  .wa { right: .85rem; bottom: .85rem; width: 50px; height: 50px; transition: transform 300ms var(--curva); }
  body.con-barra .wa { transform: translateY(-72px); }

  .barra-movil {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--linea-2);
    padding: .7rem 1.1rem calc(.7rem + env(safe-area-inset-bottom));
  }
  .barra-movil span { display: flex; flex-direction: column; line-height: 1.12; }
  .barra-movil b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
  .barra-movil s { font-size: .74rem; color: var(--tinta-3); }
  .barra-movil i { font-style: normal; font-size: .75rem; color: var(--tinta-3); }
  .barra-movil .btn { padding: .7rem 1.4rem; min-height: 46px; }
  body:has(.barra-movil) { padding-bottom: 86px; }
  body:has(.barra-movil) .wa { bottom: calc(.85rem + 78px); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  /* hero compacto: que el catalogo quede a un scroll */
  .hero__in { padding-top: 1.4rem; }
  h1 { font-size: clamp(2.1rem, 8.8vw, 2.6rem); }
  .bajada { margin-top: .9rem; font-size: .95rem; }
  .hero__cta { margin-top: 1.2rem; gap: .5rem; }
  .hero__cta .btn--fantasma { min-height: 46px; padding: .6rem 1.5rem; font-size: .95rem; }
  .tira { margin-top: 1.5rem; }
  .tira img { width: 126px; }
  .condiciones { margin-top: 1.3rem; padding: .9rem 0 1.05rem; gap: .55rem .8rem; }
  .catalogo { padding-top: 1.8rem; }
  .catalogo__cab { margin-bottom: 1.1rem; }

  /* tarjetas horizontales: mas cursos por pantalla, boton siempre a la vista */
  .grilla { grid-template-columns: 1fr; gap: .65rem; }
  .curso { flex-direction: row; align-items: stretch; }
  .curso__foto { width: 118px; flex: none; aspect-ratio: auto; }
  .curso__foto img { height: 100%; }
  .curso__foto--tipo { padding: .5rem; }
  .curso__foto--tipo span { font-size: .92rem; max-width: none; }
  .curso__foto--tipo::before { display: none; }
  .etiqueta { left: .45rem; top: .45rem; font-size: .64rem; padding: .2rem .4rem; }
  .curso__cuerpo { padding: .7rem .85rem .75rem; }
  .chip { font-size: .76rem; }
  .curso h3 { margin-top: .2rem; font-size: 1.02rem; }
  .curso__d {
    margin-top: .3rem; font-size: .8rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .curso__pie { padding-top: .55rem; }
  .curso .btn--linea { min-height: 38px; padding: .4rem .95rem; font-size: .83rem; }

  .promo { font-size: .78rem; padding-block: .45rem; }

  .marca__t i { display: none; }
  .pie__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .lema p { gap: clamp(1rem, 5vw, 2rem); }
  .escuela__fotos { aspect-ratio: auto; grid-template-columns: 1.12fr 1fr; }
  .escuela__fotos img { aspect-ratio: 3 / 4; }
  .hero__cta { width: 100%; flex-direction: column; }
  .btn--grande { width: 100%; }
  .gestoria__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .gestoria p { margin-inline: auto; }
}

@media (min-width: 821px) {
  .gestoria__in { grid-template-columns: 150px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap > * { animation: none; }
  .r { opacity: 1; transform: none; transition: none; }
  .tira__track { animation: none; }
  .tira { overflow-x: auto; }
  h1 em .sub path { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

@media (hover: none) {
  .curso:hover { transform: none; box-shadow: none; }
  .curso:hover .curso__foto img { transform: none; }
  .btn:hover { transform: none; }
}

/* ───────── v4.3 · 28/9 ───────── */

/* lema y escuela más juntos */
.lema p { padding-bottom: clamp(.6rem, 1.4vw, 1.2rem); }
.lema + .escuela { padding-top: clamp(1.4rem, 2.6vw, 2.2rem); }

/* ───────── v4.4 · 28/9 · conversión ───────── */

/* la cabecera del celular se vuelve una píldora centrada al bajar */
@keyframes pastilla { from { opacity: .4; transform: translateY(-6px) scale(.97); } }
@media (max-width: 820px) {
  .cabecera { transition: background 250ms ease, border-color 250ms ease, padding 300ms var(--curva); }
  .cabecera.baja {
    background: transparent; border-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding-top: .55rem; pointer-events: none;
  }
  .cabecera.baja .cabecera__in {
    pointer-events: auto;
    width: fit-content; max-width: calc(100% - 1.4rem);
    padding: .3rem .3rem .3rem .4rem; gap: .9rem;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid var(--linea); border-radius: 999px;
    box-shadow: 0 12px 30px -16px rgba(60,20,42,.38);
    animation: pastilla 320ms var(--curva);
  }
  .cabecera.baja .marca { gap: .5rem; }
  .cabecera.baja .marca img { width: 32px; height: 32px; border-radius: 50%; }
  .cabecera.baja .marca__t i { display: none; }
  .cabecera.baja .marca__t b { font-size: .95rem; }
  .cabecera.baja .menu-btn { width: 40px; height: 40px; padding: 10px; border-radius: 50%; }
  .cabecera.baja .nav {
    pointer-events: none; left: .7rem; right: .7rem; top: calc(100% + .35rem);
    border: 1px solid var(--linea); border-radius: 18px;
    box-shadow: 0 18px 40px -20px rgba(60,20,42,.4);
  }
  body.menu-abierto .cabecera.baja .nav { pointer-events: auto; }
}

/* lo que incluye cada curso, ahora debajo del catálogo */
.incluye-todo { width: var(--marco); margin: clamp(1.8rem, 3.4vw, 2.6rem) auto 0; }
.incluye-todo__t { font-weight: 700; font-size: .95rem; color: var(--tinta-2); }
.incluye-todo .condiciones { width: auto; margin-top: .6rem; }

/* "Ver el curso" al lado del botón de inscripción */
.curso__mas {
  font-size: .86rem; font-weight: 650; color: var(--tinta-2);
  text-decoration: underline; text-decoration-color: var(--linea-2); text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.curso__mas:hover { color: var(--rosa-texto); text-decoration-color: currentColor; }

/* ───────── alumnas con globo de mensaje sobre la foto ───────── */

.alumnas {
  background: var(--crudo); border-block: 1px solid var(--linea);
  padding: clamp(2.4rem, 4.5vw, 4rem) 0;
}
.alumnas__cab { width: var(--marco); margin-inline: auto; text-align: center; }
.alumnas__cab .h2 { margin-top: .5rem; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.alumnas__fila {
  width: min(1040px, 100% - 3rem); margin: clamp(1.5rem, 3vw, 2.2rem) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 2vw, 1.4rem);
}
.alumna {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--rosa-piel);
  box-shadow: 0 24px 40px -30px rgba(60,20,42,.55);
}
.alumna img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--curva); }
.alumna::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(34,16,25,.38));
}
@media (hover: hover) { .alumna:hover img { transform: scale(1.035); } }

.globo {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1;
  background: #fff; color: var(--tinta);
  border-radius: 18px 18px 18px 5px;
  padding: .7rem .85rem .75rem;
  box-shadow: 0 14px 30px -14px rgba(34,16,25,.55);
  opacity: 0; transform: translateY(14px) scale(.92); transform-origin: 0 100%;
  transition: opacity 360ms var(--curva), transform 460ms var(--curva);
  transition-delay: calc(var(--i, 0) * 220ms);
}
.alumna.ve .globo { opacity: 1; transform: none; }
.globo__escribiendo {
  display: flex; gap: 4px; align-items: center; height: 1rem; overflow: hidden;
  transition: height 260ms var(--curva), opacity 200ms ease;
}
.globo__escribiendo i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tinta-3);
  animation: tecleo 1s ease-in-out infinite;
}
.globo__escribiendo i:nth-child(2) { animation-delay: .15s; }
.globo__escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes tecleo { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.globo__cuerpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 480ms var(--curva); }
.globo__cuerpo > span { overflow: hidden; opacity: 0; transition: opacity 360ms ease 120ms; }
.alumna.escrito .globo__escribiendo { height: 0; opacity: 0; }
.alumna.escrito .globo__cuerpo { grid-template-rows: 1fr; }
.alumna.escrito .globo__cuerpo > span { opacity: 1; }
.globo q { display: block; font-size: .92rem; line-height: 1.45; font-weight: 500; quotes: none; }
.globo__quien { display: block; margin-top: .4rem; font-size: .8rem; color: var(--tinta-3); }
.globo__quien b { color: var(--rosa-texto); font-weight: 700; }

@media (max-width: 820px) {
  /* en el celular se desliza: la sección no se alarga */
  .alumnas__fila {
    width: 100%; display: flex; gap: .75rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 0 1.05rem .4rem; scroll-padding-inline: 1.05rem; scrollbar-width: none;
  }
  .alumnas__fila::-webkit-scrollbar { display: none; }
  .alumna { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  .globo { transition-delay: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  .globo { opacity: 1; transform: none; }
  .globo__escribiendo { display: none; }
  .globo__cuerpo { grid-template-rows: 1fr; }
  .globo__cuerpo > span { opacity: 1; }
}

/* ───────── hoja de inscripción ───────── */

.hoja {
  border: 0; padding: 0; margin: auto;
  width: min(520px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  border-radius: 22px; background: #fff; color: var(--tinta);
  box-shadow: 0 30px 80px -30px rgba(34,16,25,.55);
  overflow: auto; overscroll-behavior: contain;
}
.hoja::backdrop { background: rgba(34,16,25,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hoja[open] { animation: hoja-entra 380ms var(--curva); }
.hoja[open]::backdrop { animation: velo-entra 280ms ease; }
@keyframes hoja-entra { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes velo-entra { from { opacity: 0; } }
.hoja__in { position: relative; padding: 1.35rem 1.4rem 1.3rem; }
.hoja__cerrar {
  position: absolute; top: .7rem; right: .7rem;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--crudo); color: var(--tinta-2); font-size: 1.4rem; line-height: 1;
}
.hoja__cerrar:hover { background: var(--rosa-tenue); color: var(--rosa-texto); }
.hoja__cab { display: flex; gap: .9rem; align-items: center; padding-right: 2.6rem; }
.hoja__foto { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; background: var(--rosa-piel); }
.hoja__cab h2 { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; margin-top: .15rem; }
.hoja__d { margin-top: .8rem; font-size: .93rem; color: var(--tinta-3); }
.hoja__d:empty { display: none; }
.hoja__incluye {
  list-style: none; margin-top: 1rem; padding: .85rem 0; border-block: 1px solid var(--linea);
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; font-size: .88rem; font-weight: 600;
}
.hoja__incluye li { display: flex; gap: .45rem; align-items: flex-start; }
.hoja__incluye li::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: .15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D11A78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hoja__pasos { list-style: none; margin-top: .9rem; display: grid; gap: .45rem; font-size: .9rem; color: var(--tinta-2); }
.hoja__pasos li { display: flex; align-items: center; gap: .6rem; }
.hoja__pasos b {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem;
  background: var(--rosa-tenue); color: var(--rosa-texto);
}
.hoja__campo { display: grid; gap: .35rem; margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--tinta-2); }
.hoja__campo small { font-weight: 500; color: var(--tinta-3); }
.hoja__campo input {
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--tinta);
  border: 1.5px solid var(--linea-2); border-radius: 12px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.hoja__campo input:focus { outline: none; border-color: var(--rosa-bloq); box-shadow: 0 0 0 4px var(--rosa-tenue); }
.hoja__mp, .hoja__wa { margin-top: .9rem; }
.hoja__mp:not([hidden]) + .hoja__wa { margin-top: .5rem; background: transparent; color: var(--rosa-hondo); border: 1.5px solid var(--linea-2); box-shadow: none; }
.hoja__ficha {
  display: block; margin-top: .75rem; text-align: center;
  font-size: .9rem; font-weight: 650; color: var(--tinta-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linea-2);
}
.hoja__nota { margin-top: .7rem; text-align: center; font-size: .82rem; color: var(--tinta-3); }

@media (max-width: 620px) {
  /* en el celular sale desde abajo */
  .hoja {
    width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh;
    border-radius: 22px 22px 0 0;
  }
  .hoja[open] { animation: hoja-sube 420ms var(--curva); }
  @keyframes hoja-sube { from { transform: translateY(100%); } }
  .hoja__in { padding: 1.2rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); }
  .hoja__in::before {
    content: ""; display: block; width: 42px; height: 4px; border-radius: 4px;
    background: var(--linea-2); margin: -.4rem auto .9rem;
  }
  .hoja__cerrar { top: .9rem; }
  .hoja__foto { width: 62px; height: 62px; }
  .hoja__cab h2 { font-size: 1.2rem; }
}

/* ficha: la barra del celular ya no lleva precio */
@media (max-width: 820px) {
  .barra-movil b { font-size: 1rem; letter-spacing: -.01em; }
  .barra-movil .btn { flex: none; }
}

body.hoja-abierta { overflow: hidden; }
.hoja [hidden] { display: none !important; }
.hoja__in:focus { outline: none; }
