/* OakPlans · hoja de estilo única (20-11-2026).
   Base: la app de Crochet (Zona-Shopify-Crochet/APP-WEB/public/css/app.css), que sale de la de Freidora y ya funciona con
   clientas de 55-75 años. Marca OakPlans: crema #FBF5EA, tinta #1F1710, naranja madera #E8932C (solo como acento: con texto
   blanco no pasa AA), acción #A9520F (blanco 5,4:1), verde bosque #1D3529 / hecho #2F6B45.
   Para Gérard (66): letra «Grand» por defecto (23 px), toques de 56 px o más, una acción principal por pantalla,
   icono + texto, sin gestos escondidos, sin etiquetas que no ayuden al siguiente paso (orden del dueño).
   Movimiento solo transform/opacity, siempre con prefers-reduced-motion. */
:root {
  --paper: #FBF5EA;
  --card: #FFFDF8;
  --cream-2: #F3EADB;
  --ink: #1F1710;
  --ink-2: #5C4A3A;
  --line: #E8DCC8;
  --line-2: #D5C3A8;
  --wood: #E8932C;
  --act: #A9520F;
  --act-deep: #8A420B;
  --act-wash: #F8E7D3;
  --forest: #1D3529;
  --done: #2F6B45;
  --done-wash: #E3EFE5;
  --honey-wash: #F8EDD6;
  --red: #B5371F;
  --shadow: 0 1px 0 rgba(60, 40, 20, .05), 0 10px 24px -16px rgba(60, 40, 20, .4);
  --r-card: 20px; --r-btn: 16px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --gut: 18px;
  --serif: 'Gelasio', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tab-h: 76px;
  color-scheme: light;
}
html { font-size: 20px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--paper); }
html[data-size="2"] { font-size: 23px; }
html[data-size="3"] { font-size: 26px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; min-height: 100vh; min-height: 100svh; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--act); }
button, input { font: inherit; color: inherit; }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn, .tab, .row, .tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
b { font-weight: 800; }
.h1 { font-size: 1.6rem; line-height: 1.12; margin: 4px 0 14px; }
.h2 { font-size: 1.2rem; line-height: 1.2; margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.narrow { max-width: 620px; margin: 0 auto; }

/* ---------- marco ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 245, 234, .94); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1100px; margin: 0 auto; height: 62px; padding: 0 calc(var(--gut) - 6px); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand img { display: block; height: 38px; width: auto; } /* logo de la bellota (TIENDA/MARCA/LOGO, elegido por Unax el 20-11) */
.hbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; min-width: 52px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--act); text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; cursor: pointer; }
.hbtn svg { width: 26px; height: 26px; }
.hbtn:active { background: var(--act-wash); }
.hgear { color: var(--ink); justify-content: center; padding: 0; width: 56px; }
.hgear svg { width: 30px; height: 30px; }
.view { display: block; max-width: 1100px; margin: 0 auto; padding: 14px var(--gut) 36px; outline: none; }
.view.has-bar { padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--card); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 800; border-radius: 16px; }
.tab svg { width: 28px; height: 28px; }
.tab.on { color: #fff; background: var(--act); }
.tab:active { transform: scale(.97); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 20px; border-radius: var(--r-btn); border: 2px solid transparent; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: transform 140ms var(--ease), background-color 160ms ease; }
.btn svg { width: 26px; height: 26px; }
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; min-height: 64px; font-size: 1.05rem; }
.btn.primary { background: var(--act); color: #fff; box-shadow: 0 3px 0 var(--act-deep); }
.btn.primary:active { background: var(--act-deep); transform: translateY(2px); box-shadow: 0 1px 0 var(--act-deep); }
.btn.ghost { background: var(--card); color: var(--act); border-color: var(--line-2); }
.btn.ghost:active { background: var(--act-wash); }
.btn.text { background: transparent; color: var(--act); text-decoration: underline; text-underline-offset: 4px; min-height: 52px; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: var(--act-deep); }
  .btn.ghost:hover, .hbtn:hover { background: var(--act-wash); }
}

