/* ═══════════════════════════════════════════════════════════════
   Escuela Adela Sanz · tienda de cursos online
   Mundo: el taller de la escuela. Papel cálido con lavado rosa,
   display serif con carácter (Young Serif) + Archivo para todo lo
   demás. El rosa de la marca trabaja en superficie (sección de
   pasos) y en detalles (chips, marcas, subrayados).
   Movimiento: entradas con ease-out exponencial, 600-750ms,
   revelado al scroll con escalonado corto. Nada más.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --tinta:      #1C1418;
  --tinta-2:    #52464C;
  --tinta-3:    #75676D;
  --papel:      #F7F2EF;
  --hoja:       #FFFFFF;
  --linea:      #E8DFDB;
  --linea-2:    #D8CCC7;

  --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:  #FDF3F8;

  --curva: cubic-bezier(.16, 1, .3, 1);
  --marco: min(1160px, 100% - 3rem);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: Archivo, system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.68;
  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; }

.banda {
  background: var(--tinta); color: #CBBFC5;
  font-size: .78rem; text-align: center; padding: .48rem 1rem;
}

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

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

/* ───────── cabecera ───────── */

.cabecera {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,242,239,.86);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background 250ms ease;
}
.cabecera.baja { border-color: var(--linea); background: rgba(247,242,239,.94); }
.cabecera__in {
  width: var(--marco); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .72rem 0;
}
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.marca img { border-radius: 10px; }
.marca__t { display: flex; flex-direction: column; line-height: 1.22; }
.marca__t b { font-size: .98rem; font-weight: 700; letter-spacing: -.015em; }
.marca__t i { font-style: normal; font-size: .73rem; color: var(--tinta-3); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.menu-btn { display: none; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 550; color: var(--tinta-2);
  transition: color 150ms ease;
}
.nav a:not(.nav__aula):hover { color: var(--rosa-texto); }
.nav a.nav__aula {
  background: var(--tinta); color: #fff;
  padding: .52rem 1.05rem; border-radius: 100px; font-weight: 650;
  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: 1rem;
  padding: .82rem 1.7rem; border-radius: 100px; min-height: 48px;
  box-shadow: 0 10px 24px -12px rgba(142,18,82,.55);
  transition: background 160ms ease, transform 160ms var(--curva), box-shadow 160ms ease;
}
.btn:hover { background: var(--rosa-hondo); box-shadow: 0 14px 28px -12px rgba(142,18,82,.6); }
.btn:active { transform: scale(.97); }
.btn--grande { font-size: 1.05rem; padding: 1rem 2.1rem; min-height: 56px; }
.btn--ancho { width: 100%; }
.btn--claro { background: #fff; color: var(--rosa-hondo); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn--claro:hover { background: var(--rosa-tenue); }
.btn--fantasma {
  background: transparent; color: var(--tinta-2); box-shadow: none;
  font-weight: 600;
}
.btn--fantasma:hover { background: rgba(0,0,0,.045); box-shadow: none; }
.btn--linea {
  background: #fff; color: var(--rosa-hondo);
  border: 1.5px solid var(--linea-2); font-weight: 650;
  padding: .68rem 1.3rem; min-height: 46px; box-shadow: none;
}
.btn--linea:hover { background: var(--rosa-piel); border-color: var(--rosa-bloq); box-shadow: none; }

/* ───────── kickers y títulos ───────── */

.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rosa-texto);
}
.kicker::before, .kicker--rulos::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--rosa-bloq);
}
.kicker--solo::before { display: none; }

.t-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }

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

.hero {
  background:
    radial-gradient(90rem 34rem at 50% -14rem, var(--rosa-tenue), transparent 62%),
    var(--papel);
  overflow: clip;
}
.hero__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(3rem, 6.5vw, 5.4rem) 0 clamp(2.4rem, 4vw, 3.4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
h1 {
  margin-top: 1.2rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.06; letter-spacing: -.015em;
  max-width: 17ch; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--rosa-bloq); }
