/* Recorrido de la página de clientas. Mobile-first; escritorio y celular acostado en @media (min-aspect-ratio: 1/1). */

/* el nav flota sobre la escena fija */
.nav { position: fixed; inset: 0 0 auto; z-index: 10;
  /* velo rosa suave para que la marca se lea sobre el pelo oscuro de la foto */
  background: linear-gradient(to bottom, rgb(244 198 214 / .9), rgb(244 198 214 / .55) 60%, rgb(244 198 214 / 0)); padding-bottom: 1.75rem; }

.lift { height: 460vh; position: relative; } /* antes 620vh: el recorrido del hero hasta la pestaña era lento */
.lift__stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
/* todo se apila en la misma celda */
.lift__stage > * { grid-area: 1 / 1; }

.lift__seq, .lift__macro, .lift__macro img { width: 100%; height: 100%; }
.lift__macro { opacity: 0; }
.lift__macro img {
  object-fit: cover;
  /* misma forma que la viñeta del canvas al final del zoom (elipse 68% × 72%, sólida hasta 62%) */
  -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 48%, #000 62%, rgba(0, 0, 0, .6) 81%, transparent 100%);
          mask-image: radial-gradient(ellipse 68% 72% at 50% 48%, #000 62%, rgba(0, 0, 0, .6) 81%, transparent 100%);
}
.lift__fade {
  align-self: end; height: 38%; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, var(--bg) 8%, transparent);
}

/* ---- Capítulo 1: hero. En celular el retrato llena la pantalla: el título arriba, sobre el rosa, y el resto abajo ---- */
.lift__hero { display: contents; }
.lift__hero > * { grid-area: 1 / 1; } /* con display: contents sus hijos son celdas de la rejilla del escenario */
.lift__hero h1 {
  position: relative; z-index: 2; align-self: start; margin: 5.2rem 1.25rem 0;
  font-size: clamp(1.7rem, 7.6vw, 2.3rem); line-height: 1.05;
}
.lift__hero-bottom { position: relative; z-index: 2; align-self: end; margin: 0 1.25rem max(4.4rem, calc(env(safe-area-inset-bottom) + 3.4rem)); }
/* "desliza" con una flecha que rebota: abajo y al centro; se va con el texto del hero en cuanto empieza el scroll */
.lift__scroll {
  position: relative; z-index: 2; align-self: end; justify-self: center; display: grid; justify-items: center; gap: .05rem;
  margin-bottom: max(.8rem, env(safe-area-inset-bottom)); pointer-events: none;
}
.lift__scroll .hand { font-size: 1.1rem; }
.lift__scroll-arrow { width: 1.35rem; height: 1.35rem; stroke: var(--olive); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(5px); } }
.lift__hero p:not(.hand) { margin: 0 0 1.2rem; font-size: 1rem; line-height: 1.5; color: var(--olive-soft); max-width: 28rem; }
/* frase a mano sobre el párrafo (p:not(.hand) arriba: un p con clase le ganaba a .hand y salía en Montserrat) */
.lift__hero .hand { margin: 0 0 .5rem; font-size: 1.45rem; }

/* ---- Capítulos 2 y 3: frases que aparecen con el scroll ---- */
.lift__beat {
  position: relative; z-index: 2; align-self: end;
  margin: 0 1.25rem max(2rem, env(safe-area-inset-bottom));
  max-width: 24rem; font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.25;
  opacity: 0; visibility: hidden;
}
/* en el macro final el ojo y las pestañas ocupan el centro y abajo: la frase va arriba, sobre el párpado */
.lift__beat--b { align-self: start; margin-top: 5.5rem; }
.lift__beat small {
  display: block; margin-top: .6rem; font: 400 .95rem/1.45 var(--font-body);
  text-transform: none; letter-spacing: 0; color: var(--olive-soft);
}