/* ---------- piezas comunes ---------- */
.block { margin-top: 26px; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.bar { display: block; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--done); border-radius: 99px; transform-origin: left center; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-weight: 700; }
.meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pcard .meta span { white-space: normal; min-width: 0; }
.pcard > span:last-child { min-width: 0; }
button.dib { min-height: 48px; }
.meta svg { width: 22px; height: 22px; color: var(--act); }
.note { background: var(--honey-wash); border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; }
.note svg { width: 26px; height: 26px; color: #8A6512; margin-top: 2px; }
.ok-line { display: flex; gap: 10px; align-items: center; color: var(--done); font-weight: 800; }
.ok-line svg { width: 26px; height: 26px; }

/* dibujo con letras, cotas y tornillos encima (la app los dibuja: crecen con la pantalla) */
.dib { position: relative; display: block; width: 100%; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.dib img, .dib svg { display: block; width: 100%; height: auto; }
.dib svg { position: absolute; inset: 0; height: 100%; pointer-events: none; }
.ov .et circle { fill: var(--ink); }
.ov .et text { fill: #fff; font: 800 52px var(--sans); text-anchor: middle; dominant-baseline: central; }
.ov .co line { stroke: var(--red); stroke-width: 5; }
.ov .co line.ref { stroke-width: 2.5; stroke-dasharray: 10 8; }
.ov .co text { fill: var(--red); font: 800 64px var(--sans); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--card); stroke-width: 14px; }
.ov .vi { stroke: #fff; stroke-width: 6; }
.zoomhint { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 253, 248, .92); box-shadow: var(--shadow); color: var(--ink); }
.zoomhint svg { width: 26px; height: 26px; }

/* ---------- inicio ---------- */
.greet { font-size: 1.6rem; line-height: 1.12; margin: 4px 0 14px; }
.hero { display: block; overflow: hidden; color: var(--ink); text-decoration: none; }
.hero .art { background: linear-gradient(180deg, var(--cream-2), var(--paper)); padding: 6px 10px 0; }
.hero-b { display: grid; gap: 12px; padding: 14px 16px 16px; }
.hero-b h2 { font-size: 1.35rem; line-height: 1.15; }
.prog { display: grid; gap: 6px; color: var(--ink-2); font-weight: 700; }

/* ---------- lista de planos ---------- */
.plist { display: grid; gap: 14px; }
.carnet + .carnet { margin-top: 26px; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.carnet-h { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 12px; color: var(--ink); }
.pcard { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; text-decoration: none; color: var(--ink); }
.pcard:active { transform: scale(.98); }
.pcard .art { background: var(--cream-2); border-radius: 14px; aspect-ratio: 4 / 3; overflow: hidden; padding: 6px; }
.pcard .art img { width: 100%; height: 100%; object-fit: contain; }
.pcard h2 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 6px; }
.pcard .meta { font-size: .85rem; }

/* ---------- ficha del plano ---------- */
.ficha-art { background: linear-gradient(180deg, var(--cream-2), var(--paper)); border-radius: var(--r-card); padding: 4px 8px 0; }
.ficha-t { font-size: 1.7rem; line-height: 1.1; margin: 12px 0 8px; }
.ficha-go { margin: 14px 0 12px; }
.ficha-intro { margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.fact { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 8px; text-align: center; display: grid; gap: 2px; }
.fact b { font-size: 1.05rem; line-height: 1.15; }
.fact span { color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.tiles { display: grid; gap: 10px; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 12px 16px; text-decoration: none; color: var(--ink); border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.tile:active { transform: scale(.98); }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--act-wash); color: var(--act); display: grid; place-items: center; flex: none; }
.tile .ic svg { width: 30px; height: 30px; }
.tile .tt { flex: 1; display: grid; min-width: 0; }
.tile .tt strong { font-size: 1.08rem; line-height: 1.2; }
.tile .tt small { color: var(--ink-2); font-size: .88rem; font-weight: 700; }
.tile > svg { width: 26px; height: 26px; color: var(--ink-2); }
.more-box { margin-top: 12px; background: var(--card); border-radius: 18px; padding: 2px 16px; box-shadow: var(--shadow); }
.more-box > summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; cursor: pointer; list-style: none; }
.more-box > summary::-webkit-details-marker { display: none; }
.more-box > summary::after { content: '+'; font-size: 1.5rem; color: var(--act); }
.more-box[open] > summary::after { content: '−'; }
.more-box[open] { padding-bottom: 14px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); font-weight: 700; } .kv dd { margin: 0; font-weight: 800; text-align: right; }

/* ---------- colores de colección y nivel (rediseño 21-11-2026, orden del dueño: «ideas en grande y colores más bonitos») ----------
   Un color por cuaderno, sacado del mundo de Gérard: Jardin verde salvia, Atelier azul de mono de trabajo, Maison ciruela (la madera clara resalta encima),
   Noël arándano. Todos pasan AA con texto blanco. El nivel va en una insignia con 3 barras y su nombre (el color nunca va solo). */
.c-jardin { --c: #2F6B4F; --c-wash: #E3EFE6; --c-wash-2: #C9E0D0; }
.c-atelier { --c: #24508F; --c-wash: #E4EBF6; --c-wash-2: #C8D6EE; }
.c-maison { --c: #6E3B5E; --c-wash: #F2E6EF; --c-wash-2: #E2CCDD; }
.c-noel { --c: #A3243A; --c-wash: #F8E3E6; --c-wash-2: #EEC3CB; }
/* Cadeaux à fabriquer (22-11-2026): bleu canard, distinto de los cuatro cuadernos; blanco encima 7:1 */
.c-cadeau { --c: #0F5E66; --c-wash: #E1F0F1; --c-wash-2: #C2E0E2; }
.carnet + .carnet { margin-top: 36px; }
.carnet-band { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 18px 12px 12px; border-radius: 22px; background: var(--c); color: #fff; font-size: 1.45rem; line-height: 1.15; }
.carnet-band .cic { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.carnet-band svg { width: 32px; height: 32px; }
.plist .pcard { grid-template-columns: 1fr; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.plist .pcard .art { border-radius: 0; aspect-ratio: 16 / 10; padding: 12px 18px 4px; background: linear-gradient(180deg, var(--c-wash, var(--cream-2)), var(--c-wash-2, var(--line))); }
.pcard .pc-b { display: grid; gap: 10px; align-content: start; padding: 14px 16px 18px; }
.plist .pcard h2 { font-size: 1.3rem; line-height: 1.15; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip, .lvl { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 10px; border-radius: 999px; font-weight: 800; font-size: .88rem; line-height: 1.15; background: var(--cream-2); color: var(--ink); }
.chip svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.lvl.l1 { background: #DDEFE0; color: #1E5631; }
.lvl.l2 { background: #FBEAC0; color: #744A00; }
.lvl.l3 { background: #F8DBD2; color: #962A14; }
.pips { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.pips i { width: 6px; border-radius: 2px; background: currentColor; opacity: .25; }
.pips i:nth-child(1) { height: 8px; } .pips i:nth-child(2) { height: 14px; } .pips i:nth-child(3) { height: 20px; }
.l1 .pips i:nth-child(1), .l2 .pips i:nth-child(-n+2), .l3 .pips i { opacity: 1; }
.chips.big { margin: 4px 0 2px; }
.chips.big .chip, .chips.big .lvl { min-height: 50px; font-size: 1rem; padding: 6px 18px 6px 12px; }
.chips.big .chip svg { width: 26px; height: 26px; }
.chips.big .pips { height: 24px; gap: 4px; } .chips.big .pips i { width: 7px; }
.chips.big .pips i:nth-child(1) { height: 10px; } .chips.big .pips i:nth-child(2) { height: 17px; } .chips.big .pips i:nth-child(3) { height: 24px; }
.ficha-art, .hero .art { background: linear-gradient(180deg, var(--c-wash, var(--cream-2)), var(--c-wash-2, var(--paper))); }
.ficha .tile .ic { background: var(--c-wash, var(--act-wash)); color: var(--c, var(--act)); }
@media (min-width: 1000px) { .view .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .plist .pcard .art { aspect-ratio: 16 / 9; } }

/* ---------- compras dentro de la app (ofertas.js, 21-11-2026) ----------
   Una oferta cada vez, grande y tranquila: dibujos de la colección sobre su color, título, una frase, precio en el botón,
   «Non merci» del mismo tamaño (Crochet) y «paiement unique» siempre visible. Candado dorado, nunca rojo ni parpadeos (Freidora). */
.hidden { display: none !important; }
.offer { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; display: grid; gap: 12px; padding: 0 0 18px; margin-bottom: 16px; }
dialog .offer { box-shadow: none; margin: 0; }
.off-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 18px 16px 8px; background: linear-gradient(180deg, var(--c-wash, var(--cream-2)), var(--c-wash-2, var(--line))); }
.off-art img { width: 34%; max-width: 190px; aspect-ratio: 4 / 3; object-fit: contain; }
.off-art img:nth-child(2) { width: 40%; max-width: 230px; margin: 0 -4%; position: relative; z-index: 1; }
.off-t { font-size: 1.4rem; line-height: 1.15; padding: 0 18px; }
.off-l, .off-x { margin: 0; padding: 0 18px; }
.off-x { font-weight: 800; color: var(--c, var(--act)); }
.off-btns { display: grid; gap: 10px; padding: 4px 18px 0; }
.offer .fine { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 0 18px; color: var(--ink-2); font-size: .85rem; font-weight: 700; }
.offer .fine svg { width: 22px; height: 22px; flex: none; color: var(--done); }
.pcard.locked .art img { opacity: .85; }
.chip.lockc { background: #F6E7B8; color: #5E4400; }
.chip.lockc svg { color: #8A6400; }
@media (min-width: 700px) {
  .off-btns { grid-template-columns: 2fr 1fr; }
  .off-btns:has(> :only-child) { grid-template-columns: minmax(0, 420px); }
  .carnet > .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; padding: 0; }
  .carnet > .offer .off-art { grid-row: 1 / span 5; height: 100%; align-items: center; }
  .carnet > .offer .off-t { padding-top: 18px; }
  .carnet > .offer .fine { padding-bottom: 18px; }
}

/* ---------- MODO TALLER (paso a paso) ---------- */
.view.work { max-width: 1100px; padding: 0 0 calc(104px + env(safe-area-inset-bottom)); }
.wtop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 4px) 6px 4px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wt { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 0 6px; border: 0; border-radius: 14px; background: transparent; font-weight: 800; font-size: 18px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.wt svg { width: 20px; height: 20px; color: var(--act); }
.wt:active { background: var(--act-wash); }
.segs { display: flex; gap: 3px; padding: 10px var(--gut) 0; }
.segs i { flex: 1; height: 8px; border-radius: 99px; background: var(--line); }
.segs i.done { background: var(--done); }
.segs i.cur { background: var(--wood); }
.wgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px var(--gut) 0; }
.wcard { padding: 14px 16px 18px; }
.wcard.in-next { animation: inNext 240ms var(--ease) both; }
.wcard.in-prev { animation: inPrev 240ms var(--ease) both; }
@keyframes inNext { from { transform: translateX(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inPrev { from { transform: translateX(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
.wlabel { font-size: 1.4rem; line-height: 1.15; margin: 4px 0 12px; }
.wart { border-radius: 16px; background: linear-gradient(180deg, var(--cream-2), var(--card)); overflow: hidden; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--cream-2); border-radius: 16px; margin: 0 0 10px; }
.seg2 button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 800; cursor: pointer; }
.seg2 button.on { background: var(--card); color: var(--act); box-shadow: var(--shadow); }
.need { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--cream-2); font-weight: 800; }
.chip .l { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.chip .dot { width: 22px; height: 22px; border-radius: 50%; margin: 0 4px 0 7px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line-2); }
.chip small { color: var(--ink-2); font-weight: 700; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps { gap: 8px; }
.row.tick { align-items: flex-start; min-height: 64px; font-size: 1.08rem; line-height: 1.45; font-weight: 400; }
.row.tick .box { margin-top: 2px; }
.row.tick .tx { display: block; }
.row.tick.ok .tx { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(47, 107, 69, .55); }
.steps b { color: var(--ink); }
.tip { margin-top: 12px; }
.wnav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 245, 234, .96); background: color-mix(in srgb, var(--paper) 96%, transparent); border-top: 1px solid var(--line); }
.wnav .btn.big { min-height: 68px; white-space: nowrap; }
.wnav #prev { width: auto; padding: 10px 16px; }

/* listas para ir tachando (compra y cortes) */
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); text-align: left; cursor: pointer; }
.row .box { width: 40px; height: 40px; border-radius: 12px; border: 3px solid #A8927A; display: grid; place-items: center; flex: none; background: #fff; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease); }
.row:active .box { transform: scale(.9); }
.row .box svg { width: 26px; height: 26px; color: #fff; opacity: 0; }
.row .n { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; min-width: 1.6em; text-align: center; color: var(--act); }
.row .tx { flex: 1; min-width: 0; display: grid; }
.row .tx strong { font-size: 1.05rem; line-height: 1.25; }
.row .tx small { color: var(--ink-2); font-size: .85rem; line-height: 1.35; }
.row.ok { border-color: var(--done); background: var(--done-wash); }
.row.ok .box { background: var(--done); border-color: var(--done); }
.row.ok .box svg { opacity: 1; }
.row.ok .tx strong { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-2); }
.row .lt { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.row .len { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.row.ok .lt { background: var(--ink-2); }

.row.later { border-style: dashed; }
.board { margin-top: 18px; min-width: 0; }
.tickhint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; animation: fadeIn 300ms ease both; }
.tickhint svg { width: 24px; height: 24px; }
.row.hint { border-color: var(--wood); }
.row.hint .box { border-color: var(--wood); animation: pulso 1.6s var(--ease) 6; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 147, 44, .55); } 60% { box-shadow: 0 0 0 12px rgba(232, 147, 44, 0); } }
.btn.primary.ready { animation: listo 1.4s var(--ease) 2; }
@keyframes listo { 0%, 100% { box-shadow: 0 3px 0 var(--act-deep), 0 0 0 0 rgba(169, 82, 15, .5); } 50% { box-shadow: 0 3px 0 var(--act-deep), 0 0 0 10px rgba(169, 82, 15, 0); } }
.row, .row .tx { min-width: 0; }
.row .tx strong { overflow-wrap: break-word; hyphens: auto; }
.board h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--ink-2); }
.cutbar { display: flex; height: 60px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line-2); background: repeating-linear-gradient(135deg, var(--cream-2) 0 8px, var(--paper) 8px 16px); }
.cutbar span { display: grid; place-items: center; border-right: 3px solid var(--ink); background: #EBD3A8; font-weight: 800; font-size: .9rem; line-height: 1.1; text-align: center; }
.cutbar span.ok { background: var(--done-wash); color: var(--done); }
.cutbar span.later { background: #F4E7D2; color: var(--ink-2); }
.counter-line { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 0; color: var(--ink-2); font-weight: 800; }

/* fin */
.fin { padding-top: 30px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.fin h1 { font-size: 2rem; }
.fin .art { width: min(420px, 90%); }
.fin-check { width: 76px; height: 76px; border-radius: 50%; background: var(--done); color: #fff; display: grid; place-items: center; animation: finPop 420ms var(--ease) 120ms both; }
.fin-check svg { width: 40px; height: 40px; }
@keyframes finPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ajustes */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segb { min-height: 84px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; cursor: pointer; padding: 6px; }
.segb b { font-family: var(--serif); color: var(--act); line-height: 1; }
.segb.sz1 b { font-size: 22px; } .segb.sz2 b { font-size: 28px; } .segb.sz3 b { font-size: 34px; }
.segb span { font-size: .85rem; }
.segb.on { border-color: var(--act); background: var(--act-wash); }
.mailbox { display: grid; gap: 10px; padding: 16px; }
.mailbox > svg { width: 40px; height: 40px; color: var(--act); }
.mailbox code { font: 800 1.05rem var(--sans); background: var(--cream-2); padding: 10px 12px; border-radius: 12px; overflow-wrap: anywhere; }

/* hojas */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 680px; max-height: 92vh; max-height: 92svh; border: 0; padding: 0; background: transparent; color: var(--ink); overflow: visible; animation: sheetUp 280ms var(--ease-drawer) both; }
dialog.sheet::backdrop { background: rgba(31, 23, 16, .5); animation: fadeIn 240ms ease both; }
dialog.sheet.out { animation: sheetDown 200ms var(--ease) both; }
.sheet-in { background: var(--card); border-radius: 24px 24px 0 0; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; }
.grab { width: 48px; height: 5px; border-radius: 99px; background: var(--line-2); justify-self: center; }
.sh-title { font-size: 1.35rem; line-height: 1.15; }
.sh-actions { display: grid; gap: 8px; margin-top: 4px; }
dialog.zoom { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--card); }
dialog.zoom::backdrop { background: var(--card); }
.zoom-in { min-height: 100%; display: grid; grid-template-rows: auto 1fr; }
.zoom-top { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: var(--card); z-index: 2; }
.zoom-body { padding: 0 8px 24px; display: grid; align-content: center; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: fadeIn 200ms ease both; }

/* gabarit para imprimir */
.gab-page { display: grid; gap: 16px; justify-items: center; }
.gab-page svg.real { background: #fff; }
.gab-page .h2 { font-family: var(--serif); font-size: 1.2rem; justify-self: stretch; }
.pgab { gap: 4mm; }
.pgab svg.real { max-width: 100%; height: auto; }
@media screen { .gab-page svg.real { width: 100%; height: auto; max-width: 620px; } }
@media print {
  body { background: #fff; }
  .top, .tabbar, .noprint, .wnav { display: none !important; }
  .view { padding: 0; }
  .gab-page { justify-items: start; }
}


/* ---------- IMPRIMER LE PLAN ---------- */
.view.print { max-width: 900px; padding: 0 var(--gut) 40px; }
.pintro { display: grid; gap: 12px; max-width: 620px; margin: 0 auto 22px; padding-top: calc(env(safe-area-inset-top) + 6px); }
.pintro .hbtn { justify-self: start; }
.pp { display: grid; gap: 18px; }
@media screen and (max-width: 699px) { .pp { display: none; } }
.ppage { background: #fff; color: #1F1710; border-radius: 8px; box-shadow: var(--shadow); padding: 12mm 13mm; aspect-ratio: 210 / 297; overflow: hidden; display: flex; flex-direction: column; font-size: 13.5pt; line-height: 1.35; }
.ppage h2 { font-family: var(--serif); }
.pbrand { font: 700 12pt var(--serif); color: #1D3529; letter-spacing: .02em; }
.pcover h1 { font-size: 30pt; line-height: 1.05; margin: 6mm 0 3mm; }
.pfacts { font-weight: 800; color: #5C4A3A; font-size: 12.5pt; }
.psep { color: #E8932C; margin: 0 .45em; font-weight: 800; }
.pcoverart { margin: 4mm 0 5mm; height: 132mm; display: grid; place-items: center; }
.pcoverart .dib { width: auto; max-width: 92%; }
.pcoverart .dib img { max-height: 132mm; width: auto; }
.pcols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9mm; }
.pcols h2, .ph { font-size: 17pt; margin-bottom: 3mm; }
.pchk { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.6mm; }
.pchk li { display: grid; grid-template-columns: 6.5mm minmax(0, 1fr); column-gap: 2.5mm; font-size: 13pt; line-height: 1.25; }
.pchk li small { display: block; color: #5C4A3A; font-size: 10.5pt; }
.pbox { width: 5mm; height: 5mm; border: .5mm solid #1F1710; border-radius: 1mm; display: inline-block; margin-top: .6mm; }
.plead { color: #5C4A3A; font-size: 12pt; margin: 0 0 4mm; }
.pboard { margin-bottom: 2.4mm; }
.pbh { font-weight: 800; font-size: 11.5pt; color: #5C4A3A; margin-bottom: 1.2mm; }
.ppage .cutbar { height: 9mm; border-width: .4mm; border-radius: 2mm; }
.ppage .cutbar span { font-size: 10.5pt; border-right-width: .6mm; background: #F2DFC0; }
.ptab { width: 100%; border-collapse: collapse; margin: 2mm 0 3mm; font-size: 12.5pt; }
.ptab td { padding: 1.15mm 2mm; border-bottom: .3mm solid #E8DCC8; vertical-align: middle; }
.ptab td:first-child { width: 8mm; }
.ptab .pl { width: 10mm; font-weight: 800; font-size: 14pt; }
.ptab .pq { width: 14mm; color: #5C4A3A; font-weight: 700; }
.ptab .pv { width: 24mm; text-align: right; font: 700 15pt var(--serif); }
.psteps { gap: 6mm; }
.pstep { flex: 1; display: flex; flex-direction: column; min-height: 0; border-top: .4mm solid #E8DCC8; padding-top: 4mm; }
.pstep:first-child { border-top: 0; padding-top: 0; }
.pstep h2 { font-size: 17pt; line-height: 1.15; display: flex; align-items: center; gap: 3mm; margin-bottom: 2mm; }
.pn { width: 9mm; height: 9mm; border-radius: 50%; background: #1F1710; color: #fff; display: grid; place-items: center; font: 800 12pt var(--sans); flex: none; }
.pdibs { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: center; height: 70mm; }
.pdibs.one { grid-template-columns: 1fr; }
.pdibs .dib { width: auto; max-width: 100%; max-height: 70mm; }
.pdibs .dib img { max-height: 70mm; width: auto; margin: 0 auto; }
.pneed { font-size: 12.5pt; font-weight: 700; color: #5C4A3A; margin: 2mm 0 1.5mm; }
.pneed b { display: inline-grid; place-items: center; width: 6mm; height: 6mm; border-radius: 50%; background: #1F1710; color: #fff; font-size: 9.5pt; margin-right: 1mm; }
.pstep ol { margin: 0; padding-left: 6.5mm; display: grid; gap: 1.4mm; font-size: 14pt; line-height: 1.3; }
.pstep ol li::marker { font-weight: 800; color: #A9520F; }
.pastuce { margin-top: 2mm; font-size: 11pt; color: #5C4A3A; font-style: italic; }
.pmt { margin-top: 8mm; }
.perr { margin: 0; padding-left: 6mm; display: grid; gap: 1.6mm; font-size: 12.5pt; }
.pverif { margin-top: auto; font-size: 10.5pt; color: #2F6B45; font-weight: 700; }
.ppage svg.real { display: block; margin: 0 auto 3mm; }
@media screen { .ppage svg.real { width: 100%; height: auto; max-width: 560px; } }
@media print {
  @page { size: A4; margin: 0; }
  html, body.printing { background: #fff !important; font-size: 16px; }
  body.printing .view.print { max-width: none; padding: 0; }
  body.printing .pp { display: block; }
  body.printing .ppage { box-shadow: none; border-radius: 0; width: 210mm; height: 297mm; aspect-ratio: auto; break-after: page; page-break-after: always; }
  body.printing .ppage:last-child { break-after: auto; }
  /* Las plantillas, siempre al 100 %: gabTiles ya las corta para que quepan en la hoja. */
  body.printing .pgab svg.real { max-width: none; flex: none; }
  .dib .zoomhint { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .tabbar { padding-left: max(14%, env(safe-area-inset-left)); padding-right: max(14%, env(safe-area-inset-right)); }
  .plist { grid-template-columns: 1fr 1fr; }
  .wgrid.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .wnav { grid-template-columns: 1fr 2fr; padding-left: max(var(--gut), calc((100% - 1100px) / 2 + var(--gut))); padding-right: max(var(--gut), calc((100% - 1100px) / 2 + var(--gut))); }
  dialog.sheet { bottom: 24px; }
  .sheet-in { border-radius: 24px; }
  .checks.two { grid-template-columns: 1fr 1fr; }
}
/* Dos columnas (dibujo | texto) solo con sitio de verdad: 900 px o más, o en horizontal desde 700 px. */
@media (min-width: 900px), (min-width: 700px) and (orientation: landscape) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
  .hero .art { padding: 14px; height: 100%; display: grid; align-items: center; }
  .hero-b { padding: 28px 26px; gap: 18px; }
  .hero-b h2 { font-size: 1.6rem; }
  .ficha { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .ficha-art { position: sticky; top: 84px; }
  .ficha-t { margin-top: 4px; font-size: 2rem; }
  .wgrid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding-top: 16px; align-items: start; }
  .wgrid.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .wside { position: sticky; top: 84px; }
}
/* Tablet en vertical (700-899 px): una columna centrada, como un móvil grande. */
@media (min-width: 700px) and (max-width: 899px) and (orientation: portrait) {
  .view { max-width: 720px; }
  .wgrid { max-width: 720px; margin: 0 auto; }
}
/* Ordenadores: el contenido no se estira; la app sigue pareciendo una app. */
@media (min-width: 1200px) {
  .view:not(.work):not(.print) { max-width: 1000px; }
}
/* Móvil en horizontal o pantallas muy bajas: barras más finas para que quepa el dibujo y el botón. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --tab-h: 58px; }
  .top-in { height: 50px; }
  .brand { font-size: 19px; }
  .brand img { height: 32px; }
  .tab { flex-direction: row; gap: 8px; min-height: 48px; }
  .tab svg { width: 24px; height: 24px; }
  .wtop { padding-top: calc(env(safe-area-inset-top) + 2px); padding-bottom: 2px; }
  .wnav { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .wnav .btn.big { min-height: 54px; }
  .view.work { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .wside, .ficha-art, .wslot { position: static; }
  .seg2 button { min-height: 48px; }
  .greet, .h1 { margin-bottom: 8px; }
  .greet { font-size: 1.3rem; margin-top: 0; }
  .hero-b { padding: 12px 16px; gap: 10px; }
  .hero-b h2 { font-size: 1.25rem; }
}
@media (max-width: 699px) {
  html[data-size="3"] .facts { grid-template-columns: 1fr; }
  html[data-size="3"] .seg3 { grid-template-columns: 1fr; }
  /* Con «Très grand», «Retour» se queda en la flecha para que «J'ai terminé» quepa entero. */
  html[data-size="3"] .wnav #prev span { display: none; }
  html[data-size="3"] .wnav #prev { padding: 10px 14px; }
}

/* Móviles pequeños (320-374 px, p. ej. iPhone SE): menos márgenes, «Retour» solo con la flecha. */
@media (max-width: 374px) {
  :root { --gut: 12px; }
  .wcard { padding: 12px 12px 16px; }
  .row { gap: 10px; padding: 10px; }
  .row .len { font-size: 1.1rem; }
  .row .tx strong { hyphens: auto; -webkit-hyphens: auto; }
  .wnav { gap: 8px; }
  .wnav #prev span { display: none; }
  .seg2 button { font-size: .9rem; }
  .ficha-t { font-size: 1.4rem; margin-top: 8px; }
  .ficha .meta { font-size: .85rem; gap: 4px 10px; }
  .ficha-go { margin: 10px 0; }
  .greet { font-size: 1.35rem; margin-bottom: 8px; }
  .hero-b { padding: 10px 14px 14px; gap: 8px; }
  .wnav #prev { padding: 10px 14px; }
  .hbtn { padding: 0 8px; font-size: 16px; }
  .wt { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .wcard.in-next, .wcard.in-prev, dialog.sheet, .fin-check { animation: fadeIn 160ms ease both; }
  .row.hint .box, .btn.primary.ready { animation: none; box-shadow: 0 0 0 4px rgba(232, 147, 44, .45); }
}

/* Nombres largos de otros países (Unterkonstruktion, geïmpregneerde…): la línea se parte, nunca empuja la pantalla */
.row .tx { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; hyphens: auto; }
.row .tx strong, .row .tx small { overflow-wrap: break-word; }
.ptab .pv { white-space: nowrap; }

/* Hojas a tamaño real también en pantalla (lo que se ve es lo que se imprime; ajustarHojas() en app.js) */
@media screen and (min-width: 700px) { .pp { justify-content: center; } .ppage { width: 210mm; height: 297mm; aspect-ratio: auto; } }
.ppage.fit1 { font-size: 12.5pt; }
.ppage.fit1 .pcoverart { height: 105mm; } .ppage.fit1 .pcoverart .dib img { max-height: 105mm; }
.ppage.fit1 .pchk li { font-size: 12pt; } .ppage.fit1 .pchk { gap: 1.8mm; }
.ppage.fit1 .pdibs { height: 60mm; } .ppage.fit1 .pdibs .dib, .ppage.fit1 .pdibs .dib img { max-height: 60mm; }
.ppage.fit1 .pstep ol { font-size: 13pt; } .ppage.fit1 .ptab { font-size: 11.5pt; } .ppage.fit1 .ptab td { padding: .8mm 2mm; }
.ppage.fit2 { font-size: 11.5pt; padding-top: 9mm; padding-bottom: 9mm; }
.ppage.fit2 .pcoverart { height: 80mm; } .ppage.fit2 .pcoverart .dib img { max-height: 80mm; }
.ppage.fit2 .pchk li { font-size: 11pt; } .ppage.fit2 .pchk li small { font-size: 9.5pt; }
.ppage.fit2 .pdibs { height: 52mm; } .ppage.fit2 .pdibs .dib, .ppage.fit2 .pdibs .dib img { max-height: 52mm; }
.ppage.fit2 .pstep ol { font-size: 12pt; } .ppage.fit2 .ptab { font-size: 10.5pt; } .ppage.fit2 .ptab .pv { font-size: 12.5pt; } .ppage.fit2 .ptab .pl { font-size: 12pt; }
.ppage.fit2 .ppage .cutbar, .ppage.fit2 .cutbar { height: 7mm; } .ppage.fit2 .pboard { margin-bottom: 1.4mm; }
.ppage.fit4 { height: auto !important; aspect-ratio: auto !important; min-height: 297mm; overflow: visible; }
@media print { body.printing .ppage.fit4 { height: auto; min-height: 297mm; } }
@media print { .pp { zoom: 1 !important; } }
.ppage.fit3 { font-size: 10.5pt; line-height: 1.25; }
.ppage.fit3 .ph, .ppage.fit3 .pcols h2 { font-size: 14pt; margin-bottom: 2mm; } .ppage.fit3 .plead { font-size: 10.5pt; margin-bottom: 2.5mm; }
.ppage.fit3 .cutbar { height: 6mm; } .ppage.fit3 .cutbar span { font-size: 9pt; } .ppage.fit3 .pbh { font-size: 10pt; margin-bottom: .6mm; } .ppage.fit3 .pboard { margin-bottom: 1mm; }
.ppage.fit3 .ptab td { padding: .5mm 2mm; } .ppage.fit3 .ptab .pv { font-size: 11pt; }
.ppage.fit3 .pcoverart { height: 64mm; } .ppage.fit3 .pcoverart .dib img { max-height: 64mm; } .ppage.fit3 .pchk { gap: 1mm; } .ppage.fit3 .pchk li { font-size: 10.5pt; }
.ppage.fit3 .pdibs { height: 46mm; } .ppage.fit3 .pdibs .dib, .ppage.fit3 .pdibs .dib img { max-height: 46mm; } .ppage.fit3 .pstep ol { font-size: 11pt; gap: .8mm; }

/* ---------- 23-11-2026 (orden del dueño): el botón siempre a la vista y una frase cada vez ----------
   Ficha: las fichas compactas y el botón pegado abajo mientras no se vea en su sitio, en cualquier aparato.
   Modo taller: título, dibujo (se queda con lo que sobra de la pantalla, ajustar() en app.js), LA frase que toca en grande
   y «C'est fait», todo sin bajar. Debajo, todas las frases (se tocan para verlas en grande), las piezas y el consejo. */
.ficha-chips { margin: 2px 0 0; gap: 6px; }
.ficha-go { position: -webkit-sticky; position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 6; margin: 14px 0 12px; white-space: nowrap; box-shadow: 0 3px 0 var(--act-deep), 0 12px 26px -8px rgba(60, 40, 20, .5); }
.ficha-go > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 374px) { .ficha-go { font-size: .95rem; padding: 10px 12px; gap: 6px; margin: 10px 0; } }
html[data-size="3"] .ficha-go { font-size: .92rem; padding-left: 12px; padding-right: 12px; }

.wetape { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px var(--gut) 0; }
.wetape > .wlabel { font-size: 1.2rem; line-height: 1.15; margin: 0; }
.wslot { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, var(--cream-2), var(--card)); }
.wslot .dib { margin: 0 auto; }
.vbtn { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 14px 6px 10px; border-radius: 14px; border: 2px solid var(--line-2); background: rgba(255, 253, 248, .95); color: var(--act); font-weight: 800; font-size: .85rem; cursor: pointer; box-shadow: var(--shadow); }
.vbtn svg { width: 22px; height: 22px; }
.vbtn.on { background: var(--act); border-color: var(--act); color: #fff; }
.frase { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; border-left: 6px solid var(--wood); }
.frase p { font-size: 1.1rem; line-height: 1.4; }
.frase .fn { flex: none; display: inline-flex; align-items: baseline; justify-content: center; min-width: 2.4em; padding: .45em .5em; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1; }
.frase .fn small { font-size: .8em; opacity: .8; margin-left: 1px; }
.wrest { display: grid; gap: 12px; padding: 6px 0 8px; }
.frases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fl { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-align: left; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.fl .fnum { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.fl .fnum svg { width: 20px; height: 20px; }
.fl.cur { border-color: var(--wood); background: var(--act-wash); }
.fl.ok .fnum { background: var(--done); border-color: var(--done); color: #fff; }
.fl.ok .tx { color: var(--ink-2); }
.fl:active { transform: scale(.98); }
.wetape .need, .wetape .tip { margin: 0; }
.wetape.in-next, .frase.in-next { animation: inNext 240ms var(--ease) both; }
.wetape.in-prev, .frase.in-prev { animation: inPrev 240ms var(--ease) both; }
.row.jump { min-height: 60px; }
.row.jump .box b { font-size: .9rem; color: var(--ink-2); }
.row.jump.cur { border-color: var(--wood); background: var(--act-wash); }
@media (min-width: 900px), (min-width: 700px) and (orientation: landscape) {
  .wetape { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "slot title" "slot frase" "slot rest"; grid-template-rows: auto auto 1fr; column-gap: 22px; align-items: start; max-width: 1100px; margin: 0 auto; padding-top: 14px; }
  .wetape > .wlabel { grid-area: title; font-size: 1.4rem; }
  .wslot { grid-area: slot; position: -webkit-sticky; position: sticky; top: 84px; }
  .frase { grid-area: frase; }
  .wrest { grid-area: rest; }
}
@media (min-width: 700px) and (max-width: 899px) and (orientation: portrait) { .wetape { max-width: 720px; margin: 0 auto; } }
@media (max-height: 520px) and (orientation: landscape) { .wslot { position: relative; top: auto; } }
@media (prefers-reduced-motion: reduce) { .wetape.in-next, .wetape.in-prev, .frase.in-next, .frase.in-prev { animation: fadeIn 160ms ease both; } }

/* <dialog> hecho a mano para el Safari de antes de iOS 15.4 (openSheet en app.js) */
dialog:not([open]) { display: none; }
dialog.dlg-fb { position: fixed; z-index: 100; display: block; }
dialog.dlg-fb.sheet { left: 0; right: 0; bottom: 0; top: auto; }
dialog.dlg-fb.zoom { top: 0; left: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dlg-bd { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; background: rgba(31, 23, 16, .5); animation: fadeIn 240ms ease both; }
.viejo { max-width: 560px; margin: 40px auto; padding: 20px; font-size: 1.05rem; line-height: 1.5; background: #FFFDF8; border-radius: 16px; }
/* Ficha: nivel, tiempo y madera en pastillas pequeñas, en una o dos líneas como mucho */
.ficha-chips .chip, .ficha-chips .lvl { min-height: 34px; padding: 3px 11px 3px 8px; font-size: .8rem; gap: 6px; border-radius: 999px; }
.ficha-chips .chip svg { width: 19px; height: 19px; }
.ficha-chips .pips { height: 16px; } .ficha-chips .pips i { width: 5px; }
.ficha-chips .pips i:nth-child(1) { height: 6px; } .ficha-chips .pips i:nth-child(2) { height: 11px; } .ficha-chips .pips i:nth-child(3) { height: 16px; }
.ficha-t { margin-bottom: 6px; }
/* Móviles bajos (iPhone SE, Android pequeños): la frase va antes del dibujo y todo un poco más justo, para que la
   instrucción se lea entera sin bajar y el dibujo ocupe lo que quede. */
@media (max-height: 680px) and (orientation: portrait) {
  .wetape { gap: 8px; padding-top: 8px; }
  .wetape > .wlabel { font-size: 1.02rem; }
  .wetape .frase { order: 1; padding: 10px 12px; }
  .wetape .wslot { order: 2; }
  .wetape .wrest { order: 3; }
  .frase p { font-size: 1rem; line-height: 1.35; }
  .frase .fn { font-size: .9rem; }
  .segs { padding-top: 8px; }
}
@media (max-width: 374px) {
  .wtop .hbtn span { display: none; }
  .wtop .hbtn { padding: 0 6px; }
}
@media (max-height: 680px) and (orientation: portrait) {
  .greet { font-size: 1.25rem; margin: 0 0 8px; }
  .hero-b { gap: 8px; padding: 10px 14px 14px; }
  .hero-b h2 { font-size: 1.2rem; }
}
/* Fotos reales (23-11): fondo blanco como la foto; sobre el color de la colección (ofertas) el blanco se funde */
.ficha-art.con-foto, .hero .art.con-foto, .pcard .art.con-foto, .plist .pcard .art.con-foto { background: #fff; }
/* Desde el 23-11 por la tarde las fotos son escenas (el mueble en su sitio): llenan su hueco, con esquinas redondeadas. */
.ficha-art.con-foto { padding: 0; overflow: hidden; }
.dib.foto img { border-radius: var(--r-card); }
.pcard .art.con-foto, .plist .pcard .art.con-foto { padding: 0; }
.pcard .art.con-foto img, .plist .pcard .art.con-foto img { object-fit: cover; }
.hero .art.con-foto { padding: 0; }
.off-art img { border-radius: 12px; }
.foto-grande { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; }
/* Portada: la escena llena todo el ancho de la tarjeta */
.hero .art.con-foto .dib.foto { width: 100% !important; max-width: 100%; }
.hero .art.con-foto .dib.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
/* 23-11 noche (orden del dueño: «que se vea en grande y todo el mueble, sin llenar toda la pantalla»): todas las fotos son 4:3
   recortadas con el mueble entero ocupando casi todo (PRODUCTO/FOTOS-REALES/escena-4x3). Los huecos son 4:3 también: nada se corta
   y no quedan bandas. En la ficha va a todo el ancho con tope del 45 % del alto de la pantalla (ajustar() en app.js). */
.pcard .art.con-foto, .plist .pcard .art.con-foto { aspect-ratio: 4 / 3; }
.pcard .art.con-foto img, .plist .pcard .art.con-foto img { display: block; width: 100%; height: 100%; }
.ficha-art.con-foto { display: flex; justify-content: center; background: transparent; border: 0; }
.ficha-art.con-foto .dib.foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