.bajada {
  margin-top: 1.35rem; max-width: 50ch;
  color: var(--tinta-2); font-size: 1.07rem;
}
.hero__cta { margin-top: 1.9rem; display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

/* entrada del hero, solo al cargar */
.ap > * { animation: sube 750ms var(--curva) backwards; }
.ap > *:nth-child(1) { animation-delay: 60ms; }
.ap > *:nth-child(2) { animation-delay: 140ms; }
.ap > *:nth-child(3) { animation-delay: 220ms; }
.ap > *:nth-child(4) { animation-delay: 300ms; }
@keyframes sube {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* tira de fotos del taller */
.tira {
  width: min(1240px, 100%);
  margin: clamp(2.6rem, 4.5vw, 3.8rem) auto 0;
  display: flex; gap: clamp(.6rem, 1.4vw, 1.1rem);
  align-items: center; justify-content: center;
  padding: 0 1rem;
}
.tira img {
  width: clamp(120px, 18vw, 218px); aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 18px;
  box-shadow: 0 18px 38px -22px rgba(60,20,42,.45);
}
.tira img:nth-child(odd)  { transform: translateY(14px); }
.tira img:nth-child(even) { transform: translateY(-10px); aspect-ratio: 3 / 3.6; }
.tira img:nth-child(3)    { transform: translateY(-20px); }

/* franja de condiciones */
.condiciones {
  list-style: none;
  width: var(--marco); margin: clamp(2.8rem, 4.5vw, 3.8rem) auto 0;
  padding: 1.3rem clamp(1rem, 3vw, 2.4rem) 1.45rem;
  background: var(--hoja); border: 1px solid var(--linea);
  border-radius: 20px;
  box-shadow: 0 24px 50px -34px rgba(60,20,42,.35);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem 2rem; text-align: left;
}
.condiciones li { display: flex; gap: .75rem; align-items: flex-start; }
.condiciones i {
  flex: none; width: 26px; height: 26px; margin-top: .15rem;
  border-radius: 50%; background: var(--rosa-tenue);
  display: grid; place-items: center;
}
.condiciones i::before {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid var(--rosa-bloq); border-bottom: 2.5px solid var(--rosa-bloq);
  transform: rotate(-45deg);
}
.condiciones b { display: block; font-size: .97rem; font-weight: 700; letter-spacing: -.015em; }
.condiciones span { font-size: .85rem; color: var(--tinta-3); }

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

.catalogo { padding: clamp(3.2rem, 6vw, 5.4rem) 0 clamp(3.2rem, 6vw, 5rem); }
.catalogo__cab { width: var(--marco); margin-inline: auto; text-align: center; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.012em;
  line-height: 1.12; text-wrap: balance;
}
.catalogo__cab .h2 { margin-top: .9rem; }
.catalogo__cab p { margin-top: .7rem; color: var(--tinta-3); }

.grilla {
  width: var(--marco); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(1.3rem, 2.2vw, 1.9rem);
}

.curso {
  background: var(--hoja); border: 1px solid var(--linea);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms var(--curva), box-shadow 240ms var(--curva);
}
.curso:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px -26px rgba(60,20,42,.4);
}
.curso__foto { display: block; text-decoration: none; aspect-ratio: 5 / 3.4; overflow: hidden; background: var(--rosa-piel); }
.curso__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--curva); }
.curso:hover .curso__foto img { transform: scale(1.045); }

.curso__foto--tipo { display: grid; place-items: center; padding: 1rem; text-align: center; background: var(--rosa-tenue); }
.curso__foto--tipo span {
  font-family: var(--serif); font-size: 1.75rem; color: var(--rosa-hondo);
  line-height: 1.08; letter-spacing: -.01em;
}

.curso__cuerpo { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.chip {
  align-self: flex-start;
  font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rosa-hondo); background: var(--rosa-tenue);
  padding: .28rem .62rem; border-radius: 100px;
}
.curso h3 {
  margin-top: .7rem;
  font-family: var(--serif); font-weight: 400;
  font-size: 1.32rem; line-height: 1.18; letter-spacing: -.01em;
}
.curso h3 a { text-decoration: none; transition: color 150ms ease; }
.curso h3 a:hover { color: var(--rosa-texto); }
.curso__d { margin-top: .5rem; font-size: .9rem; color: var(--tinta-3); }
.curso__pie {
  margin-top: auto; padding-top: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.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); }