@media (min-aspect-ratio: 1/1) {
  /* retrato 16:9: ella a la derecha, el texto centrado en el rosa libre de la izquierda (maqueta hero-escritorio) */
  .lift__hero { display: block; position: relative; z-index: 2; align-self: center; justify-self: start; max-width: min(42rem, 38vw); margin: 0 0 0 clamp(1rem, 5vw, 4.5rem); }
  .lift__hero > * { grid-area: auto; }
  .lift__scroll .hand { font-size: 1.35rem; }
  .lift__scroll-arrow { width: 1.7rem; height: 1.7rem; }
  .lift__hero h1, .lift__hero-bottom { margin: 0; }
  .lift__hero p:not(.hand) { margin: .9rem 0 1.3rem; }
  .lift__hero .hand { margin: 1.1rem 0 0; font-size: clamp(1.45rem, 2vw, 1.9rem); }
  .lift__hero h1 { font-size: clamp(2.4rem, 4vw, 4.6rem); }
  .lift__hero p:not(.hand) { font-size: clamp(1rem, 1.3vw, 1.2rem); }
  .lift__beat { margin: 0 clamp(1rem, 5vw, 4.5rem) clamp(2rem, 10vh, 6rem); font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
  .lift__beat--a { justify-self: start; }
  .lift__beat--b { justify-self: end; text-align: right; margin-top: clamp(5rem, 11vh, 7rem); }
}

/* ---- Capa que sube sobre el hero: el hero se queda pegado y esto lo cubre, como una hoja encima ---- */
.rest {
  position: relative; z-index: 2; margin-top: -100vh; margin-top: -100dvh;
  background: var(--bg); border-radius: 44px 44px 0 0; box-shadow: 0 -26px 60px rgb(46 51 34 / .28);
  overflow: clip; /* clip (no hidden): no rompe el sticky de los capítulos */
}
/* fondo de íconos repetidos (HTML/CSS/SVG), en olivo muy tenue, que se desliza despacio */
.rest::before, .pagina::before {
  content: ""; position: absolute; z-index: 0; inset: -180px 0 0 -180px; pointer-events: none; opacity: .13;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%232e3322' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><g transform='translate(14 14) rotate(-14 12 12)'><path d='M12 21s-7-4.6-9.5-9C.9 8.3 3 5 6.2 5c2 0 3.4 1 5.8 3.4C14.4 6 15.8 5 17.8 5 21 5 23.1 8.3 21.5 12 19 16.4 12 21 12 21z'/></g><g transform='translate(104 8) scale(1.1)'><path d='M12 2c.8 6 4 9.2 10 10-6 .8-9.2 4-10 10-.8-6-4-9.2-10-10 6-.8 9.2-4 10-10z'/></g><g transform='translate(70 86) rotate(8 12 12) scale(1.15)'><path d='M3 18c5-6 13-6 18 0M12 12V6M7 13 5 8M17 13l2-5M3.5 16 1.5 12M20.5 16l2-4'/></g><g transform='translate(138 108) rotate(16 12 12) scale(.85)'><path d='M12 21s-7-4.6-9.5-9C.9 8.3 3 5 6.2 5c2 0 3.4 1 5.8 3.4C14.4 6 15.8 5 17.8 5 21 5 23.1 8.3 21.5 12 19 16.4 12 21 12 21z'/></g><g transform='translate(18 112) scale(.7)'><path d='M12 2c.8 6 4 9.2 10 10-6 .8-9.2 4-10 10-.8-6-4-9.2-10-10 6-.8 9.2-4 10-10z'/></g><circle cx='150' cy='60' r='2.6'/><circle cx='52' cy='62' r='2'/><circle cx='112' cy='160' r='2.4'/></svg>") 0 0 / 180px 180px;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate(180px, 180px); } }

/* ---- Íconos y adornos ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* adornos grandes que flotan y se mueven a distinta velocidad con el scroll */
.deco { position: absolute; z-index: 1; pointer-events: none; color: var(--olive); opacity: .55; }
.deco .ic { width: 100%; height: 100%; animation: bob 5s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.deco--1 { width: 2.6rem; height: 2.6rem; top: 14%; right: 6%; }
.deco--2 { width: 1.7rem; height: 1.7rem; top: 42%; left: 5%; }
.deco--2 .ic { animation-delay: -1.6s; animation-duration: 6.5s; }
.deco--3 { width: 3.1rem; height: 3.1rem; bottom: 12%; right: 10%; }
.deco--3 .ic { animation-delay: -3s; animation-duration: 7s; }
@keyframes bob { from { transform: translateY(-.35rem) rotate(-8deg); } to { transform: translateY(.35rem) rotate(8deg); } }

/* componentes de la dirección "Cuaderno": notas a mano, etiquetas pegadas, tarjetas y fotos tipo recorte */
.hand { margin: 0; font: italic 500 1.25rem/1.1 var(--font-wm); color: var(--olive); text-transform: none; }
.arrow { width: 3rem; stroke: var(--olive); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sticker {
  position: absolute; z-index: 3; padding: .4rem .6rem; background: #fff; border: 1.5px solid var(--olive); border-radius: 8px;
  font: 600 .75rem/1 var(--font-body); color: var(--olive);
}
.card { background: var(--paper); border: 1.5px solid var(--olive); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 2px 20px rgb(0 0 0 / .06); }
.card p { margin: 0; }
.polaroid {
  position: relative; margin: 0; background: #fff; border: 1.5px solid var(--olive); border-radius: 14px; padding: .6rem .6rem 2.2rem;
  box-shadow: 0 2px 20px rgb(0 0 0 / .08);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.polaroid figcaption { position: absolute; inset: auto 0 .55rem; text-align: center; font: italic 500 1rem/1 var(--font-wm); }
.polaroid .tape {
  position: absolute; z-index: 2; top: -.7rem; left: 50%; width: 4.6rem; height: 1.5rem; transform: translateX(-50%) rotate(4deg);
  background: rgb(255 255 255 / .55); border: 1px solid rgb(46 51 34 / .18);
}
.btn--paper { background: var(--paper); color: var(--olive); border: 1.5px solid var(--olive); box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.btn { transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.97); }

.micro h2, .proceso h2, .resultado h2, .agenda h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.06; }
.micro p:not(.hand), .resultado p:not(.hand), .agenda p:not(.hand), .step p { font: 400 .95rem/1.5 var(--font-body); color: var(--olive-soft); }
.micro, .proceso, .resultado, .agenda, .proxima { position: relative; }

/* 4 · microscopio: la lente sigue acercándose mientras la pestaña pasa de maltratada a sana */
.micro { height: 200vh; } /* antes 300vh */
.micro__pin {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 5.5rem 1.4rem 2rem;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem;
}
.micro__lens { position: relative; justify-self: center; align-self: center; width: min(76vw, 19rem, 100%); aspect-ratio: 1; }
.micro__disc { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--olive); background: var(--paper); padding: .5rem; }
.micro__inner { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.micro__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.micro__img--sana { opacity: 0; }
.micro__note { position: absolute; z-index: 3; right: -.2rem; top: -4.7rem; transform: rotate(4deg); text-align: right; }
.micro__arrow { position: absolute; z-index: 3; right: 3.4rem; top: -1.5rem; width: 2.6rem; transform: rotate(75deg) scaleX(-1); }
.micro__tag { left: -.6rem; bottom: 1rem; transform: rotate(-7deg); }
.micro__tag--b { opacity: 0; }
/* los dos textos comparten celda y la tarjeta crece con el más largo (antes: position absolute + alto fijo, y el texto se cortaba al dar más líneas en pantallas angostas) */
.micro__texts { display: grid; }
.micro__texts p { grid-area: 1 / 1; }
.micro__b { opacity: 0; }

/* 5 · proceso: un paso por tramo de scroll; los corazones de abajo cuentan cuántos van */
.proceso { height: 370vh; } /* 100vh fijo + 45vh de scroll por paso (6 pasos); antes 700vh */
.proceso__pin {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 5.5rem 1.4rem 1.6rem;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem;
}
.proceso__steps { position: relative; min-height: 0; }
.step { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; } /* columna fija: la implícita (auto) crecía con la foto y la desbordaba */
.step > * { opacity: 0; } /* chapters.js los funde: opacity en el .step no sirve con display: contents */
.step:first-child > * { opacity: 1; }
.step .polaroid { justify-self: center; align-self: center; height: 100%; max-width: 100%; aspect-ratio: 15.5 / 21; max-height: min(32rem, calc((100vw - 2.8rem) * 1.355)); display: grid; grid-template-rows: minmax(0, 1fr); }
.step .polaroid img { min-height: 0; }
.step__text { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; align-items: center; min-height: 5.6rem; }
.step__n { grid-row: span 2; font: italic 500 3.6rem/.9 var(--font-wm); }
.step h3 { font: 300 1.35rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.step p { margin: 0; line-height: 1.4; }
.proceso__list { display: none; }
/* tarjetas con flecha que señalan ventajas mientras avanza el scroll (las anima chapters.js). Celular: una sola, pegada a la esquina de la foto, sin flecha */
.note { position: absolute; z-index: 4; display: flex; align-items: center; gap: .5rem; width: max-content; opacity: 0; pointer-events: none; rotate: var(--r, 0deg); } /* max-content: con right: calc(100% - …) el ancho disponible sería mínimo */
.note .card { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; max-width: 14rem; font: 600 .85rem/1.2 var(--font-body); box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.note .ic { width: 1.05rem; height: 1.05rem; flex: none; }
.note .arrow { display: none; }
.step .note { right: .6rem; bottom: 3rem; }
.step .note ~ .note { display: none; }
.micro__lens .note { right: -2%; bottom: 8%; }
.micro__lens .note--a2, .micro__lens .note--b2, .micro__lens .note--b3 { display: none; }
.proceso__hearts { display: flex; gap: .45rem; }
.proceso__hearts .ic { width: 1.25rem; height: 1.25rem; fill: transparent; transition: fill .2s; }
.proceso__hearts .ic.on { fill: var(--olive); animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* 6 · resultado: deslizador antes / después con fotos reales */
.resultado { padding: 5rem 1.4rem 3rem; display: grid; gap: 1rem; justify-items: center; max-width: 40rem; margin: 0 auto; }
.resultado h2, .resultado .hand { justify-self: start; }
.ba { width: min(100%, 19rem); padding: .55rem; transform: rotate(1.6deg); touch-action: pan-y; --x: 50%; }
.ba__in { position: relative; aspect-ratio: 450 / 320; border-radius: 8px; overflow: hidden; }
.ba__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__despues { clip-path: inset(0 0 0 var(--x)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; transform: translateX(-1px); }
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--olive); transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgb(46 51 34 / .25);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__tag { position: absolute; bottom: .55rem; font: 600 .75rem/1 var(--font-body); color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .55); }
.ba__tag--l { left: .65rem; } .ba__tag--r { right: .65rem; }
.ba__name { left: -.9rem; top: -.9rem; transform: rotate(-6deg); }
.ba:focus-within { outline: 2px solid var(--olive); outline-offset: 4px; }
.ba__thumbs { display: flex; gap: .6rem; transform: rotate(-1deg); }
.ba__thumbs button { width: 3.4rem; height: 2.6rem; border-radius: 10px; border: 1.5px solid var(--olive); padding: 0; overflow: hidden; background: #fff; cursor: pointer; transition: transform .2s; }
.ba__thumbs button:hover { transform: translateY(-3px) rotate(-3deg); }
.ba__thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--olive); }
.ba__thumbs button:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.ba__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resultado .card { justify-self: stretch; margin-top: .4rem; }

/* 6b · videos de clientas: tira de polaroids que se desliza de lado; cada video se ve solo mientras está en pantalla */
.proxima { --gut: 1.4rem; padding: 4.5rem var(--gut) 3.5rem; display: grid; gap: .9rem; justify-items: start; max-width: 40rem; margin: 0 auto; }
.proxima h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.06; }
.proxima__head { display: flex; align-items: flex-end; gap: .4rem; }
.proxima__head .arrow { width: 2.6rem; margin-bottom: -.4rem; transform: rotate(8deg); }
.proxima__strip {
  position: relative; z-index: 2; display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gut)); padding: 1.3rem var(--gut) 1.4rem; width: calc(100% + 2 * var(--gut));
}
.proxima__strip::-webkit-scrollbar { display: none; }
.proxima__strip > * { flex: 0 0 11.6rem; scroll-snap-align: center; transition: translate .25s cubic-bezier(.16, 1, .3, 1); }
/* la inclinación va en `rotate` (no en transform) para no pelear con la animación de entrada */
.proxima__strip > :nth-child(odd) { rotate: -2.2deg; }
.proxima__strip > :nth-child(even) { rotate: 1.8deg; margin-top: .9rem; }
.proxima__strip > :hover { translate: 0 -5px; }
.proxima__video, .proxima__slot { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; }
.proxima__video { object-fit: cover; background: #d9a9ba; }
.proxima__slot {
  display: grid; place-content: center; justify-items: center; gap: .5rem; padding: 1rem; text-align: center; color: var(--olive); text-decoration: none;
  border: 2px dashed var(--olive); background: rgb(251 231 238 / .6);
}
.proxima__slot .ic { width: 2.2rem; height: 2.2rem; }
.proxima__slot b { font: italic 500 1.35rem/1.05 var(--font-wm); }
.proxima__slot:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.proxima .polaroid figcaption { font-size: 1.05rem; }
.proxima__bar { display: flex; align-items: center; gap: 1.2rem; }
.proxima__dots { display: flex; gap: .4rem; }
.proxima__dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--olive); opacity: .25; transition: opacity .2s; }
.proxima__dots i.on { opacity: 1; }
.proxima__nav { display: none; gap: .5rem; }
.proxima__nav button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--olive); background: var(--paper); color: var(--olive);
  font: 400 1.4rem/1 var(--font-body); padding: 0 0 .15rem; cursor: pointer; transition: transform .2s;
}
.proxima__nav button:hover { transform: translateY(-2px); }
.proxima__nav button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .proxima__nav { display: flex; } }

