/* La web fitm.app. Sale de la maqueta aprobada el 2026-10-02 (maquetas/portada-catalogo, ver
   docs/decisiones/web.md): todo sobre el mismo blanco, Unbounded para títulos y cifras, Instrument
   Sans para el resto. */
:root {
  --page: #FFFFFF; --text: #121211; --muted: #6B6B68; --peana: #F1F1EF; --borde: #E2E2DE;
  --verde: #1E9E57; --rojo: #FF3B30;
  --display: 'Unbounded', system-ui, sans-serif; --cuerpo: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--page); color: var(--text); font-family: var(--cuerpo); }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sitio { container: sitio / inline-size; background: var(--page); }
.envol { max-width: 1040px; margin: 0 auto; padding-inline: 32px; }
@container sitio (max-width: 640px) { .envol { padding-inline: 20px; } }
.nav { display: flex; align-items: center; height: 56px; gap: 28px; padding-inline: 32px; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); z-index: 10; }
.logo { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.045em; margin-right: auto; }
.logo span { font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav .boton { padding: 7px 16px; font-size: 13.5px; }
@container sitio (max-width: 640px) { .nav .solo-pc { display: none; } }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px; background: var(--text); color: var(--page) !important; font-weight: 700; padding: 12px 22px; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.boton.claro { background: var(--page); color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--borde); }
.enlace { color: var(--text); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.enlace::after { content: ' →'; }

/* la vitrina (igual que la aprobada) */
.esc { position: relative; width: 100%; overflow: hidden; container-type: inline-size; background: var(--page); }
.esc[data-f="pc"] { aspect-ratio: 16 / 9; }
.esc[data-f="movil"] { aspect-ratio: 9 / 16; }
.esc > * { position: absolute; }
.titulo { left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 0; text-wrap: balance; }
.buscador { display: flex; align-items: center; background: var(--page); border: 1.5px solid var(--text); border-radius: 99px; color: var(--muted); translate: -50% 0; left: 50%; z-index: 7; cursor: text; }
.buscador svg { flex: none; }
.buscador input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); padding: 0; }
.buscador input::placeholder { color: var(--muted); opacity: 1; }
.buscador .foto { color: var(--text); }
.resultados { z-index: 8; translate: -50% 0; left: 50%; background: var(--page); border-radius: 18px; box-shadow: 0 0 0 1px var(--borde), 0 24px 50px -18px rgba(0,0,0,.25); padding: 6px; display: none; }
.resultados.abierto { display: block; }
.res { display: flex; align-items: center; gap: .8em; padding: .45em .6em; border-radius: 12px; }
.res:first-child { background: #F6F6F4; }
.res .hueco { width: 2.6em; border-radius: .5em; }
.res b { display: block; font-weight: 600; }
.res small { color: var(--muted); }
.res .cifra { margin-left: auto; text-align: right; color: var(--muted); font-size: .85em; }
.res .cifra b { font-family: var(--display); font-weight: 700; color: var(--text); }
.linea { display: flex; align-items: center; justify-content: space-between; }
.yo { display: flex; align-items: center; font-weight: 700; }
.ava { border-radius: 50%; background: var(--text); color: var(--page); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; }
.cuentas { display: flex; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.cuentas span { display: flex; align-items: baseline; }
.cuentas b { font-family: var(--display); font-weight: 800; color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.late { animation: late .3s ease; }
@keyframes late { 50% { transform: scale(1.22); } }
.peana { background: var(--peana); translate: -50% -50%; }
.peana i { position: absolute; top: 7%; right: 7%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--verde); scale: 0; transition: scale .25s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.peana.llena i { scale: 1; }
.prenda { z-index: 5; transition: left .9s cubic-bezier(.6,0,.25,1), top .9s cubic-bezier(.6,0,.25,1), width .9s cubic-bezier(.6,0,.25,1), height .9s cubic-bezier(.6,0,.25,1); }
.prenda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.prenda .lisa { opacity: 0; }
.prenda .suelo { filter: drop-shadow(0 .5cqw .7cqw rgba(0,0,0,.16)); }
.perfil .prenda .lisa { opacity: 1; transition-delay: var(--d2); }
.perfil .prenda .suelo { opacity: 0; transition-delay: var(--d2); }

/* ---------- piezas comunes de debajo ---------- */
.seccion { padding-block: 88px 0; }
.seccion:last-of-type { padding-bottom: 96px; }
@container sitio (max-width: 640px) { .seccion { padding-block: 64px 0; } }
.grande { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 0; text-wrap: balance; font-size: 48px; }
@container sitio (max-width: 640px) { .grande { font-size: 32px; } }
.medio { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin: 0; font-size: 28px; text-wrap: balance; }
@container sitio (max-width: 640px) { .medio { font-size: 23px; } }
.sub { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 12px 0 0; max-width: 42ch; text-wrap: pretty; }
@container sitio (max-width: 640px) { .sub { font-size: 16.5px; } }
.cab-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cab-fila .sub { margin-top: 6px; font-size: 16px; }

/* el hueco gris de una prenda: la foto con posición absoluta para que una prenda alta no estire la caja */
.hueco { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--peana); flex: none; }
.hueco > img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transition: transform .5s cubic-bezier(.3,1.3,.5,1); }

/* carta del catálogo, con los dos botones de marcar */
.carta { min-width: 0; }
.carta .hueco { margin-bottom: 10px; }
.carta:hover .hueco > img { transform: scale(1.05) translateY(-2%); }
.carta b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.carta small { color: var(--muted); font-size: 12.5px; }
.carta small em { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--text); display: inline-block; }
.marcar { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.marcar button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--page); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1px var(--borde); display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .2s; }
.marcar button:active { transform: scale(.88); }
.marcar button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.marcar .m-t[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--verde); color: var(--verde); }
.marcar .m-q[aria-pressed="true"] { color: var(--rojo); }
.marcar .m-q[aria-pressed="true"] path { fill: currentColor; }
.aviso-app { height: 0; overflow: hidden; color: var(--muted); font-size: 14px; transition: height .3s ease, margin .3s ease; }
.aviso-app.visible { height: 22px; margin-top: 18px; }
.aviso-app a { color: var(--text); font-weight: 700; }