.curso .btn--linea { padding: .55rem 1.05rem; min-height: 42px; font-size: .9rem; }

/* ───────── cómo funciona · sección rosa ───────── */

.como { background: var(--rosa-bloq); color: #fff; overflow: clip; }
.como__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(3.2rem, 6vw, 5.2rem) 0;
  text-align: center;
}
.como .kicker { color: #FBCFE5; }
.como .kicker::before, .como .kicker::after { background: #F492C2; }
.como .h2 { margin-top: .9rem; color: #fff; }
.como__sub { margin-top: .7rem; color: #FBCFE5; max-width: 46ch; margin-inline: auto; }

.pasos {
  list-style: none; counter-reset: p;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  text-align: left;
}
.pasos li {
  counter-increment: p;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; padding: 1.35rem 1.3rem 1.45rem;
  backdrop-filter: blur(4px);
}
.pasos li::before {
  content: counter(p);
  font-family: var(--serif); font-size: 2rem; line-height: 1;
  color: #FBCFE5; display: block; margin-bottom: .65rem;
}
.pasos b { display: block; font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em; }
.pasos span { display: block; margin-top: .3rem; font-size: .88rem; color: #FBD9E9; }

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

.lema { background: var(--rosa-piel); border-block: 1px solid var(--linea); }
.lema p {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 4.4rem) 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 6vw, 5.6rem);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--rosa-hondo);
}

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

.escuela {
  width: var(--marco); margin-inline: auto;
  padding: clamp(3.4rem, 6vw, 5.4rem) 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: 1rem; }
.escuela .h2 em { font-style: normal; color: var(--rosa-bloq); }
.escuela p { margin-top: 1.05rem; max-width: 56ch; color: var(--tinta-2); }
.escuela__firma {
  margin-top: 1.6rem;
  font-size: .9rem; color: var(--tinta-3);
}
.escuela__firma::before {
  content: ""; display: block;
  width: 30px; height: 2px; border-radius: 2px;
  background: var(--rosa-bloq); margin-bottom: .7rem;
}
.escuela__firma b { display: block; color: var(--tinta); font-size: .98rem; }

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

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

.aula { background: var(--tinta); color: #fff; }
.aula__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.2rem) 0; text-align: center;
}
.aula .h2 { color: #fff; }
.aula p { margin-top: .8rem; color: #B9ACB3; }
.aula .btn { margin-top: 1.7rem; }

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

.miga {
  width: var(--marco); margin: 1.5rem 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.7rem auto 0;
  padding-bottom: clamp(2.6rem, 5vw, 4.2rem);
  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: 1.1rem; max-width: 60ch; font-size: 1.06rem; color: var(--tinta-2); }

.fc__foto {
  margin-top: 2rem; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--rosa-piel);
  box-shadow: 0 26px 54px -30px rgba(60,20,42,.4);
}
.fc__foto img { width: 100%; height: 100%; object-fit: cover; }

.fc__cuerpo section { margin-top: clamp(2.6rem, 4.5vw, 3.6rem); }
.fc__cuerpo h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem); letter-spacing: -.01em;
}
.fc__nota { margin-top: .5rem; font-size: .9rem; color: var(--tinta-3); }

.lista { list-style: none; margin-top: 1.2rem; max-width: 62ch; }
.lista li { position: relative; padding: .5rem 0 .5rem 1.85rem; color: var(--tinta-2); }
.lista li::before {
  content: "";
  position: absolute; left: .1rem; top: .98rem;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--rosa-bloq); border-bottom: 2.5px solid var(--rosa-bloq);
  transform: rotate(-45deg);
}