/* 7 · agenda: nombre grande y una banda verde de esquinas muy redondeadas */
.agenda { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; max-width: 40rem; margin: 0 auto; overflow: hidden; }
.agenda__up { padding: 5rem 1.4rem 1.5rem; display: grid; align-content: center; gap: .6rem; }
.agenda__big { font-size: clamp(3.6rem, 22vw, 6rem); line-height: .95; }
.agenda__band {
  background: var(--olive-btn); color: var(--on-olive); border-radius: 56px 56px 0 0; padding: 2.2rem 1.6rem 2.4rem;
  display: grid; gap: 1rem; justify-items: start;
}
.agenda__band h2 { font-size: 1.7rem; }
.agenda__band p:not(.hand) { margin: 0; color: rgb(248 231 236 / .8); } /* :not(.hand) iguala la especificidad de `.agenda p:not(.hand)`; al ir después, gana */
.agenda .deco { color: var(--olive); }

@media (min-aspect-ratio: 1/1) {
  .micro__pin, .proceso__pin { padding-left: clamp(1rem, 5vw, 4.5rem); padding-right: clamp(1rem, 5vw, 4.5rem); }
  /* 4 y 5 en escritorio: texto grande a la izquierda, foto o lente grande a la derecha y tarjetas con flecha (maqueta proceso-escritorio) */
  .micro__pin, .proceso__pin { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 3vw; padding-top: 5.6rem; padding-bottom: 2rem; }
  .micro__pin { grid-template-rows: 1fr auto auto 1fr; row-gap: 1.2rem; }
  .micro h2, .proceso h2 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }
  .micro h2 { grid-area: 2 / 1; align-self: end; }
  .micro .micro__texts { grid-area: 3 / 1; align-self: start; }
  .micro .micro__texts p:not(.hand) { font-size: clamp(1rem, 1.3vw, 1.25rem); }
  .micro__lens { grid-area: 1 / 2 / -1 / 3; width: min(62vh, 32rem); }
  .micro__note { font-size: 1.5rem; top: -3.4rem; }
  .proceso__pin { grid-template-rows: 1fr auto auto auto auto 1fr; row-gap: 1.4rem; }
  .proceso h2 { grid-area: 2 / 1; }
  .proceso__steps, .step { display: contents; }
  .step .polaroid { grid-area: 1 / 2 / -1 / 3; height: min(76vh, 52rem); max-height: 100%; max-width: 100%; padding: .8rem .8rem 2.8rem; }
  .step .polaroid figcaption { font-size: 1.25rem; bottom: .8rem; }
  .step .polaroid .tape { width: 6rem; height: 1.8rem; top: -.9rem; }
  .step__text { grid-area: 3 / 1; align-self: start; min-height: 11rem; column-gap: 1.3rem; align-items: start; }
  .step__n { font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: .85; }
  .step h3 { margin-top: .2rem; font-size: clamp(1.6rem, 2.7vw, 2.6rem); }
  .step p { font-size: clamp(1rem, 1.35vw, 1.3rem); max-width: 28rem; }
  .proceso__list { grid-area: 4 / 1; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
  .proceso__list li { padding: .5rem .85rem; border: 1.5px solid rgb(46 51 34 / .35); border-radius: 999px; font: 600 .8rem/1 var(--font-body); color: var(--olive-soft); transition: background .25s, color .25s, border-color .25s; }
  .proceso__list li.on { background: var(--olive); color: var(--on-olive); border-color: var(--olive); }
  .proceso__list li.done { border-color: var(--olive); color: var(--olive); }
  .proceso__hearts { grid-area: 5 / 1; }
  /* tarjetas: a los lados de la foto o de la lente, con la flecha hacia ella */
  .note .card { padding: .7rem .95rem; font-size: clamp(.8rem, 1.1vw, 1.05rem); max-width: clamp(8rem, 14vw, 14rem); } /* el ancho escala con la pantalla: en laptops chicas y tabletas las de la derecha no deben salirse */
  .note .arrow { display: block; flex: none; width: clamp(2rem, 3vw, 3.4rem); }
  .step .note, .micro__lens .note { top: var(--y); bottom: auto; }
  .step .note ~ .note, .micro__lens .note--a2, .micro__lens .note--b2, .micro__lens .note--b3 { display: flex; }
  .step .note--l, .micro__lens .note--l { right: calc(100% - var(--in, 4.5rem)); left: auto; }
  .step .note--r, .micro__lens .note--r { left: calc(100% - var(--in, 7rem)); right: auto; flex-direction: row-reverse; } /* a la derecha hay menos pantalla: la tarjeta se mete más sobre la foto */
  .note--r .arrow { transform: scaleX(-1); }
  .micro__texts, .resultado .card { max-width: 34rem; }
  .agenda__up { padding-left: 0; }
  /* en horizontal la tira ocupa todo el ancho y el título queda alineado con los demás capítulos */
  .proxima { --gut: clamp(1rem, 5vw, 4.5rem); max-width: none; }
  .proxima__strip > * { flex-basis: 13rem; }
}