.fila-cartas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@container sitio (max-width: 640px) { .fila-cartas { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; gap: 12px; } .fila-cartas .carta { flex: 0 0 42%; } }

/* lista en vivo */
.vivo { list-style: none; margin: 0; padding: 0; }
.vivo li { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--borde); overflow: hidden; transition: height .5s ease, opacity .5s ease; height: 77px; }
.vivo li.entra { height: 0; opacity: 0; }
.vivo .hueco { width: 56px; border-radius: 12px; }
.vivo b { display: block; font-size: 15px; font-weight: 600; }
.vivo small { color: var(--muted); font-size: 13px; }
.vivo .cuando { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.vivo .cuando.ahora { color: var(--text); font-weight: 700; }
.punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); margin-right: 8px; vertical-align: 2px; animation: punto 1.6s ease-in-out infinite; }
@keyframes punto { 50% { opacity: .25; } }

/* fits y diario pequeños */
.flatlay { position: relative; aspect-ratio: 1; border-radius: 22px; background: #F8F8F8; overflow: hidden; }
.flatlay img { position: absolute; object-fit: contain; opacity: 0; translate: 0 8px; transition: opacity .5s ease, translate .5s ease; }
.activa .flatlay img, .flatlay.activa img { opacity: 1; translate: 0 0; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dia { text-align: center; }
.dia small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.dia b { display: block; font-family: var(--display); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.dia .hueco { aspect-ratio: 3 / 4; border-radius: 10px; }
.dia.hoy .hueco { box-shadow: inset 0 0 0 1.5px var(--text); }
.dia.vacio .hueco { background: none; box-shadow: inset 0 0 0 1.5px var(--borde); }

.avisame { text-align: center; }
.form { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.form input { width: min(300px, 100%); min-width: 0; border: 1.5px solid var(--borde); border-radius: 99px; padding: 12px 20px; font-size: 15px; background: var(--page); outline: 0; }
.form input:focus { border-color: var(--text); }
.nota { color: var(--muted); font-size: 13px; margin-top: 14px; }
.pie { border-top: 1px solid var(--borde); padding-block: 28px 36px; font-size: 13px; color: var(--muted); }
.pie .envol { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
.pie .logo { font-size: 16px; color: var(--text); margin-right: auto; }
.pie a { color: var(--muted); text-decoration: none; }

/* ---------- 1: escaparate ---------- */
.dos-tarjetas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@container sitio (max-width: 640px) { .dos-tarjetas { grid-template-columns: 1fr; } }
.tarjeta { border: 1px solid var(--borde); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.tarjeta .flatlay { aspect-ratio: 4 / 3; }
.tarjeta p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tarjeta .semana { margin-block: auto; }

/* ---------- 2: capítulos ---------- */
.capitulos { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
@container sitio (max-width: 640px) { .capitulos { grid-template-columns: 1fr; gap: 0; } }
.cap { min-height: 380px; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s ease; }
.cap.activa { opacity: 1; }
.cap .medio { font-size: 40px; }
@container sitio (max-width: 640px) { .cap { min-height: 0; opacity: 1; padding-block: 28px; } .cap .medio { font-size: 26px; } }
.cap .tel { display: none; }
@container sitio (max-width: 640px) { .cap .tel { display: block; width: 220px; margin-top: 24px; } .lado-tel { display: none; } }
.lado-tel { position: sticky; top: 110px; height: 560px; align-self: start; }
.tel { position: relative; width: 270px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 40px; border: 9px solid #121211; background: var(--page); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.3); }
.pantalla { position: absolute; inset: 0; padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .45s ease; }
.pantalla.activa, .cap .pantalla { opacity: 1; }
.cap .tel { position: relative; }
.pantalla h5 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; margin: 0; }
.pantalla small { color: var(--muted); font-size: 11.5px; }
.p-busc { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--text); border-radius: 99px; padding: 7px 11px; font-size: 12px; }
.p-busc .cursor { width: 1.5px; height: 13px; background: var(--text); animation: punto 1s steps(1) infinite; }
.p-fila { display: flex; align-items: center; gap: 9px; font-size: 12px; opacity: 0; translate: 0 6px; transition: opacity .35s ease, translate .35s ease; }
.escrito .p-fila { opacity: 1; translate: 0 0; }
.p-fila .hueco { width: 40px; border-radius: 9px; }
.p-fila b { display: block; font-weight: 600; }
.visor { flex: 1; border-radius: 18px; background: #F8F8F8; position: relative; overflow: hidden; }
.visor img { position: absolute; inset: 14% 14% 26%; width: 72%; height: 60%; object-fit: contain; }
.visor .esquinas { position: absolute; inset: 10% 10% 22%; border: 2px solid var(--text); border-radius: 14px; clip-path: polygon(0 0,22% 0,22% 3px,78% 3px,78% 0,100% 0,100% 22%,calc(100% - 3px) 22%,calc(100% - 3px) 78%,100% 78%,100% 100%,78% 100%,78% calc(100% - 3px),22% calc(100% - 3px),22% 100%,0 100%,0 78%,3px 78%,3px 22%,0 22%); }
.visor .hoja { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--page); box-shadow: 0 6px 18px rgba(0,0,0,.1); border-radius: 14px; padding: 10px 12px; font-size: 12px; translate: 0 120%; transition: translate .5s cubic-bezier(.3,1.2,.5,1) .5s; }
.activa .visor .hoja, .cap.activa .visor .hoja { translate: 0 0; }
.visor .hoja b { display: block; font-size: 12.5px; }
.ficha-foto { aspect-ratio: 1; border-radius: 14px; background: #F8F8F8; position: relative; }
.ficha-foto img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.p-botones { display: flex; gap: 6px; }
.p-botones span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 99px; padding: 8px 4px; font-size: 11.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--borde); transition: box-shadow .3s ease .6s; }
.p-botones span { transition: box-shadow .25s ease, transform .25s ease; }
.p-botones span.on { box-shadow: inset 0 0 0 1.5px var(--text); animation: toque .32s ease; }
.p-botones .t.on svg { color: var(--verde); }
.p-botones .q.on svg { color: var(--rojo); }
.p-botones .q.on path { fill: currentColor; }
.pantalla .flatlay { aspect-ratio: 1; }
.seg { display: inline-flex; gap: 3px; background: var(--peana); border-radius: 99px; padding: 4px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--page); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; transition: opacity .25s ease; }
.rejilla.cambia { opacity: 0; }
@container sitio (max-width: 640px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }

/* ---------- 3: catálogo con historia ---------- */
/* la cinta de Recién añadidas */
.marquesina { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pista { display: flex; width: max-content; animation: cinta 60s linear infinite; }
.marquesina:hover .pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.tramo { display: flex; }
.recien { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; white-space: nowrap; font-size: 14px; }
.recien img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.12)); }
.recien b { font-weight: 600; }
.recien small { color: var(--muted); font-size: 12.5px; }
.recien.rotulo { font-weight: 700; }
.heroe { overflow: hidden; transition: height .9s cubic-bezier(.6,0,.25,1); }
.marca-linea { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pill-mini { border: 0; background: var(--page); cursor: pointer; font-family: inherit; transition: box-shadow .2s ease; display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 700; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--borde); flex: none; }
.pill-mini.t svg { color: var(--verde); }
.pill-mini:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.pill-mini[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.pill-mini.q[aria-pressed="true"] svg { color: var(--rojo); }
.pill-mini.q[aria-pressed="true"] path { fill: currentColor; }
.marca-linea { color: var(--muted); }
.ticker { display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; overflow: hidden; font-size: 14px; color: var(--muted); }
.ticker span { display: inline-block; transition: translate .45s ease, opacity .45s ease; }
.ticker span.sale { translate: 0 -100%; opacity: 0; }
.ticker span.entra { translate: 0 100%; opacity: 0; transition: none; }
.ticker b { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
@container sitio (max-width: 640px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; } }
.chips button { border: 0; border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: var(--page); box-shadow: inset 0 0 0 1px var(--borde); cursor: pointer; white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--page); box-shadow: none; }
.rejilla .carta { transition: opacity .3s ease, scale .3s ease; }
.rejilla .carta.fuera { opacity: 0; scale: .96; }
.historia { grid-column: span 2; border: 1px solid var(--borde); border-radius: 22px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
@container sitio (max-width: 640px) { .historia { grid-template-columns: 1fr; padding: 20px; } }
.historia h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.historia p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.historia .grande-marcar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.historia .pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 9px 14px; font-size: 13.5px; font-weight: 700; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--borde); cursor: pointer; }
.historia .pill[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.historia .pill.t svg { color: var(--borde); }
.historia .pill.t[aria-pressed="true"] svg { color: var(--verde); }
.historia .pill.q[aria-pressed="true"] svg { color: var(--rojo); }
.historia .pill.q[aria-pressed="true"] path { fill: currentColor; }
.oculta { display: none !important; }
.mas { display: flex; justify-content: center; margin-top: 36px; }
.franja { border-top: 1px solid var(--borde); padding-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.franja .form { margin: 0; }

/* ---------- lo refinado ---------- */
/* «¿La tienes o la quieres?»: sin descripción, la respuesta son los botones */
.pregunta { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.pregunta h3 { font-size: 26px; }
.pregunta .grande-marcar { margin-top: 20px; gap: 8px; }
.pregunta .pill { padding: 9px 13px; font-size: 14px; }
.pregunta .pill.t svg { color: var(--verde); }
@container sitio (max-width: 640px) { .pregunta { grid-template-columns: 1fr; } .pregunta > .hueco { order: -1; aspect-ratio: 4 / 3; } .pregunta h3 { font-size: 21px; } .pregunta .grande-marcar { margin-top: 14px; } }
.toque { animation: toque .32s ease; }
@keyframes toque { 40% { transform: scale(.9); } }
.tiendas { display: flex; gap: 8px; flex-wrap: wrap; }
.boton.pronto { opacity: .45; cursor: default; pointer-events: none; }
.toast:has(.solo) { padding: 13px 22px; }
/* la ficha en la web */
.carta[data-n] { cursor: pointer; }
.migas { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.migas a { color: var(--text); font-weight: 600; text-decoration: none; }
.migas span { margin-inline: 6px; }
.ficha { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@container sitio (max-width: 640px) { .ficha { grid-template-columns: 1fr; gap: 24px; } }
.ficha-foto { position: relative; aspect-ratio: 1; border-radius: 26px; background: #F8F8F8; }
.ficha-foto img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.ficha-datos { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; }
.ficha-datos .marca { font-weight: 700; font-size: 15px; }
.ficha-nombre { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; font-size: 36px; margin: 0; text-wrap: balance; }
@container sitio (max-width: 640px) { .ficha-nombre { font-size: 27px; } }
.ficha-datos .codigo { font-size: 13px; color: var(--muted); }
.ficha-datos .tipo { font-size: 15px; color: var(--muted); margin-top: 6px; }
.ficha-datos .grande-marcar { display: flex; gap: 8px; margin-top: 22px; }
.ficha-datos .pill { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 12px 20px; font-size: 15px; font-weight: 700; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--borde); cursor: pointer; white-space: nowrap; }
.ficha-datos .pill.t svg { color: var(--verde); }
.cifras-ficha { display: flex; gap: 22px; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.cifras-ficha b { font-family: var(--display); font-weight: 700; color: var(--text); font-size: 17px; margin-right: 4px; }
.precio { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--borde); align-self: stretch; }
.precio span { font-size: 13px; color: var(--muted); }
.precio b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.carta.esta .hueco { box-shadow: inset 0 0 0 1.5px var(--text); }
/* las prendas que lleva el fit, flotando en fila */
.prendas-fit { display: flex; align-items: flex-end; gap: 22px; margin-top: 28px; }
/* en la tarjeta de Inicio, la fila cabe en su columna: más pequeña y, si no cabe, baja de línea */
.historia .prendas-fit { gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.historia .prendas-fit img { height: 38px; max-width: 44px; }
.prendas-fit img { height: 52px; width: auto; max-width: 64px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.12)); opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .4s ease; }
.activa .prendas-fit img { opacity: 1; translate: 0 0; }
.pantalla .prendas-fit { margin-top: 0; gap: 6px; justify-content: space-between; }
.pantalla .prendas-fit img { height: 34px; max-width: 40px; }
/* en el iPhone, lo principal ocupa lo que queda de pantalla: nada de pantallas medio vacías */
.pantalla .llena { flex: 1; min-height: 0; aspect-ratio: auto; }
.p-dato { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; padding: 8px 0; border-top: 1px solid var(--borde); }
.p-dato b { font-family: var(--display); font-weight: 700; font-size: 12.5px; }
.p-versiones { display: flex; gap: 6px; }
.p-versiones .hueco { flex: 1; border-radius: 8px; }
.p-dia { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; border-top: 1px solid var(--borde); padding-top: 10px; }
.diario-fits img { transition: opacity .6s ease !important; }
.diario-fits img:not(.ver) { opacity: 0 !important; }
.dia .hueco { transition: box-shadow .3s ease; }
/* el fit puesto, de arriba abajo como en el cuerpo */
.puesto { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; background: #F8F8F8; overflow: hidden; }
.puesto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.03; transition: opacity .6s ease, scale .8s ease; }
.activa .puesto img { opacity: 1; scale: 1; }
.etq-gen { position: absolute; right: 10px; top: 10px; z-index: 5; color: var(--muted); background: rgba(255,255,255,.8); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.etq-fit { position: absolute; left: 10px; bottom: 10px; z-index: 5; background: var(--page); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
/* el aviso de entrar, pegado abajo */
.toast-envol { position: sticky; bottom: 16px; height: 0; z-index: 20; }
.toast { position: absolute; left: 50%; bottom: 0; translate: -50% 140%; opacity: 0; display: flex; align-items: center; gap: 10px; background: var(--page); border-radius: 99px; padding: 8px 8px 8px 20px; box-shadow: 0 0 0 1px var(--borde), 0 18px 40px -12px rgba(0,0,0,.28); white-space: nowrap; font-size: 14.5px; font-weight: 600; transition: translate .4s cubic-bezier(.3,1.2,.5,1), opacity .3s ease; }
.toast.visible { translate: -50% 0; opacity: 1; }
.toast .boton { padding: 9px 16px; font-size: 13.5px; }
@container sitio (max-width: 640px) { .toast { white-space: normal; width: calc(100% - 32px); border-radius: 22px; flex-wrap: wrap; padding: 14px; } .toast span { flex-basis: 100%; } .toast .boton { flex: 1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* ---------- lo propio de la web (fuera de la maqueta) ---------- */
.nav { position: sticky; top: 0; border-bottom: 1px solid transparent; }
@container sitio (max-width: 640px) { .nav { height: 52px; padding-inline: 20px; gap: 20px; border-bottom-color: var(--borde); } }
a.logo { color: var(--text); text-decoration: none; }
a.carta { display: block; color: inherit; text-decoration: none; }
.carta .c-marca { display: block; margin-bottom: 1px; }
.carta b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* una prenda sin foto todavía lleva la genérica de su tipo, en gris, como en la app */
.generica > img { opacity: .55; }
a.res { color: inherit; text-decoration: none; }
a.res:hover { background: #F6F6F4; }
.buscador a { display: grid; place-items: center; color: var(--text); }
a.recien { color: inherit; text-decoration: none; }
/* el aviso de entrar, pegado abajo de la ventana */
.toast-envol { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 0; }
@media (max-width: 640px) { .toast { white-space: normal; width: calc(100% - 32px); border-radius: 22px; flex-wrap: wrap; padding: 14px; } .toast span { flex-basis: 100%; } .toast .boton { flex: 1; } }
/* ficha: frente y espalda */
.ficha-foto { overflow: hidden; }
.angulos { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 3px; background: var(--page); border-radius: 99px; padding: 4px; box-shadow: 0 0 0 1px var(--borde); }
.angulos button { border: 0; background: none; border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.angulos button[aria-pressed="true"] { background: var(--text); color: var(--page); }
/* Prendas: buscador y orden */
.cab-prendas { flex-wrap: wrap; align-items: center; }
.busca-catalogo { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--text); border-radius: 99px; padding: 0 18px; height: 48px; margin-bottom: 18px; max-width: 520px; color: var(--muted); }
.busca-catalogo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; color: var(--text); }
.busca-catalogo:focus-within { box-shadow: 0 0 0 3px rgba(18,18,17,.08); }
.vacio { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 12px 0 32px; max-width: 60ch; }
/* textos legales */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 32px 24px; font-size: 16.5px; line-height: 1.65; }
@container sitio (max-width: 640px) { .legal { padding: 36px 20px 8px; font-size: 16px; } }
.legal h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-size: 34px; margin: 0 0 18px; text-wrap: balance; }
.legal h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 21px; margin: 44px 0 10px; line-height: 1.25; }
.legal h3 { font-size: 17px; margin: 28px 0 6px; }
.legal p, .legal li { color: #2A2A28; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal hr { border: 0; border-top: 1px solid var(--borde); margin: 32px 0; }
.legal a { color: var(--text); }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 16px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border-bottom: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal .otro-idioma { color: var(--muted); font-size: 14px; }
/* una foto de verdad del catálogo ya trae su fondo de estudio: llena el hueco, como en la app */
.con-foto { background: #F8F8F8; overflow: hidden; }
.con-foto > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carta:hover .con-foto > img { transform: scale(1.03); }