/* temario */
.temario { margin-top: 1.4rem; max-width: 62ch; display: flex; flex-direction: column; gap: .6rem; }
.temario details {
  background: var(--hoja); border: 1px solid var(--linea); border-radius: 14px;
  transition: border-color 180ms ease;
}
.temario details[open] { border-color: var(--rosa-bloq); }
.temario summary {
  cursor: pointer; list-style: none; position: relative;
  padding: .92rem 2.6rem .92rem 1.15rem;
  font-size: 1rem; letter-spacing: -.012em;
  display: flex; align-items: baseline; gap: .7rem;
}
.temario summary::-webkit-details-marker { display: none; }
.temario summary b {
  font-family: var(--serif); font-weight: 400;
  color: var(--rosa-bloq); font-size: 1.05rem; flex: none;
}
.temario summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 1.28rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--tinta-3); border-bottom: 2px solid var(--tinta-3);
  transform: rotate(45deg); transform-origin: 66% 66%;
  transition: transform 240ms var(--curva);
}
.temario details[open] summary::after { transform: rotate(-135deg); }
.temario ol { margin: 0 1.15rem 1.05rem 2.35rem; color: var(--tinta-2); }
.temario ol li { padding: .2rem 0; font-size: .94rem; }
.temario details > p { padding: 0 1.15rem 1.05rem; color: var(--tinta-2); }

/* caja de compra */
.compra { position: sticky; top: 84px; }
.compra__caja {
  background: var(--hoja); border: 1px solid var(--linea);
  border-radius: 22px; padding: 1.7rem 1.55rem 1.55rem;
  box-shadow: 0 30px 60px -34px rgba(60,20,42,.42);
}
.compra__precio {
  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-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.3rem; }

.incluye { list-style: none; margin-top: 1.35rem; }
.incluye li { position: relative; padding: .5rem 0 .5rem 1.9rem; font-size: .92rem; color: var(--tinta-2); }
.incluye li + li { border-top: 1px solid var(--linea); }
.incluye li::before {
  content: ""; position: absolute; left: .12rem; top: 1rem;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--rosa-bloq); border-bottom: 2.5px solid var(--rosa-bloq);
  transform: rotate(-45deg);
}
.compra__pie { margin-top: 1.05rem; font-size: .8rem; color: var(--tinta-3); }

.otros {
  width: var(--marco); margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4.4rem);
  border-top: 1px solid var(--linea);
  text-align: center;
}
.otros .grilla { width: 100%; margin-top: 2rem; text-align: left; }

.barra-movil { display: none; }

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