/* escritorio angosto (tabletas acostadas, ventanas medianas): lente más chica y flechas cortas para que las tarjetas de la derecha quepan */
@media (min-aspect-ratio: 1/1) and (max-width: 1200px) {
  .micro__lens { width: min(50vh, 26rem); }
}
/* ventanas muy angostas aunque sean más anchas que altas: las tarjetas del microscopio de una en una, pegadas a la lente (como en celular) */
@media (min-aspect-ratio: 1/1) and (max-width: 760px) {
  .micro__lens .note { top: auto; bottom: 8%; right: -2%; left: auto; flex-direction: row; }
  .micro__lens .note--a2, .micro__lens .note--b2, .micro__lens .note--b3 { display: none; }
  .micro__lens .note .arrow { display: none; }
}
/* pantallas bajas (celular acostado, ventanas chatas): el contenido fijo de cada capítulo tiene que caber en el alto */
@media (min-aspect-ratio: 1/1) and (max-height: 600px) {
  .lift__hero h1 { font-size: clamp(1.6rem, 7vh, 2.6rem); }
  .lift__hero p:not(.hand) { margin: .5rem 0 .8rem; font-size: .9rem; }
  .lift__hero .hand { margin-top: .6rem; font-size: 1.2rem; }
  .micro__pin, .proceso__pin { padding-top: 4.2rem; padding-bottom: .9rem; }
  .micro__pin, .proceso__pin { row-gap: .6rem; }
  .micro h2, .proceso h2 { font-size: 1.3rem; }
  .micro__lens { width: min(58vh, 20rem); }
  .micro .micro__texts p:not(.hand) { font-size: .95rem; line-height: 1.4; }
  .proceso__list { display: none; }
  .step__text { min-height: auto; } /* con min-height: 0 su fila de la rejilla se encogía a 12 px y los corazones pisaban el texto */
  .step__n { font-size: 3.2rem; }
  .step h3 { font-size: 1.3rem; }
  .step p { font-size: .9rem; }
  .step .polaroid { height: min(76vh, 52rem); }
}
@media (min-aspect-ratio: 1/1) and (max-height: 480px) { .micro__note { display: none; } }

