/* Tu Mueble, Paso a Paso — "el taller, no el folleto" */
@font-face { font-family: 'Playfair Display'; src: url('../fonts/Playfair-Regular.26c11c8286cc.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/Playfair-Bold.7486863fc3eb.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/Playfair-Italic.2ddc103a1442.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.14f5930fdd53.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.8217ffd205b7.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }

:root {
  --olive: #4b553a; --olive-d: #3a4230; --cream: #faf6f1; --cream-2: #f5f0eb; --gold: #c58b2a; --gold-l: #d4a017;
  --brown: #8b6f50; --terra: #925946; --walnut: #2e2018; --espresso: #1f150f; --ink: #3a2a1e; --kraft: #d9c3a0; --kraft-d: #c4a97e;
  --paper: #fffdf8; --rule: #dfe3ee; --muted: #6f6152;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-pill: 999px;
  /* One elevation for the whole app: a hairline in a brand tint + one very soft shadow. Sheets get the second, slightly stronger one. */
  --hair: #e6dccb; --hair-dark: rgba(217,195,160,.2);
  --elev: 0 1px 2px rgba(58,66,48,.06), 0 8px 24px -16px rgba(58,66,48,.18);
  --elev-sheet: 0 1px 2px rgba(58,66,48,.08), 0 24px 48px -28px rgba(46,32,24,.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { html { scroll-padding-bottom: 24px; } }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--sans); background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .26 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
@view-transition { navigation: auto; }
.top { view-transition-name: header; }
.tabs { view-transition-name: tabs; }
@media (min-width: 900px) { body { padding-bottom: 48px; } }
.defs { position: absolute; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--walnut); }
h1 { font-size: clamp(34px, 8.6vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(27px, 6.4vw, 38px); }
h3 { font-size: 21px; }
em, .it { font-family: var(--serif); font-style: italic; }
p { margin: 0 0 12px; }
button { font: inherit; color: inherit; cursor: pointer; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin-bottom: 12px; display: block; }
.lead { font-size: 18.5px; color: #4d3f33; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* cabecera: marca + las cuatro pestañas (abajo en el celular, en la fila de la marca en escritorio) */
.top { position: sticky; top: 0; z-index: 20; color: #f2e8da; background: var(--walnut);
  background-image: repeating-linear-gradient(91deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px), linear-gradient(180deg, #36261c, #281b13); border-bottom: 1px solid var(--hair-dark); box-shadow: var(--elev); }
.top-in { max-width: 1080px; margin: 0 auto; min-height: 58px; padding: 6px 18px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; }
.brand small { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--kraft); }
.brand span { font: italic 400 19px/1.2 var(--serif); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--walnut); background-image: linear-gradient(180deg, #33231a, #281b13); border-top: 1px solid var(--hair-dark); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 2px; border-radius: 12px; color: rgba(242,232,218,.72); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .01em; }
.tabs a svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: #fff; background: rgba(212,160,23,.14); }
.tabs a[aria-current="page"] svg { stroke: var(--gold-l); }
.tabs a[data-tab="rescate"] svg { stroke: #e8a892; } .tabs a[data-tab="rescate"][aria-current="page"] svg { stroke: #f4c9b8; }
.tabs a .tab-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; border: 1.5px solid rgba(242,232,218,.6); }
.tabs a[aria-current="page"] .tab-avatar { border-color: var(--gold-l); }
/* the one thing in the top-right: her notifications. A dot when something is unread, never a number. */
.bell { position: relative; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; padding: 0; color: rgba(242,232,218,.82); text-decoration: none; flex: none; cursor: pointer; }
.bell svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bell:hover, .bell:focus-visible { color: #fff; background: rgba(242,232,218,.1); }
.bell .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-l); border: 1.5px solid #2b1d15; }
/* the gift next to the bell (BRIEF-41): only while she has a live offer window; a dot until she opened it once */
.gift { position: relative; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--gold-l); text-decoration: none; flex: none; cursor: pointer; }
.gift svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gift:hover, .gift:focus-visible { color: #fff; background: rgba(242,232,218,.1); }
.gift .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); border: 1.5px solid #2b1d15; }
.gift + .bell { margin-left: 0; }
/* her avisos, in a sheet */
.avisos { list-style: none; margin: 6px 0 0; padding: 0; }
.avisos .aviso { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--hair); padding: 14px 4px; min-height: 56px; color: inherit; cursor: pointer; font: inherit; }
.avisos .aviso b { display: block; font: 400 18px/1.25 var(--serif); color: var(--walnut); }
.avisos .aviso small { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.avisos .aviso .av-when { font: 600 12.5px/1.7 var(--sans); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.avisos .aviso.new b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-l); margin-right: 8px; vertical-align: middle; }
.avisos-sheet .empty { margin: 14px 0 0; color: var(--muted); }
/* a bell row about an offer: like a sponsored message — her face, «Noelia · Publicidad», the line */
.avisos .aviso.sponsored { grid-template-columns: 40px 1fr auto; }
.avisos .aviso.sponsored .portrait { width: 40px; height: 40px; box-shadow: none; border-color: var(--hair); margin-top: 2px; }
.avisos .aviso.sponsored .av-eyebrow { display: block; margin: 0 0 4px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* the gift's sheet: her offer, once more, with her real deadline */
.gift-sheet .empty { margin: 14px 0 0; color: var(--muted); }
.gift-offer { margin-top: 14px; padding: 14px 16px 16px; border: 1px solid var(--hair); border-radius: var(--r-md); background: #fff; color: var(--ink); font-family: var(--sans); }
.gift-offer .promo-head { grid-template-columns: 44px 1fr; padding: 0 0 10px; }
.gift-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--walnut); margin-bottom: 12px; } .gift-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gift-offer h3 { margin: 0 0 6px; font: 600 17px/1.3 var(--sans); color: var(--walnut); }
.gift-until { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #4d3f33; }
.gift-offer .actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .tabs { position: static; margin-left: auto; display: flex; gap: 4px; background: none; background-image: none; border: 0; padding: 0; }
  .tabs a { flex-direction: row; gap: 8px; min-height: 48px; padding: 8px 14px; font-size: 14px; border-radius: var(--r-pill); }
  .tabs a svg { width: 22px; height: 22px; }
}
.stepbar { position: relative; background: var(--paper); border-bottom: 1px solid var(--hair); }
.stepbar-in { max-width: 1080px; margin: 0 auto; padding: 10px 18px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 14px/1.2 var(--sans); color: var(--ink); }
.stepbar .step-words b { font-weight: 600; color: var(--walnut); }
.stepbar .fill { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--gold); transition: width .4s ease-out; }
.savestate { font: 600 13px/1 var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.savestate::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c9bfb0; }
.savestate.saved { color: var(--olive-d); } .savestate.saved::before { background: var(--olive); }
.savestate.saving::before { background: var(--gold); } .savestate.error { color: var(--terra); } .savestate.error::before { background: var(--terra); }
@media (max-width: 379px) { .brand span { font-size: 16px; } .top-in { gap: 10px; } }
.ribbon { background: var(--terra); color: #fff; font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; text-align: center; }

.app { max-width: 1080px; margin: 0 auto; padding: 0 18px; outline: none; }
.screen { padding: 30px 0 24px; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.narrow { max-width: 680px; margin: 0 auto; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 26px; border-radius: var(--r-pill); border: 0; background: var(--olive); color: #fff; font: 600 17px/1.2 var(--sans); text-decoration: none; transition: transform .15s, background .15s; width: 100%; }
.btn:active { transform: scale(.985); } .btn:hover { background: var(--olive-d); }
.btn[disabled] { background: #b9b3a6; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: #24180f; } .btn.gold:hover { background: #b57e22; }
.btn.ghost { background: transparent; color: var(--olive-d); box-shadow: inset 0 0 0 1.5px var(--olive); }
.btn.ghost:hover { background: rgba(75,85,58,.08); }
.btn.link { background: none; box-shadow: none; color: var(--brown); min-height: 48px; text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }
@media (min-width: 760px) { .btn { width: auto; } }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; } @media (min-width: 760px) { .actions { flex-direction: row; align-items: center; } }
.missing { margin: 0; font-size: 14.5px; color: var(--terra); text-align: center; } @media (min-width: 760px) { .missing { text-align: left; } }
.back { background: none; border: 0; padding: 12px 0; color: var(--brown); font-size: 15px; display: inline-flex; gap: 6px; align-items: center; min-height: 48px; }

/* ---------- inicio: una habitación compuesta. Tres zonas, tres materiales: la mesa (kraft), el estante (polaroids), el índice (la página con líneas finas). ---------- */
.home { padding-top: 0; }
.zone { position: relative; }
/* la mesa: kraft de borde a borde, sin caja; el saludo grande a la izquierda, cuánto lleva chico a la derecha, la ficha apoyada sobre el borde del estante */
.mesa { margin: 0 -18px 0; padding: 26px 18px 0; background: var(--kraft);
  background-image: linear-gradient(0deg, rgba(255,255,255,.14), rgba(255,255,255,.14)), repeating-linear-gradient(3deg, rgba(90,60,20,.035) 0 3px, transparent 3px 8px); border-bottom: 1px solid var(--kraft-d); }
.bench-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 18px; }
.mesa h1 { font-size: clamp(34px, 8.6vw, 44px); flex: 0 1 auto; }
/* los números en Playfair, en una línea, a la derecha y más abajo que el saludo: una cifra tipográfica, nunca una ficha de estadística */
.home .strip { margin: 0 0 -3px auto; font: 400 14.5px/1.3 var(--sans); color: #5a4736; letter-spacing: .01em; text-align: right; white-space: nowrap; }
.home .strip b { font: 400 22px/1 var(--serif); color: var(--walnut); font-weight: 400; }
.mesa .notice-card { margin-top: 16px; }
.mesa .bubble { margin: 34px 0 0; padding-bottom: 22px; }
.mesa.first-time { border-bottom: 0; }
/* la ficha en blanco: una tarjeta de receta de papel sobre la mesa de kraft, apenas inclinada, que pisa el borde del estante. Entera es el botón. */
.startcard { position: relative; z-index: 2; display: grid; grid-template-columns: 84px 1fr 42px; align-items: center; gap: 4px 14px; width: calc(100% - 8px); min-height: 96px; text-align: left; cursor: pointer;
  background: var(--paper); background-image: repeating-linear-gradient(0deg, transparent 0 26px, rgba(58,42,30,.07) 26px 27px);
  border: 1px solid var(--hair); border-radius: 6px; padding: 16px 16px 16px 12px; box-shadow: var(--elev); color: inherit; margin: 22px 0 -26px 4px; rotate: -1.5deg; transition: translate .15s; }
.startcard .sc-art { display: grid; place-items: center; }
.startcard .sc-art .art { width: 82px; height: 82px; }
.startcard .eyebrow { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .12em; color: var(--brown); }
.startcard b { display: block; font: 400 24px/1.15 var(--serif); color: var(--walnut); }
.startcard small { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.4; color: #6b5a44; }
/* el sello: lacre dorado, a la derecha — es el «+» de la ficha (sin sombra propia: una superficie dentro de otra no se eleva) */
.startcard .sc-seal { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; justify-self: end; background: radial-gradient(70% 70% at 35% 30%, var(--gold-l), var(--gold)); color: #3a2a1e; font: 400 27px/1 var(--serif); border: 1px solid rgba(58,42,30,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.startcard:hover { border-color: var(--gold); } .startcard:active { translate: 0 1px; }
/* la primera vez, la ficha es lo único sobre la mesa: más grande, la silueta entera a la vista */
.startcard.big { grid-template-columns: 104px 1fr 46px; min-height: 140px; padding: 20px 18px 20px 12px; margin-bottom: 0; }
.startcard.big .sc-art .art { width: 100px; height: 100px; } .startcard.big b { font-size: 27px; } .startcard.big .eyebrow { white-space: nowrap; } .startcard.big .sc-seal { width: 46px; height: 46px; font-size: 29px; }
@media (max-width: 379px) { .startcard { grid-template-columns: 72px 1fr 38px; padding-left: 10px; } .startcard .sc-art .art { width: 70px; height: 70px; } .startcard b { font-size: 21px; } .startcard .sc-seal { width: 38px; height: 38px; font-size: 24px; } .startcard.big { grid-template-columns: 92px 1fr 42px; } .startcard.big .sc-art .art { width: 88px; height: 88px; } }
/* la primera ficha en un celular: el dibujo y el sello arriba, el texto a todo el ancho debajo — el título nunca palabra por palabra (BRIEF-43) */
@media (max-width: 599px) {
  .startcard.big { grid-template-columns: auto 1fr; grid-template-areas: "art seal" "txt txt"; align-items: center; gap: 8px 14px; padding: 16px 18px 20px; }
  .startcard.big .sc-art { grid-area: art; justify-self: start; } .startcard.big .sc-art .art { width: 76px; height: 76px; }
  .startcard.big .sc-txt { grid-area: txt; } .startcard.big .sc-seal { grid-area: seal; }
}
/* se dibuja sola una vez por sesión; con «menos movimiento» la clase no se agrega y la regla global la deja quieta y entera */
.startcard .sc-draw { animation: ficha .46s ease-out both; }
@keyframes ficha { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* el estante: sus muebles como objetos en fila; más aire arriba (la ficha lo pisa) que abajo */
.shelf { padding: 52px 0 6px; }
.shelf > .eyebrow { margin-bottom: 0; }
.shelf-row { list-style: none; display: flex; align-items: flex-end; gap: 18px; margin: 4px -18px 0; padding: 14px 18px 0; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--kraft-d); }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row li { flex: none; }
/* una polaroid: foto o dibujo, el nombre, el sello debajo, la ruta fina como avance. Recta por defecto; la segunda, apenas torcida */
.polaroid { position: relative; display: block; width: 122px; background: #fff; border: 1px solid var(--hair); border-radius: 3px; padding: 7px 7px 10px; box-shadow: var(--elev); text-align: left; color: inherit; cursor: pointer; margin-bottom: 14px; translate: 0 -8px; }
.polaroid .ph { aspect-ratio: 1; background: #efe6d8 center/cover no-repeat; display: grid; place-items: center; }
.polaroid .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 8px; font: italic 400 15px/1.2 var(--serif); color: var(--walnut); overflow: hidden; min-height: 2.4em; }
.polaroid .mark { display: block; margin-top: 3px; font: 600 10.5px/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.polaroid .route { display: block; height: 2px; margin-top: 8px; background: #ece3d3; overflow: hidden; }
.polaroid .route i { display: block; height: 100%; background: var(--olive); transform-origin: left; }
.polaroid .route.none { background: repeating-linear-gradient(90deg, #d9cdb9 0 4px, transparent 4px 8px); }
.shelf-row li:nth-child(2) .polaroid { rotate: 2deg; }
/* la que está trabajando: más grande y adelante, apoyada en el estante, con la palabra */
.polaroid.active { width: 168px; padding: 9px 9px 12px; translate: 0 0; z-index: 1; }
.polaroid.active .name { font-size: 18px; line-height: 1.15; min-height: 0; }
.polaroid.active .go { display: inline-flex; align-items: center; margin-top: 12px; min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill); background: var(--olive); color: #fff; font: 600 15px/1 var(--sans); }
.polaroid:hover { border-color: var(--gold); }
/* la ruta se traza una vez por sesión, cada una un poco después de la anterior; sin la clase, ya está trazada */
.shelf-row.draw .route i { animation: routedraw .48s ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes routedraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shelf .see-all { margin: 12px 0 0; }

/* el índice: una lista desigual con líneas finas — ninguna tarjeta */
.index-zone { padding-top: 34px; }
.index-zone > .eyebrow { margin-bottom: 2px; }
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.index li { border-top: 1px solid var(--hair); }
.ix-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 12px 0; background: none; border: 0; text-align: left; color: inherit; text-decoration: none; cursor: pointer; }
.ix-row b { display: block; font: 400 20px/1.2 var(--serif); color: var(--walnut); } .ix-row small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.ix-row:hover b { color: var(--olive-d); }
/* la guía va primero, más grande, con su tapa chiquita: la fila que ella busca cuando busca «mi PDF» */
.ix.guide .ix-row { padding: 16px 0; } .ix.guide .ix-row b { font-size: 23px; }
.ix-cover { width: 44px; height: 58px; border-radius: 2px; background: var(--walnut); background-image: radial-gradient(120% 100% at 30% 0%, #4a3521, #261910 78%); display: grid; place-items: center; }
.ix-cover i { display: block; width: 24px; height: 26px; background: #fff; border-bottom: 5px solid #fff; box-sizing: content-box; }
.ix-cover i::before { content: ''; display: block; width: 100%; height: 100%; background: #efe6d8; }
.ix-icon { width: 30px; height: 30px; margin-left: 8px; display: grid; place-items: center; } .ix-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--olive-d); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ix-icon.terra svg { stroke: var(--terra); }
/* la nota de Noelia: su retrato y la línea más larga, sin caja; una fila más alta que las otras */
.ix.noelia { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 0 16px; }
.ix.noelia .portrait { width: 44px; height: 44px; box-shadow: none; border-color: var(--paper); }
.ix.noelia .line { margin: 0; font-size: 16px; line-height: 1.55; color: #4d3f33; } .ix.noelia .who { display: block; margin-top: 6px; font: italic 400 14px/1 var(--serif); color: var(--olive-d); }
.home .offer { margin-top: 26px; }
.pieces { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 0; border-bottom: 1px solid var(--hair); }
.piece-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--hair); padding: 12px 0; }
.piece-row .pic { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(180deg, #efe6d8, #e5d8c4); overflow: hidden; display: grid; place-items: center; padding: 4px; }
.piece-row .pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.piece-row .meta b { display: block; font: 400 18px/1.2 var(--serif); color: var(--walnut); } .piece-row .meta span { font-size: 14px; color: var(--muted); }
.actions.quiet { margin-top: 22px; justify-content: center; }
.notice-card { margin: 18px 0 0; background: #fdf1ea; border: 1.5px solid #e4c3b3; border-radius: var(--r-md); padding: 16px; font-size: 15.5px; } .notice-card .actions { margin-top: 10px; }
/* escritorio: la mesa cruza arriba de todo (kraft hasta los bordes de la ventana), la ficha a la derecha; abajo, el estante ancho a la izquierda y el índice angosto a la derecha. Nunca una sola columna centrada. */
@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); column-gap: 64px; align-items: start; padding-top: 0; grid-template-areas: "bench bench" "shelf index"; }
  .mesa { grid-area: bench; margin: 0 calc(50% - 50vw); padding: 40px max(18px, calc(50vw - 522px)) 0; display: grid; grid-template-columns: minmax(0, 1fr) 460px; column-gap: 48px; align-items: end; }
  .bench-head { align-self: start; padding-top: 6px; }
  .mesa h1 { font-size: 46px; }
  .home .strip { margin-left: auto; margin-bottom: -6px; }
  .mesa .notice-card, .mesa .bubble { grid-column: 1; }
  .startcard { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: 100%; margin: 24px 0 -30px; grid-template-columns: 112px 1fr 46px; padding: 18px 20px 18px 14px; rotate: 1.5deg; }
  .startcard .sc-art .art { width: 108px; height: 108px; } .startcard .sc-seal { width: 46px; height: 46px; font-size: 29px; } .startcard b { font-size: 26px; }
  .startcard.big { min-height: 160px; }
  .shelf { grid-area: shelf; padding-top: 58px; }
  .shelf-row { margin-left: 0; margin-right: 0; padding-left: 4px; padding-right: 0; flex-wrap: wrap; overflow-x: auto; }
  .index-zone { grid-area: index; padding-top: 58px; }
  /* sin estante (la primera vez) el índice ocupa la columna ancha, pegado a la izquierda: nunca un hueco, nunca centrado */
  .home.empty-shelf .index-zone { grid-area: shelf; max-width: 560px; }
}
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin-top: 18px; }

/* tarjetas de opción */
.field { margin-top: 30px; } .field > label, .field > .q { display: block; font: 400 23px/1.25 var(--serif); color: var(--walnut); margin-bottom: 6px; }
.field .help { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.input { width: 100%; min-height: 60px; border-radius: var(--r-sm); border: 1.5px solid #d8cdbd; background: var(--paper); padding: 14px 18px; font: 400 19px/1.3 var(--sans); color: var(--ink); }
.input:focus { outline: 3px solid rgba(197,139,42,.35); border-color: var(--gold); }
.grid { display: grid; gap: 10px; } .grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.opt { position: relative; text-align: left; width: 100%; min-height: 64px; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid #ded3c2; background: var(--paper); display: flex; gap: 12px; align-items: center; transition: border-color .15s, box-shadow .15s, transform .1s; }
.opt:active { transform: scale(.99); }
.opt b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.25; } .opt small { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; margin-top: 2px; }
.opt[aria-pressed="true"] { border-color: var(--olive); background: #f3f4ea; outline: 2px solid var(--olive); outline-offset: -2px; }
.opt[aria-pressed="true"]::after { content: ''; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt.piece { flex-direction: column; text-align: center; padding: 8px 8px 12px; gap: 0; } .opt.piece .art { width: 86px; height: 86px; }
.opt.nose b { font-weight: 600; }
.opt.suggested { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: -2px; background: #fdf7ea; }
.opt .sug-tag { color: #8a5f12; font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.art { display: block; width: 100%; height: auto; }

/* foto */
.photo { background: var(--paper); border: 1.5px dashed #cdbfa9; border-radius: var(--r-sm); padding: 12px; }
.photo input[type="file"], .pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--olive); color: var(--olive-d); font-weight: 600; font-size: 15.5px; cursor: pointer; }
.pick:focus-within { outline: 3px solid rgba(197,139,42,.5); }

/* La tira: hasta tres polaroids chicas en fila, la portada primero, y el lugar para agregar una más. */
.ph-strip { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ph-thumb { position: relative; width: 96px; padding: 5px 5px 20px; border: 0; background: #fff; border-radius: 4px; box-shadow: var(--elev); cursor: pointer; transform: rotate(-1.4deg); }
.ph-thumb:nth-child(even) { transform: rotate(1.6deg); }
.ph-thumb img { display: block; width: 100%; height: 86px; object-fit: cover; border-radius: 2px; background: var(--cream-2); }
.ph-thumb .ph-word { position: absolute; left: 0; right: 0; bottom: 3px; font: 400 11px/1 var(--serif); font-style: italic; color: var(--muted); }
.ph-thumb.is-cover { outline: 2px solid var(--gold); outline-offset: 0; }
.ph-thumb:focus-visible { outline: 3px solid rgba(197,139,42,.6); outline-offset: 3px; }
.ph-add { display: grid; place-items: center; gap: 2px; width: 96px; min-height: 111px; border-radius: 8px; border: 1.5px dashed #cdbfa9; background: var(--cream-2); color: var(--olive-d); font: 600 13px/1.2 var(--sans); text-align: center; padding: 8px; cursor: pointer; }
.ph-add span { font-size: 26px; line-height: 1; font-weight: 400; }
.ph-add:focus-within { outline: 3px solid rgba(197,139,42,.5); }
.cover-strip { margin-top: 18px; }

/* La foto grande: la pantalla entera, se pasa con el dedo, y las dos únicas cosas que se pueden hacer con ella. */
.sheet-in.viewer { background: var(--walnut); color: var(--cream); max-width: 860px; }
.viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.viewer-head h2 { color: var(--cream); font-size: 22px; }
.viewer-head small { display: block; font: 400 13px/1.4 var(--sans); color: rgba(250,246,241,.62); }
.viewer-pic { margin: 14px 0 10px; background: #1a120c; border-radius: 12px; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.viewer-pic img { display: block; max-width: 100%; max-height: 58vh; object-fit: contain; }
.viewer-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 14px; }
.viewer-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(250,246,241,.35); }
.viewer-dots i.on { background: var(--gold-l); }
.viewer-acts { justify-content: space-between; }
.viewer-acts .btn.ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(250,246,241,.5); }
.viewer-acts .btn.link.danger { color: #e9a99a; }
.viewer-nav { display: flex; justify-content: space-between; }
.viewer-nav .btn.link { color: rgba(250,246,241,.8); }

/* Antes y después: los dos marcos lado a lado desde el teléfono más angosto, la fila de marcos para deslizar, y la
   imagen ya armada debajo. En el teléfono cada marco vacío tiene dos puertas: la cámara y la galería. */
.machine-back { margin: -6px 0 4px; }
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 4px; align-items: start; }
.frame { margin: 0; }
.frame-pick { position: relative; display: grid; align-content: center; justify-items: center; gap: 8px; aspect-ratio: 3 / 4; border-radius: 10px; border: 1.5px dashed #cdbfa9; background: var(--cream-2); color: var(--olive-d); text-align: center; padding: 10px; }
.frame-pick input[type="file"], .pick-pair input[type="file"], .frame-acts input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.frame-add { font-size: 30px; line-height: 1; font-weight: 400; }
.pick-one { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; width: 100%; max-width: 168px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair); font: 600 13px/1.2 var(--sans); color: var(--olive-d); cursor: pointer; }
.pick-one.cam { background: var(--olive); color: #fff; box-shadow: none; }
.pick-one svg, .pick-big svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.pick-one:focus-within, .pick-big:focus-within { outline: 3px solid rgba(197,139,42,.5); outline-offset: 2px; }
.pick-pair { display: grid; gap: 12px; margin-top: 16px; }
.pick-big { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair); font: 600 16px/1.2 var(--sans); color: var(--olive-d); cursor: pointer; }
.pick-big.cam { background: var(--olive); color: #fff; box-shadow: none; }
.frame-word { display: block; font: italic 400 15px/1.2 var(--serif); color: var(--muted); text-align: center; margin-top: 8px; }
.frame.full img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--cream-2); box-shadow: var(--elev); }
.frame.full figcaption { display: grid; justify-items: center; gap: 2px; }
.frame-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.frame-acts .btn.link.small { width: auto; padding: 0 2px; font-size: 13.5px; min-height: 40px; }
.frame-acts label { position: relative; cursor: pointer; }
.restart { margin: 8px 0 0; text-align: center; }
.restart .btn.link { color: var(--brown); }
.from-piece { margin: 6px 0 0; text-align: center; }
.machine .pick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pick-list .ph { width: 44px; height: 44px; border-radius: 6px; background: var(--cream-2) center/cover no-repeat; flex: none; }
.tpl-pick { margin: 22px 0 0; }
.tpl-title { display: block; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.tpl-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 10px; margin: 0 -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tpl-row::-webkit-scrollbar { display: none; }
.tpl { flex: none; width: 84px; scroll-snap-align: start; background: none; border: 0; padding: 0; display: grid; gap: 6px; justify-items: center; }
.tpl-img { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--cream-2); box-shadow: var(--elev); transition: transform .18s ease; }
.tpl-img.posteo { aspect-ratio: 4 / 5; }
.tpl-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpl-name { font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.tpl[aria-checked="true"] .tpl-img { outline: 3px solid var(--gold); outline-offset: 3px; transform: translateY(-2px); }
.tpl[aria-checked="true"] .tpl-name { color: var(--walnut); }
.tpl:focus-visible { outline: none; } .tpl:focus-visible .tpl-img { outline: 3px solid var(--olive); outline-offset: 3px; }
.tpl-variants { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--paper); background: var(--sw); outline: 1.5px solid var(--hair); padding: 0; flex: none; }
.swatch[aria-pressed="true"] { outline: 2.5px solid var(--walnut); }
.swatch-name { font: italic 400 15px/1.2 var(--serif); color: var(--muted); margin-left: 4px; }
.share-preview { margin: 18px 0 0; }
.share-preview img { display: block; width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 10px; box-shadow: var(--elev-sheet); }
.share-preview figcaption { margin: 12px auto 0; max-width: 420px; text-align: center; font-size: 14px; color: var(--muted); }
/* El revelado: la imagen aparece como una copia que se revela, una sola vez. Con movimiento reducido no hay nada. */
.share-preview.reveal img { animation: develop .48s cubic-bezier(.2,.7,.2,1) both; }
.share-preview.reveal { animation: developfig .48s ease-out both; }
@keyframes develop { from { opacity: 0; transform: translateY(16px) scale(.95) rotate(-1.2deg); filter: sepia(.7) brightness(1.2) blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes developfig { from { opacity: .001; } to { opacity: 1; } }
.formats { display: flex; gap: 10px; margin: 16px 0 4px; }
.formats .opt.small { min-height: 46px; padding: 8px 40px 8px 14px; font-size: 15px; }
.formats .opt[aria-pressed="true"]::after { top: 50%; translate: 0 -50%; right: 12px; }
.finish-ask { margin: 12px 0 14px; font-size: 16px; }
.toast.work { background: var(--olive-d); }
.ai-consent { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-top: 12px; font-size: 14.5px; color: #4d3f33; cursor: pointer; }
.ai-consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--olive); }
.ai-note { margin: 10px 0 0; font-size: 14.5px; color: var(--olive-d); display: flex; gap: 8px; align-items: center; }
.ai-reason { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; font-size: 15px; color: #4d3f33; background: #fdf7ea; border-radius: var(--r-sm); padding: 10px 12px; }
.ai-reason em { color: #8a5f12; font-style: normal; font-weight: 600; font-family: var(--sans); }
.portrait { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #fff; box-shadow: var(--elev); } .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.small { width: 34px; height: 34px; }
.named { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--elev); animation: drawin .45s ease-out both; }
.named .art { width: 72px; height: 72px; } .named .tag { font: italic 400 20px/1.2 var(--serif); color: var(--walnut); }
@keyframes drawin { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.dup { margin: 8px 0 0; font-size: 14.5px; color: var(--terra); } .dup .btn.link { min-height: 40px; padding: 0 4px; font-size: 14.5px; }
.editing { background: #fbf3e2; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 15px; margin-bottom: 18px; }

/* sellos de tinta */
.stamp { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px 5px; border: 1.5px solid currentColor; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px currentColor; transform: rotate(-3deg); filter: url(#tinta); white-space: nowrap; }
.stamp.V, .stamp.si { color: var(--olive); } .stamp.L, .stamp.pero { color: #a06e13; } .stamp.N, .stamp.no { color: var(--terra); } .stamp.prov { color: var(--terra); }
.stamp.big { font-size: 13px; padding: 9px 13px 8px; }
.stamp.landed { animation: stampland .4s ease-out both; }
@keyframes stampland { from { opacity: 0; transform: rotate(-3deg) scale(1.6); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* destino */
.looks { display: grid; gap: 16px; margin-top: 22px; } @media (min-width: 760px) { .looks { grid-template-columns: 1fr 1fr; } }
.look { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 6px 14px; text-align: left; width: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px; box-shadow: var(--elev); }
.look .pic { background: linear-gradient(180deg, #efe6d8, #e5d8c4); border-radius: 12px; padding: 6px; align-self: start; }
.look h3 { margin-bottom: 2px; } .look .sub { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.look .why, .look .choose { grid-column: 1 / -1; } .look .why { font-size: 15.5px; margin: 8px 0 0; padding: 0; list-style: none; } .look .why li { padding-left: 14px; position: relative; margin-bottom: 6px; } .look .why li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 1.5px; background: var(--brown); }
.look[aria-pressed="true"] { border-color: var(--olive); outline: 2px solid var(--olive); outline-offset: -2px; }
.look .pic.applied .art { animation: applylook .45s ease-out both; }
@keyframes applylook { from { opacity: .35; filter: saturate(.2); } to { opacity: 1; filter: none; } }
.look.is-no { background: #f6f0e8; } .look.is-no .pic { opacity: .55; filter: grayscale(.4); }
.look .choose { margin-top: 10px; font: 600 14px/1 var(--sans); color: var(--olive-d); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.tone { margin-top: 20px; background: var(--kraft); background-image: linear-gradient(0deg, rgba(255,255,255,.18), rgba(255,255,255,.18)); border-radius: var(--r-md); padding: 16px; }
.tone .q { font: 400 20px/1.25 var(--serif); margin-bottom: 4px; }

/* examen */
.exam { display: grid; gap: 22px; } @media (min-width: 900px) { .exam { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.bench { background: var(--walnut); background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px), radial-gradient(120% 100% at 50% 0%, #49341f, #2a1c13 75%); border: 1px solid var(--hair-dark); border-radius: var(--r-md); padding: 18px; color: #f1e6d6; box-shadow: var(--elev); }
.bench .card { background: var(--paper); border-radius: 10px; padding: 8px; transform: rotate(-1.2deg); box-shadow: var(--elev); max-width: 230px; margin: 0 auto; } @media (min-width: 900px) { .bench .card { max-width: 320px; } }
.bench .test { margin: 16px 2px 2px; font-size: 15.5px; line-height: 1.5; } .bench .test b { color: var(--kraft); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; display: block; margin-bottom: 4px; }
.qbar { display: flex; gap: 6px; margin-bottom: 14px; } .qbar i { height: 5px; flex: 1; border-radius: 3px; background: #e3d8c6; } .qbar i.on { background: var(--olive); }
.howlist { margin: 0; padding: 0; list-style: none; font-size: 16px; } .howlist li { padding: 9px 0 9px 26px; border-bottom: 1px dashed #d9ccb6; position: relative; } .howlist li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.changes { margin: 18px 0 0; padding: 14px 16px 14px 18px; border-left: 3px solid var(--gold); background: #fbf3e2; border-radius: 0 12px 12px 0; font-size: 15.5px; }
.changes b { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8a5f12; display: block; margin-bottom: 6px; }
.options { display: grid; gap: 10px; margin-top: 20px; }

/* receta */
.cover { display: grid; gap: 20px; background: var(--walnut); background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px), radial-gradient(120% 100% at 30% 0%, #4a3521, #261910 78%); color: #f4eadb; border: 1px solid var(--hair-dark); border-radius: var(--r-md); padding: 22px 20px 24px; box-shadow: var(--elev); position: relative; overflow: hidden; }
.cover h1 { color: #fff; font-size: clamp(30px, 7.6vw, 48px); } .cover .eyebrow { color: var(--kraft); }
.cover .sum { font-size: 15.5px; color: #e6d8c3; margin: 10px 0 0; }
.cover .polaroid { width: 128px; background: #fff; padding: 7px 7px 22px; transform: rotate(-4deg); box-shadow: var(--elev); border-radius: 3px; }
.cover .polaroid .ph { aspect-ratio: 1; background: #efe6d8 center/cover no-repeat; display: block; }
.cover .top-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r-sm); overflow: hidden; }
.kpis div { background: rgba(20,12,8,.35); padding: 12px 8px; text-align: center; } .kpis b { display: block; font: 400 25px/1.1 var(--serif); color: #fff; } .kpis span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--kraft); }
@media (min-width: 760px) { .cover { padding: 36px 40px; grid-template-columns: 1.3fr .7fr; align-items: end; } .cover .polaroid { width: 170px; } }
/* El ciclo del mueble: cambiar respuestas mientras no hay tildes; en marcha, una línea y «Hacer otro mueble». */
.cover .edit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: -6px; font-size: 14.5px; color: #e6d8c3; }
.cover .edit-row p { margin: 0; }
.cover .edit-row .btn.link { color: #f4eadb; min-height: 44px; padding: 0; width: auto; font-size: 14.5px; }
.step.chequeo .actions { margin-top: 10px; align-items: flex-start; } .step.chequeo .actions .btn { width: auto; }
.fixed-piece .lead { margin-top: 8px; }
.cover .finish { margin-top: 6px; } .cover .finish .stamp { color: #f2d59a; box-shadow: inset 0 0 0 2px transparent, inset 0 0 0 3px currentColor; }
.prov { margin-top: 16px; background: #fdf1ea; border: 1.5px solid #e4c3b3; border-radius: var(--r-md); padding: 16px; font-size: 15.5px; display: grid; gap: 10px; }
.subnav { position: sticky; top: 58px; z-index: 10; margin: 18px -18px 0; padding: 8px 18px; background: rgba(250,246,241,.94); backdrop-filter: blur(6px); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font: 600 14px/1 var(--sans); color: var(--brown); text-decoration: none; padding: 12px 14px; border-radius: var(--r-pill); min-height: 40px; } .subnav a:hover, .subnav a.on { background: #ece3d3; color: var(--walnut); }
.section { padding-top: 44px; scroll-margin-top: 110px; } .section > .eyebrow { margin-bottom: 8px; } .section > h2 { margin-bottom: 8px; } .section > .lead { margin-bottom: 18px; }

/* ficha */
.ficha { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--elev); border: 1px solid var(--hair); overflow: hidden; display: grid; } @media (min-width: 760px) { .ficha { grid-template-columns: 260px 1fr; } }
.ficha .pic { background: linear-gradient(180deg, #efe6d8, #e3d5bf); padding: 10px 40px; display: grid; place-items: center; } .ficha .pic .art { max-width: 170px; } @media (min-width: 760px) { .ficha .pic .art { max-width: 220px; } }
.ficha dl { margin: 0; } .ficha .row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 16px; border-top: 1px dashed #e0d5c3; align-items: start; } .ficha .row:first-child { border-top: 0; }
.ficha dt { font: 600 11.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brown); } .ficha dd { margin: 3px 0 0; font-size: 16.5px; line-height: 1.35; } .ficha dd small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.dot { width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; border: 2px solid var(--olive); background: var(--olive); box-shadow: inset 0 0 0 3px var(--paper); }
.dot.atencion { border-color: var(--gold); background: var(--gold); } .dot.alerta { border-color: var(--terra); background: var(--terra); } .dot.pendiente { border-style: dashed; border-color: var(--brown); background: transparent; box-shadow: none; }

/* veredictos compactos */
.verdicts { display: grid; gap: 10px; } @media (min-width: 760px) { .verdicts { grid-template-columns: 1fr 1fr; } }
.verdict { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; box-shadow: var(--elev); } .verdict.chosen { border-color: var(--olive); background: #f5f6ec; }
.verdict .pic { background: #efe6d8; border-radius: 10px; padding: 4px; align-self: start; } .verdict h3 { font-size: 19px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .verdict p { font-size: 14.5px; margin: 8px 0 0; color: #4d3f33; }

/* el mapa */
.map { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 16px 8px; box-shadow: var(--elev); }
.map ol { list-style: none; margin: 0; padding: 0; position: relative; }
.map li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding-bottom: 6px; }
/* the paper ring that masks the route line is a border (the disc is 44 px inside it) */
.map li .node { width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--paper); background: var(--olive); color: #fff; display: grid; place-items: center; font: 400 19px/1 var(--serif); position: relative; z-index: 1; }
.map li.s0 .node { background: var(--gold); color: #24180f; } .map li.chk .node { background: var(--terra); } .map li.cond .node { background: var(--paper); color: var(--brown); box-shadow: inset 0 0 0 2px var(--brown); }
.map li::before { content: ''; position: absolute; left: 25px; top: 48px; bottom: -2px; border-left: 2.5px solid var(--kraft-d); transform-origin: top; animation: routeline .45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); } .map li.wait::before { border-left-style: dashed; } .map li.done::before { border-left-color: var(--olive); } .map li:last-child::before { display: none; }
@keyframes routeline { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.map li.done .node { background: var(--olive); } .map li.done .node svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map li:not(.done):not(.s0):not(.chk):not(.cond) .node { background: var(--paper); color: var(--olive-d); box-shadow: inset 0 0 0 2px var(--olive); }
.map li.now .node { outline: 3px solid rgba(212,160,23,.35); }
.map .t { padding-top: 3px; } .map .t span.ratos { display: block; } .map .t b { display: block; font: 400 18.5px/1.25 var(--serif); color: var(--walnut); } .map .t span { font-size: 13.5px; color: var(--muted); }
.map .dry { margin: 8px 0 14px; font-size: 13.5px; color: #7a5a2a; display: flex; width: fit-content; gap: 6px; align-items: center; background: #fbf3e2; padding: 5px 10px; border-radius: var(--r-pill); }
.map .dry.none { background: none; padding: 0; margin: 2px 0 10px; color: transparent; height: 4px; }
.blocks { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; } .blocks i { width: 12px; height: 7px; background: var(--olive); border-radius: 2px; opacity: .8; }

/* sesiones: papel rayado */
/* sessions are rows on the page, one hairline between each; the open one shows its steps below the row */
.session { border-top: 1px solid var(--hair); position: relative; } .session:last-of-type { border-bottom: 1px solid var(--hair); }
.session > summary { list-style: none; cursor: pointer; padding: 18px 0 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 72px; }
.session.done .n { color: var(--olive); } .session .donestamp { font-size: 10px; padding: 5px 7px 4px; } .session > summary::-webkit-details-marker { display: none; }
.session .n { font: italic 400 34px/1 var(--serif); color: var(--gold); min-width: 30px; } .session .ttl { font: 400 20px/1.2 var(--serif); color: var(--walnut); } .session .meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.session .chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; transition: transform .2s; } .session[open] .chev { transform: rotate(180deg); } .session .chev svg { width: 12px; height: 12px; stroke: var(--brown); fill: none; stroke-width: 2.4; }
.session .body { padding: 0 0 18px; }
.step { padding: 16px 0 6px; border-top: 1px dashed var(--hair); } .step h4 { margin: 0 0 6px; font: 600 17.5px/1.3 var(--sans); color: var(--walnut); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.step .what { font-size: 16.5px; } .step .why { font: italic 400 16.5px/1.5 var(--serif); color: #5a4a3c; margin: 8px 0; }
.step ul.how { margin: 8px 0; padding: 0; list-style: none; } .step ul.how li { padding: 5px 0 5px 24px; position: relative; font-size: 16px; } .step ul.how li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 10px; height: 10px; border: 1.5px solid var(--olive); border-radius: 3px; background: var(--paper); }
.pair { display: grid; gap: 8px; margin: 12px 0 6px; } @media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { border-radius: 12px; padding: 11px 13px; font-size: 15px; line-height: 1.45; background: rgba(255,253,248,.92); } .pair b { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.pair .err { border: 1.5px solid #e6c9bb; } .pair .err b { color: var(--terra); } .pair .ok { border: 1.5px solid #cfd6bd; } .pair .ok b { color: var(--olive); }
.note { font-size: 15px; background: #fbf3e2; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.safety { margin: 12px 0; border: 2px solid var(--terra); border-radius: 12px; background: #fff7f2; overflow: hidden; } .safety h5 { margin: 0; background: var(--terra); color: #fff; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; } .safety ul { margin: 0; padding: 10px 12px 10px 30px; font-size: 15px; } .safety li { margin-bottom: 5px; } .safety li.no { font-weight: 600; color: #7a3d2a; }
.needs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; } .needs span { font-size: 13px; background: var(--kraft); color: #3d2c1a; padding: 5px 10px; border-radius: var(--r-pill); }
.handoff { font-size: 13.5px; color: var(--brown); margin: 8px 0 2px; display: flex; gap: 8px; align-items: baseline; } .handoff a { color: var(--olive-d); font-weight: 600; text-underline-offset: 3px; } .handoff svg { width: 14px; height: 14px; flex: none; fill: var(--brown); transform: translateY(2px); }
.src { font-size: 12px; color: #9a8b78; margin-top: 4px; }
.condflag { font-size: 13px; color: var(--terra); font-weight: 600; }

/* lista: papel kraft */
.shop { margin-top: 22px; background: var(--kraft); background-image: linear-gradient(0deg, rgba(255,255,255,.2), rgba(255,255,255,.2)), repeating-linear-gradient(3deg, rgba(90,60,20,.035) 0 3px, transparent 3px 8px); border-radius: 4px 4px var(--r-md) var(--r-md); box-shadow: var(--elev); position: relative; padding: 22px 14px 12px; }
.shop::before { content: ''; position: absolute; top: -7px; left: 0; right: 0; height: 14px; background: radial-gradient(circle at 7px 0, transparent 6px, var(--kraft) 6.5px) 0 0/14px 14px repeat-x; filter: brightness(1.06); }
.shop h3 { font-size: 24px; } .shop .hint { font-size: 14px; color: #5e4a30; margin: 2px 0 12px; }
.item { background: var(--paper); border-radius: 12px; padding: 14px 14px 12px; margin-top: 10px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.item input { appearance: none; width: 30px; height: 30px; border: 2px solid var(--brown); border-radius: 7px; background: #fff; margin: 0; cursor: pointer; position: relative; } .item input:checked { background: var(--olive); border-color: var(--olive); } .item input:checked::after { content: ''; position: absolute; left: 9px; top: 3px; width: 7px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.item.done .name { text-decoration: line-through; opacity: .6; }
.item .head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; } .item .name { font: 600 17px/1.3 var(--sans); color: var(--walnut); }
.item .ask { font: italic 400 16px/1.45 var(--serif); margin: 6px 0; color: #4d3f33; } .item .ask::before { content: 'Pedilo así: '; font: 600 11px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); display: block; margin-bottom: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; margin-top: 6px; } .facts b { font-weight: 600; }
.optline { font-size: 14.5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0d5c3; } .optline .st { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; } .optline .st.V { color: var(--olive); } .optline .st.L { color: #a06e13; } .optline .st.N { color: var(--terra); } .optline small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.trap { margin-top: 10px; font-size: 14.5px; background: #fdf1ea; border-radius: 10px; padding: 9px 11px; color: #6d3a28; } .trap b { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.budget { margin-top: 26px; background: var(--walnut); color: #f4eadb; border-radius: var(--r-md); padding: 22px 20px; background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px); } .budget h3 { color: #fff; } .budget .range { font: 400 clamp(30px, 8vw, 44px)/1.1 var(--serif); color: #fff; margin: 8px 0 4px; } .budget .range small { font-size: .5em; color: var(--kraft); } .budget .range { font-size: clamp(24px, 6.4vw, 36px); } .budget .condtotal { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(228,195,179,.5); color: #f4d9cc; font-weight: 600; } .budget p { font-size: 15px; color: #e6d8c3; } .budget .bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.12); margin: 14px 0; overflow: hidden; display: flex; } .budget .bar i { display: block; height: 100%; } .budget .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #e6d8c3; } .budget .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* cierre */
/* a panel is a flat section: a hairline above, the page as its background */
.panel { padding: 22px 0 6px; border-top: 1px solid var(--hair); } .panel ol, .panel ul { padding-left: 22px; margin: 10px 0; } .panel li { margin-bottom: 8px; }
.finales { display: grid; gap: 10px; } @media (min-width: 760px) { .finales { grid-template-columns: 1fr 1fr; } } .finales div { border-top: 1px solid var(--hair); padding: 14px 0; } .finales b { font: 400 18px/1.2 var(--serif); display: block; margin-bottom: 4px; }
.signature { font: italic 400 26px/1 var(--serif); color: var(--olive-d); margin-top: 14px; }
.dlbox { margin-top: 40px; background: linear-gradient(180deg, #eef0e3, #e4e8d4); border-radius: var(--r-md); padding: 24px 20px; text-align: center; } .dlbox h2 { margin-bottom: 8px; } .dlbox .btn { margin-top: 12px; }
.toast { display: flex; gap: 14px; align-items: center; width: max-content; max-width: calc(100vw - 32px); position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--walnut); color: #fff; padding: 8px 8px 8px 16px; border-radius: var(--r-md); font-size: 15px; line-height: 1.3; z-index: 60; box-shadow: var(--elev-sheet); border: 1px solid var(--hair-dark); }
.toast:not(:has(.toast-act)) { padding: 12px 16px; }
.toast-act { background: none; border: 0; color: var(--gold-l); font: 600 15px/1 var(--sans); min-height: 40px; padding: 0 8px; white-space: nowrap; flex: none; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .toast { bottom: 40px; } }

/* el rescate (la hoja; el botón vive en la cabecera) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(31,21,15,.55); display: flex; align-items: flex-end; justify-content: center; } .sheet[hidden] { display: none; }
.sheet-in { background: var(--cream); width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; border-radius: var(--r-md) var(--r-md) 0 0; padding: 22px 18px 40px; box-shadow: var(--elev-sheet); animation: up .28s ease both; } @keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet { align-items: center; } .sheet-in { border-radius: var(--r-md); } }
/* La campanita: en el celular sube desde abajo como cualquier hoja; de 760 px para arriba entra desde la derecha, 380 px. */
@media (min-width: 760px) {
  .sheet.side { align-items: stretch; justify-content: flex-end; }
  .sheet.side .sheet-in { width: 380px; max-width: 380px; height: 100%; max-height: 100%; border-radius: 0; padding: 22px 18px 32px; animation: inright .28s ease both; }
}
@keyframes inright { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; } .close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper); font-size: 22px; line-height: 1; flex: none; }
.rescue { border-top: 1px solid var(--hair); } .rescue:last-of-type { border-bottom: 1px solid var(--hair); } .rescue summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 0; font: 600 16.5px/1.35 var(--sans); position: relative; min-height: 56px; } .rescue summary::-webkit-details-marker { display: none; } .rescue summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--serif); color: var(--terra); } .rescue[open] summary::after { content: '–'; }
.rescue .in { padding: 0 0 16px; font-size: 15.5px; } .rescue .in b { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); display: block; margin: 10px 0 4px; }
.rescue.mine summary { padding-left: 12px; border-left: 3px solid var(--olive); } .tagmine { font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: 4px; }
.noscript { padding: 40px 0; }
@media print { .top, .ribbon, .subnav, .actions { display: none !important; } body { background: #fff; } }

/* ---------- la cuenta dentro de la herramienta ---------- */
h2 .mira { display: block; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.progress-bar { position: relative; margin-top: 14px; height: 30px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); overflow: hidden; }
.progress-bar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: var(--r-pill); transition: width .3s; }
.progress-bar span { position: relative; display: block; line-height: 30px; text-align: center; font: 600 12.5px/30px var(--sans); letter-spacing: .06em; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.offer, .install { margin-top: 28px; background: var(--kraft); background-image: linear-gradient(0deg, rgba(255,255,255,.22), rgba(255,255,255,.22)), repeating-linear-gradient(0deg, transparent 0 27px, rgba(58,42,30,.07) 27px 28px); border: 1px solid var(--kraft-d); border-radius: var(--r-md); padding: 18px; box-shadow: var(--elev); }
.offer h3 { margin: 4px 0 8px; } .offer p, .install p { font-size: 15.5px; margin-bottom: 0; } .offer .actions, .install .actions { margin-top: 14px; }
.btn.small { min-height: 46px; padding: 10px 18px; font-size: 15px; width: auto; }
.btn.soon { background: #e7dfd2; color: var(--muted); box-shadow: none; cursor: default; }
.install { display: grid; gap: 12px; } @media (min-width: 760px) { .install { grid-template-columns: 1fr auto; align-items: center; } }
.consent h2 { font-size: clamp(23px, 5.6vw, 30px); } .consent .actions { margin-top: 18px; }
.step h4 { display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; } .step h4 .ttl { flex: 1; padding-top: 10px; }
.tick { flex: none; position: relative; width: 44px; height: 44px; margin: -2px 0 0 -4px; cursor: pointer; display: grid; place-items: center; }
.tick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tick span { display: block; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--olive); background: var(--paper); box-sizing: border-box; }
.tick input:checked + span { animation: tickin .3s ease-out both; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/24px no-repeat; }
.tick input:focus-visible + span { outline: 3px solid rgba(197,139,42,.5); }
@keyframes tickin { from { transform: scale(.7); } to { transform: scale(1); } }
.item input { width: 44px; height: 44px; border-radius: 10px; } .item { grid-template-columns: 48px 1fr; } .item input:checked::after { left: 15px; top: 8px; width: 10px; height: 20px; }
.step.done > h4, .step.done > .what { opacity: .62; }
.rescate-page .rescue:first-of-type { margin-top: 16px; } .rescate-page .rescue + .rescue { margin-top: 0; }
.foot-write { margin: 30px 0 0; padding-top: 18px; border-top: 1px dashed #d8cdbd; font-size: 15.5px; color: var(--muted); } .foot-write a { color: var(--olive-d); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

/* Noelia al lado de ella */
.bubble { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: start; margin: 18px 0; }
.bubble-body { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md) var(--r-md) var(--r-md) var(--r-sm); padding: 14px 18px 12px; box-shadow: var(--elev); min-height: 48px; }
.bubble .line { margin: 0; font-size: 16.5px; line-height: 1.55; color: #374151; } .bubble .who { display: block; margin-top: 6px; font: italic 400 14px/1 var(--serif); color: var(--olive-d); }
.bubble-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; align-self: start; }
.bubble.will-type .line, .bubble.will-type .who { opacity: 0; } .bubble.will-type.shown .line, .bubble.will-type.shown .who { opacity: 1; animation: in .4s ease-out both; }
.bubble .typing { position: absolute; left: 18px; top: 16px; display: none; gap: 5px; align-items: center; } .bubble.will-type:not(.shown) .typing { display: flex; }
.bubble .typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a8b78; display: inline-block; animation: typing 1.2s ease-in-out infinite; } .bubble .typing i:nth-child(2) { animation-delay: .2s; } .bubble .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(.7); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.session .bubble { margin: 4px 0 14px; grid-template-columns: 40px 1fr auto; gap: 10px; } .session .bubble .portrait { width: 40px; height: 40px; } .session .bubble .line { font-size: 15px; } .session .bubble-body { padding: 12px 14px 10px; }

/* preguntas de un toque */
.tapq { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); } .tapq .eyebrow { margin-bottom: 8px; }
.tq { border-top: 1px dashed var(--hair); } .tq summary { list-style: none; cursor: pointer; padding: 12px 40px 12px 0; min-height: 48px; display: flex; align-items: center; font: 600 15.5px/1.35 var(--sans); color: var(--walnut); position: relative; }
.tq summary::-webkit-details-marker { display: none; } .tq summary::after { content: '+'; position: absolute; right: 4px; top: 9px; font: 400 24px/1 var(--serif); color: var(--brown); } .tq[open] summary::after { content: '–'; }
.tq .in { padding: 0 0 12px; font-size: 15px; } .tq .in p { margin-bottom: 8px; } .tq .in .btn { margin: 4px 0 8px; }

/* la tapa se arma antes de bajar */
.pdfsheet .minicover { position: relative; background: var(--walnut); background-image: radial-gradient(120% 100% at 30% 0%, #4a3521, #261910 78%); color: #f4eadb; border-radius: var(--r-md); padding: 22px 20px; margin: 12px 0 14px; display: grid; grid-template-columns: 1fr 96px; gap: 14px; min-height: 180px; overflow: hidden; }
.minicover .mc-title { animation: coverin .5s ease-out both; } .minicover .mc-title .eyebrow { color: var(--kraft); } .minicover .mc-title b { display: block; font: 400 26px/1.15 var(--serif); color: #fff; } .minicover .mc-title small { display: block; margin-top: 6px; font-size: 13.5px; color: #e6d8c3; }
.minicover .mc-polaroid { width: 96px; background: #fff; padding: 5px 5px 16px; transform: rotate(-4deg); box-shadow: var(--elev); border-radius: 3px; animation: coverin .5s ease-out .15s both; } .minicover .mc-polaroid .ph { aspect-ratio: 1; background: #efe6d8 center/cover no-repeat; display: block; }
.minicover .mc-foot { grid-column: 1 / -1; font: italic 400 13px/1 var(--serif); color: var(--kraft); animation: coverin .5s ease-out .3s both; }
@keyframes coverin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- onboarding: one question per screen ---------- */
.onb { padding-top: 26px; } .onb h2 { margin-top: 4px; } .onb .lead { margin: 10px 0 0; } .onb .form { margin-top: 22px; } .onb .options { margin-top: 22px; } .onb .onb-pieces { margin-top: 22px; }
.onb .got { margin: 14px 0 0; font: italic 400 19px/1.35 var(--serif); color: var(--olive-d); }
/* the foot (back · «Lo hago después») stays in view whatever the screen holds: never a trap below the fold */
/* La primera vez que se nombra su tiempo: una línea bajo la ficha, al terminar la bienvenida. */
.onb-tiempo { margin: 14px 0 0; padding-left: 12px; border-left: 3px solid var(--gold); font-size: 15px; color: #4d3f33; }
.onb-foot { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px -18px 0; padding: 8px 18px calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(250,246,241,0), var(--cream) 30%); } .onb-foot .btn.link { width: auto; }
.onb .grid.g4.onb-pieces { grid-template-columns: repeat(4, 1fr); gap: 8px; } .onb .onb-pieces .opt.piece { min-height: 96px; padding: 6px 4px 10px; } .onb .onb-pieces .opt.piece .art { width: 58px; height: 58px; } .onb .onb-pieces .opt.piece b { font-size: 13.5px; }
@media (min-width: 760px) { .onb .onb-pieces .opt.piece .art { width: 86px; height: 86px; } .onb .onb-pieces .opt.piece b { font-size: 15px; } }
.onb .bubble { margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; } .field .chips { margin-top: 10px; } .chips + .small { margin-top: 14px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid #ded3c2; background: var(--paper); font: 600 16px/1.2 var(--sans); color: var(--walnut); cursor: pointer; transition: border-color .15s, background .15s; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip:has(input:checked), .chip.on, .chip[aria-pressed="true"] { border-color: var(--olive); background: #f3f4ea; outline: 2px solid var(--olive); outline-offset: -2px; }
.chip:has(input:focus-visible), .chip:focus-visible { outline: 3px solid rgba(197,139,42,.5); outline-offset: 2px; }
.chip:has(input:checked)::before, .chip.on::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); margin-right: 8px; }
.onb .grid.g4 { gap: 12px; }

/* ---------- the rating sheet: five stars, one tap ---------- */
.stars { display: flex; gap: 6px; justify-content: center; margin: 10px 0 6px; }
.star { width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; padding: 0; display: grid; place-items: center; color: #c9bfb0; transition: color .15s, transform .15s; }
.star svg { width: 34px; height: 34px; fill: currentColor; stroke: none; } .star.on { color: var(--gold); } .star:hover { color: var(--gold); transform: scale(1.05); } .star[disabled] { cursor: default; transform: none; }
.rating-more { width: 100%; margin: 0; font: italic 400 18px/1.4 var(--serif); color: var(--walnut); }
.sheet-in.rating .actions { flex-direction: column; align-items: stretch; }

/* ---------- todos mis muebles ---------- */
.muebles .filters { margin-top: 18px; } .chip small { font-size: 12.5px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.muebles .pieces { margin-top: 18px; }
.piece-row .row-actions { display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .piece-row .row-actions .btn.small { min-height: 42px; padding: 8px 14px; font-size: 14px; width: auto; } .piece-row .row-actions .btn.link { min-height: 42px; }
.piece-row .meta span { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 4px; } .stamp.small { font-size: 9.5px; padding: 4px 6px 3px; transform: none; }
.piece-row.st-archivado .pic, .piece-row.st-archivado .meta b { opacity: .6; }
.see-all { margin: 14px 0 0; font-size: 15.5px; } .see-all a { color: var(--olive-d); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
/* los fundamentos, en una hoja: los mismos de su guía */
.fundamento { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--hair); }
.fundamento .n { font: italic 400 26px/1 var(--serif); color: var(--gold); }
.fundamento b { display: block; font: 400 20px/1.25 var(--serif); color: var(--walnut); margin-bottom: 6px; }
.fundamento p { font-size: 16px; margin-bottom: 4px; }
@media (max-width: 480px) { .piece-row { grid-template-columns: 56px 1fr; } .piece-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; } }
/* the one-time note above the sessions */
.recipe-note { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin: 0 0 14px; padding: 12px 8px 12px 14px; border-left: 3px solid var(--gold); background: #fbf3e2; border-radius: 0 12px 12px 0; font-size: 15px; color: #4d3f33; } .recipe-note .bubble-close { margin: -6px -4px 0 0; }
/* Su tiempo: la pregunta, sus dos botones y la semana. En la mesa es un bloque chico sobre su propia línea, nunca una tarjeta. */
.tiempo { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair-dark); max-width: 560px; }
.tiempo-ask { margin: 0; font-size: 16.5px; color: #3a2a1e; }
.tiempo-done { margin: 0 0 2px; }
.tiempo-week { margin: 8px 0 0; font-size: 15px; color: var(--olive-d); } .tiempo-week b { font: 400 20px/1 var(--serif); color: var(--walnut); }
.tiempo-actions { display: flex; gap: 8px 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tiempo-edu { position: relative; margin: 10px 0 0; padding: 9px 30px 9px 12px; border-left: 3px solid var(--gold); background: #fbf3e2; border-radius: 0 10px 10px 0; font-size: 14.5px; color: #4d3f33; }
.tiempo-edu .x { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border: 0; background: none; color: #8a7458; font-size: 19px; line-height: 1; cursor: pointer; }
/* Andando: el anillo a la izquierda, «Terminé antes» al lado, y la semana debajo. */
.tiempo.running { display: grid; grid-template-columns: 86px 1fr; gap: 6px 14px; align-items: center; }
.tiempo.running .ring { position: relative; width: 86px; height: 86px; }
.tiempo.running .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .track { stroke: rgba(46, 32, 24, .14); }
/* La vuelta completa son 2πr ≈ 326.7. `--turn` es la parte de los veinte minutos que ya pasó; `--span` lo que dura y `--spent`
   (negativo) lo ya transcurrido, para que el anillo siga donde iba aunque ella recargue la pantalla. */
.ring .fill { stroke: var(--terra); stroke-dasharray: 326.73; stroke-dashoffset: calc(326.73 * (1 - var(--turn, 0))); animation: ringfill var(--span, 1200s) linear forwards; animation-delay: var(--spent, 0s); }
@keyframes ringfill { from { stroke-dashoffset: 326.73; } to { stroke-dashoffset: 0; } }
.ring-n { position: absolute; inset: 0; display: grid; place-items: center; font: 400 21px/1 var(--serif); color: var(--walnut); font-variant-numeric: tabular-nums; }
.tiempo.running .tiempo-week { grid-column: 1 / -1; }
.tiempo.running .tiempo-actions { margin-top: 2px; }
@media (min-width: 900px) { .tiempo { margin-top: 6px; } }
/* Anotar tiempo: cuatro medidas a un toque y, si no, su propio número. */
.minute-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } .minute-picks .btn.small { width: auto; }
.minute-other { margin-top: 16px; } .minute-other input { max-width: 160px; }
/* Menos movimiento: el arco se dibuja donde está y no se anima; el número sigue bajando. */
@media (prefers-reduced-motion: reduce) { .ring .fill { animation: none; } }
/* Avisos al celular: asked on her recipe, once, with the reason in one line. */
.push-ask { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--elev); display: grid; gap: 10px; }
.push-ask p { margin: 0; font-size: 15.5px; } .push-ask .actions { margin: 0; flex-direction: row; flex-wrap: wrap; }

/* ---------- promociones (BRIEF-38): la publicidad propia dentro de la receta, una publicación de feed a todo el ancho ---------- */
.promo.feed { margin: 18px -18px 8px; background: #fff; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--ink); font-family: var(--sans); animation: in .35s ease both; }
@media (min-width: 760px) { .promo.feed { margin: 18px 0 8px; border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--elev); } }
.promo-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px 8px; }
.promo-head .portrait { width: 44px; height: 44px; box-shadow: none; border-color: var(--hair); }
.promo-who b { display: block; font: 600 15px/1.25 var(--sans); color: var(--walnut); } .promo-who small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.promo-menu { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 20px; letter-spacing: 1px; border-radius: 50%; }
.promo-menu:hover, .promo-menu:focus-visible { background: var(--cream-2); color: var(--walnut); }
.promo-why { margin: 0 16px 10px; padding: 10px 12px; border-radius: 10px; background: #fbf3e2; font-size: 14px; color: #4d3f33; }
.promo-body { margin: 0; padding: 0 16px 12px; font-size: 16px; line-height: 1.5; }
.promo-media { position: relative; background: var(--walnut); aspect-ratio: 4 / 5; overflow: hidden; }
.promo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-media .art { position: absolute; inset: 14% 20%; width: auto; height: auto; }
.promo-tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #24180f; font: 600 13px/1 var(--sans); padding: 7px 10px; border-radius: 6px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.promo-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: rgba(46,32,24,.72); border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; color: #fff; text-decoration: none; }
.promo-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.promo-play:hover, .promo-play:focus-visible { background: rgba(46,32,24,.9); }
.promo-link { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--cream-2); border-top: 1px solid var(--hair); }
.promo-link-txt { min-width: 0; }
.promo-link-txt small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.promo-link h3 { font: 600 16px/1.25 var(--sans); color: var(--walnut); margin: 0 0 4px; }
.promo-price { margin: 0; font-size: 14.5px; } .promo-price s { color: var(--muted); } .promo-price b { font-size: 17px; color: var(--walnut); }
.promo-link .btn.small { min-height: 44px; padding: 8px 18px; }
.promo-fine { margin: 0; padding: 10px 16px 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.promo-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--hair); }
.promo-actions { display: flex; justify-content: space-around; padding: 4px 8px; }
.promo-act { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 10px; background: none; border: 0; color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; border-radius: var(--r-sm); }
.promo-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promo-act:hover, .promo-act:focus-visible { background: var(--cream-2); }
.promo-off { margin: 12px 0 4px; font: italic 400 15px/1.4 var(--serif); color: var(--muted); }