.pie { background: var(--tinta); color: #B9ACB3; }
.pie__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.6rem, 4.5vw, 3.6rem) 0 2rem;
  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-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.pie__marca span { font-weight: 400; color: #8D7F86; font-size: .85rem; }
.pie__col h3 {
  font-size: .73rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #8D7F86; margin-bottom: .7rem;
}
.pie__col p { font-size: .9rem; margin-bottom: .55rem; }
.pie__col a { color: #B9ACB3; text-decoration: none; transition: color 150ms ease; }
.pie__col a:hover { color: var(--rosa); }
.pie__legal {
  width: var(--marco); margin-inline: auto;
  padding: 1.4rem 0 2.2rem; border-top: 1px solid #362B31;
  font-size: .8rem; color: #776970;
}

/* ═══════════ 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 { justify-content: center; }
  .pie__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --marco: min(1160px, 100% - 2.2rem); }
  .tira img:nth-child(5) { display: none; }
  .compra__caja { padding: 1.35rem 1.2rem; }

  .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; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .nav { gap: .9rem; }
  .nav a:not(.nav__aula) { display: none; }
  .marca__t i { display: none; }
  .pie__in { grid-template-columns: 1fr; gap: 1.6rem; }
  .grilla { grid-template-columns: 1fr; }
  .tira { flex-wrap: nowrap; }
  .tira img:nth-child(4) { display: none; }
  .tira img { width: 31%; }
  .condiciones { grid-template-columns: 1fr; gap: .9rem; }
  .btn--grande { width: 100%; }
  .hero__cta { width: 100%; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap > * { animation: none; }
  .r { opacity: 1; transform: none; transition: none; }
  * { 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; }
}

/* faq: pregunta directa, sin numerito */
.temario--faq summary { font-weight: 600; }
.temario--faq summary:hover { color: var(--rosa-texto); }


/* ═══════════ v3 · funciones de tienda ═══════════ */

/* aviso de promoción */
.promo {
  position: relative; z-index: 31;
  background: var(--rosa-bloq); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .55rem 2.8rem .55rem 1rem; text-align: center;
  font-size: .86rem; line-height: 1.4;
  transition: opacity 240ms ease, transform 240ms var(--curva);
}
.promo b { font-weight: 700; }
.promo code {
  font-family: inherit; font-weight: 700; background: rgba(255,255,255,.18);
  padding: .1rem .5rem; border-radius: 6px; letter-spacing: .06em;
}
.promo button {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; line-height: 1;
  cursor: pointer; transition: background 150ms ease;
}
.promo button:hover { background: rgba(255,255,255,.28); }
.promo--fuera { opacity: 0; transform: translateY(-8px); }

/* etiqueta sobre la foto */
.curso__foto { position: relative; }
.etiqueta {
  position: absolute; left: .8rem; top: .8rem;
  background: var(--tinta); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .62rem; border-radius: 100px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
.etiqueta--nuevo { background: #fff; color: var(--rosa-hondo); }
.chip--oscuro { background: var(--tinta); color: #fff; }
.chip--rosa { background: var(--rosa-bloq); color: #fff; }

/* filtros */
.filtros {
  width: var(--marco); margin: -.6rem auto 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.filtro {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background: var(--hoja); color: var(--tinta-2);
  border: 1.5px solid var(--linea-2); border-radius: 100px;
  padding: .5rem 1.05rem; min-height: 40px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms var(--curva);
}
.filtro:hover { border-color: var(--rosa-bloq); color: var(--rosa-hondo); }
.filtro:active { transform: scale(.96); }
.filtro.on { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.grilla__vacio { width: var(--marco); margin: 1rem auto 0; text-align: center; color: var(--tinta-3); }

/* garantía en la sección rosa */
.como__garantia {
  margin: 2rem auto 0; max-width: 52ch; font-size: .93rem; color: #FBD9E9;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.25);
}

/* opiniones */
.opiniones { background: var(--hoja); border-bottom: 1px solid var(--linea); }
.opiniones__in { width: var(--marco); margin-inline: auto; padding: clamp(3rem, 5.5vw, 4.8rem) 0; text-align: center; }
.opiniones .h2 { margin-top: .9rem; }
.testis {
  margin-top: clamp(2rem, 3.6vw, 2.8rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem;
  text-align: left;
}
.testi {
  background: var(--papel); border-radius: 18px; padding: 1.5rem 1.4rem 1.35rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testi blockquote {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--tinta);
}
.testi blockquote::before { content: "“"; color: var(--rosa-bloq); font-size: 1.6rem; line-height: 0; margin-right: .1rem; }
.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; }

/* ficha: cabecera y datos */
.fc__chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.fc__datos {
  list-style: none; margin-top: 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem;
}
.fc__datos li { background: var(--hoja); border: 1px solid var(--linea); border-radius: 14px; padding: .8rem .9rem; line-height: 1.15; }
.fc__datos b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.fc__datos span { font-size: .78rem; color: var(--tinta-3); }
.fc__foto figcaption { padding: .55rem 1rem .7rem; font-size: .8rem; color: var(--tinta-3); background: var(--hoja); }
.fc__foto { display: flex; flex-direction: column; aspect-ratio: auto; }
.fc__foto img { aspect-ratio: 16 / 9; }
.temario summary em { font-style: normal; margin-left: auto; font-size: .78rem; color: var(--tinta-3); padding-right: 1.4rem; }
.gratis {
  margin-left: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rosa-hondo); background: var(--rosa-tenue); padding: .15rem .5rem; border-radius: 100px; text-decoration: none;
}
.docente { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; margin-top: 1.2rem; background: var(--hoja); border: 1px solid var(--linea); border-radius: 18px; padding: 1.2rem; }
.docente img { width: 120px; height: 120px; object-fit: cover; object-position: 30% 20%; border-radius: 50%; }
.docente b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.docente p { margin-top: .35rem; font-size: .93rem; color: var(--tinta-2); }

/* 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, chiquito y aparte */
.vista-previa {
  position: fixed; left: .9rem; bottom: .9rem; z-index: 27;
  font-size: .7rem; letter-spacing: .04em; color: #fff;
  background: rgba(28,20,24,.82); padding: .35rem .7rem; border-radius: 100px;
  backdrop-filter: blur(6px); pointer-events: none;
}

/* ═══════════ móvil, afinado ═══════════ */

@media (max-width: 820px) {
  .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: 2.2rem; }
  h1 { font-size: clamp(2.2rem, 9.2vw, 2.9rem); max-width: 14ch; }
  .bajada { font-size: 1rem; max-width: 34ch; }
  .tira { gap: .5rem; padding: 0 .6rem; }
  .tira img { width: 30%; border-radius: 14px; }
  .tira img:nth-child(4), .tira img:nth-child(5) { display: none; }
  .tira img:nth-child(odd) { transform: translateY(10px); }
  .tira img:nth-child(3) { transform: translateY(-12px); }
  .condiciones { grid-template-columns: 1fr 1fr; gap: .8rem .9rem; padding: 1.1rem 1rem; }
  .condiciones b { font-size: .9rem; }
  .condiciones span { font-size: .78rem; }
  .filtros { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; }
  .grilla { grid-template-columns: 1fr; gap: 1rem; }
  .curso__foto { aspect-ratio: 16 / 10; }
  .curso__cuerpo { padding: 1rem 1.05rem 1.1rem; }
  .pasos { grid-template-columns: 1fr; }
  .pasos li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .6rem; padding: 1.05rem 1.1rem; }
  .pasos li::before { grid-row: 1 / 3; margin: 0; font-size: 1.7rem; }
  .testis { grid-template-columns: 1fr; }
  .fc__datos { grid-template-columns: 1fr 1fr; }
  .docente { grid-template-columns: 84px 1fr; }
  .docente img { width: 84px; height: 84px; }
  .wa { right: .85rem; bottom: calc(.85rem + 86px); width: 50px; height: 50px; }
  body:not(:has(.barra-movil)) .wa { bottom: .85rem; }
  .vista-previa { display: none; }
}

/* ── enlace a Máster Gestoría ── */
.gestoria { background: var(--hoja); border-top: 1px solid var(--linea); }
.gestoria__in {
  width: var(--marco); margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 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: .8rem; }
.gestoria p { margin-top: .9rem; color: var(--tinta-2); max-width: 56ch; }
.gestoria .btn { margin-top: 1.3rem; }
@media (max-width: 820px) {
  .gestoria__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .gestoria p { margin-inline: auto; }
}

/* ───────── trayectoria · jornadas Emprendiendo ───────── */

.tray { background: var(--hoja); border-block: 1px solid var(--linea); }
.tray__in { width: var(--marco); margin-inline: auto; padding: clamp(3rem, 5.5vw, 4.6rem) 0; }
.tray__cab { max-width: 56ch; margin-inline: auto; text-align: center; }
.tray__cab p { margin-top: 1rem; 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(2rem, 3.6vw, 2.8rem);
}
.tray__lista { list-style: none; }
.tray__lista li { padding: .85rem 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: .9rem; color: var(--tinta-3); }
.tray__fotos { display: grid; gap: .9rem; }
.tray__fotos img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; }
.tray__cierre {
  margin: clamp(2rem, 3.4vw, 2.6rem) auto 0; max-width: 52ch; text-align: center;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.55;
  color: var(--rosa-hondo);
}
@media (max-width: 900px) { .tray__cuerpo { grid-template-columns: 1fr; } }

/* tarjetas sin precio: el boton ocupa el pie */
.curso__pie { justify-content: flex-end; }
.curso__pie .btn { margin-left: auto; }