/* Sin pin ni animación: la imagen inicial, la final y todos los textos, uno tras otro. */
@media (prefers-reduced-motion: reduce) {
  .lift__scroll-arrow { animation: none; }
  .lift { height: auto; }
  .lift__stage { position: relative; height: auto; grid-template-rows: 100vh auto 100vh auto; grid-template-rows: 100dvh auto 100dvh auto; }
  .lift__beat, .lift__macro { opacity: 1; visibility: visible; }
  .lift__fade { display: none; }
  /* las imágenes fijas se funden con el rosa arriba y abajo: nunca una orilla recta */
  .lift__seq {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
            mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .lift__macro img {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  }
  .lift__beat--a { grid-row: 2; margin-top: 3rem; }
  .lift__macro { grid-row: 3; }
  .lift__beat--b { grid-row: 4; margin-top: 3rem; justify-self: start; text-align: left; }

  .micro, .proceso { height: auto; }
  .micro__pin, .proceso__pin { position: relative; height: auto; padding-top: 3rem; }
  /* la lente se abre en dos círculos, uno sobre otro: maltratada y sana */
  .micro__lens { position: relative; width: min(80vw, 18rem); aspect-ratio: auto; display: grid; gap: 1.2rem; justify-self: center; }
  .micro__disc { position: relative; inset: auto; aspect-ratio: auto; padding: 0; border: 0; background: none; border-radius: 0; } /* el disco cuadrado era más chico que los dos círculos apilados y los desbordaba */
  .micro__lens .micro__inner + .micro__inner { margin: 0; }
  .micro__inner { overflow: visible; display: grid; gap: .5rem; height: auto; border-radius: 0; }
  .micro__img, .micro__img--sana { position: relative; inset: auto; opacity: 1; height: auto; aspect-ratio: 1; border-radius: 50%; }
  .micro__note, .micro__arrow, .micro__tag { display: none; } /* los rótulos quedarían debajo de los dos círculos, como si describieran el sano */
  .micro__tag { position: static; display: inline-block; justify-self: start; transform: none; } /* justify-self: en la rejilla se estiraba a todo el ancho */
  .micro__texts { min-height: 0; display: grid; gap: .75rem; }
  .micro__texts p { grid-area: auto; }
  .micro__b { opacity: 1; }
  .proceso__steps { display: grid; gap: 2.5rem; }
  .step { position: static; grid-template-rows: auto auto; }
  .step > * { opacity: 1; }
  .step .note { position: static; display: inline-flex; margin: .5rem .4rem 0 0; opacity: 1; rotate: none; }
  .step .note ~ .note { display: inline-flex; }
  .step .polaroid { overflow: visible; }
  .micro__lens .note { display: none !important; }
  .step .polaroid { height: auto; max-height: none; aspect-ratio: auto; width: min(100%, 17rem); display: block; }
  .step .polaroid img { height: auto; aspect-ratio: 3 / 4; }
  .step__text { min-height: 0; }
  .proceso__hearts, .proceso__list { display: none; }
  /* el diseño de dos columnas de escritorio no aplica sin animación: una columna, un paso tras otro */
  .micro__pin, .proceso__pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1rem; }
  .micro h2, .proceso h2, .micro .micro__texts, .micro__lens, .step .polaroid, .step__text { grid-area: auto; }
  .step { display: grid; }
  .rest { margin-top: 0; box-shadow: none; }
  .rest::before, .pagina::before { animation: none; transform: translate(180px, 180px); }
  .deco .ic { animation: none; }
}

/* enlaces de la banda final: más servicios y el curso */
.agenda__more { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.agenda__band .agenda__more a { color: var(--on-olive); font: 500 .9rem/1.4 var(--font-body); text-underline-offset: .25em; }
.agenda__band .agenda__more a:focus-visible { outline: 2px solid var(--on-olive); outline-offset: 3px; }
