/* Club de patrones «Crochet Amie» · hoja de estilo única.
   Dirección: la marca del dueño (crema, marrón, terracota, salvia) con aire de cuadernillo de labores. Terracota para
   la acción, marrón para el club, miel para los consejos, salvia para lo hecho. Titulares en Young Serif (cuadernillo de labores), texto en
   Atkinson Hyperlegible Next (hecha para baja visión). Lo memorable: el contador de vueltas, grande como el de verdad.
   Movimiento: solo transform/opacity, con prefers-reduced-motion. Hover solo con ratón. */
:root {
  /* Marca «Crochet Amie» (TIENDA/MARCA/crochet-amie): crema #FBF6EE, marrón #4A2E25, terracota #C8664A, salvia #7F9A7A.
     La terracota de los botones es un punto más oscura (#B0503A) para que el texto blanco pase AA (5,1:1). */
  --paper: #FBF6EE;
  --card: #FFFDF9;
  --cream-2: #F3EADC;
  --ink: #3B241D;
  --ink-2: #6B5248;
  --line: #E8DDCF;
  --line-2: #D6C7B5;
  /* Borrar la cuenta (acción sin vuelta atrás): rojo teja oscuro, texto blanco 7,7:1 y sobre crema 7,6:1 (AAA). */
  --danger: #9A2A1E;
  --danger-deep: #7A2017;
  --danger-wash: #F7E2DD;
  --brown: #4A2E25;
  --act: #B0503A;
  --act-deep: #92402D;
  --act-wash: #F6E4DB;
  --honey: #D9A441;
  --honey-deep: #B8862C;
  --honey-wash: #F8EDD6;
  --sage: #7F9A7A;
  --sage-wash: #E9EFE6;
  --heart: #C8664A;
  --done: #4E6B4A;
  --shadow: 0 1px 0 rgba(74, 46, 37, .05), 0 10px 24px -16px rgba(74, 46, 37, .38);
  --r-card: 20px; --r-btn: 14px; --r-img: 14px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --gut: 18px;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tab-h: 70px;
  color-scheme: light;
}
html { font-size: 18px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--paper); }
html[data-size="2"] { font-size: 20.5px; }
html[data-size="3"] { font-size: 23px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; min-height: 100svh; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--act); }
button, input, textarea { font: inherit; color: inherit; }
button, a, [role="button"], .tab { touch-action: manipulation; }
button, .btn, .tab, .col, .pcard, .choice, .segb, .abchip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
.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: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.h1 { font-size: 1.85rem; line-height: 1.12; letter-spacing: -.01em; margin: 6px 0 6px; }
.h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 12px; }
.sub { color: var(--ink-2); font-size: 1rem; }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.eyebrow { color: var(--ink-2); font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.narrow { max-width: 560px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- marco ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1100px; margin: 0 auto; height: 60px; 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; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 21px; white-space: nowrap; min-height: 48px; padding: 0 6px; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.brand .mark img { width: 100%; height: 100%; }
.brand { color: var(--brown); }
.hbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--act); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; cursor: pointer; }
/* La cabecera no crece con la letra «Heel groot» (el contenido sí): así nunca se parte en dos líneas. */

.hbtn svg { width: 24px; height: 24px; }
.hbtn:active { background: var(--act-wash); }
.hgear { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--ink); }
.hgear svg { width: 28px; height: 28px; }
.hgear:active { background: var(--act-wash); }
.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(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 4px max(4px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-right)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 14px; }
html[data-size="2"] .tab, html[data-size="3"] .tab { font-size: 14px; }
.tab svg { width: 28px; height: 28px; padding: 3px 12px; box-sizing: content-box; border-radius: 999px; transition: background-color 160ms ease; }
.tab.on { color: var(--act); }
.tab.on svg { background: var(--act-wash); }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab:active svg { transform: scale(.94); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: var(--r-btn); border: 2px solid transparent; font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: transform 140ms var(--ease), background-color 160ms ease; }
.btn svg { width: 24px; height: 24px; }
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; min-height: 60px; font-size: 1.1rem; }
.btn.primary { background: var(--act); color: #fff; }
.btn.primary:active { background: var(--act-deep); }
.btn.gold { background: var(--brown); color: var(--paper); }
.btn.gold:active { background: #34201A; }
.clubcard .btn.gold { background: var(--paper); color: var(--brown); }
.clubcard .btn.gold:active { background: var(--cream-2); }
.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: 3px; min-height: 48px; }
.btn.small { font-size: .95rem; min-height: 44px; }
.btn.icon { padding: 10px; min-width: 48px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:active { background: var(--danger-deep); }
.btn.ghost.danger { background: var(--card); color: var(--danger); border-color: var(--danger); }
.btn.ghost.danger:active { background: var(--danger-wash); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.busy { opacity: .7; }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: var(--act-deep); }
  .btn.danger:hover { background: var(--danger-deep); }
  .btn.ghost.danger:hover { background: var(--danger-wash); }
  .btn.ghost:hover, .hbtn:hover, .hgear:hover { background: var(--act-wash); }
  .pcard:hover .pimg img { transform: scale(1.02); }
  .col:hover, .dict a:hover, .choice:hover { border-color: var(--line-2); }
}

/* ---------- formularios ---------- */
.form { display: grid; gap: 8px; }
.form label { font-weight: 700; margin-top: 8px; }
input, textarea { width: 100%; min-height: 58px; font-size: max(16px, 1.1rem); padding: 12px 16px; border-radius: var(--r-btn); border: 2px solid var(--line-2); background: var(--card); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 4px var(--act-wash); }
.help { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; }
.form .btn.big { margin-top: 8px; }
.form.inline { display: flex; gap: 10px; }
.form.inline input { flex: 1; min-width: 0; }
.err { background: #FBE6E1; color: #7A2B1C; border-radius: 12px; padding: 12px 14px; font-weight: 700; }

/* ---------- entrar ---------- */
.login .view, .view.login { padding-top: calc(env(safe-area-inset-top) + 10px); }
.hello { text-align: center; max-width: 560px; margin: 2px auto 6px; }
.hello-art img { width: 100%; height: auto; }
.hello-art { width: min(260px, 70vw); margin: 0 auto 14px; }
.hello h1 { font-size: 1.7rem; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 8px; }
.sent svg { width: 56px; height: 56px; color: var(--act); margin: 18px auto 10px; }
.sent h1 { font-size: 1.7rem; margin-bottom: 10px; }
.sent .btn { margin-top: 22px; }
.spinner { width: 44px; height: 44px; margin: 48px auto 18px; border-radius: 50%; border: 4px solid var(--act-wash); border-top-color: var(--act); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- piezas comunes ---------- */
.block { margin-top: 28px; }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--act); border-radius: 99px; transform-origin: left center; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--act); }
.dots i.on { background: var(--act); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3; }
.badge svg { width: 14px; height: 14px; }
.badge.soon { background: #F1E9DE; color: var(--ink-2); }
.badge.lock { background: var(--act-wash); color: var(--act); }
.badge.new { background: var(--honey-wash); color: #6B4A14; }
.empty { color: var(--ink-2); padding: 24px 0; }
.emptybox { text-align: center; max-width: 460px; margin: 24px auto; display: grid; gap: 16px; justify-items: center; }
.emptybox > svg { width: 56px; height: 56px; color: var(--act); }
.note { background: var(--honey-wash); border-radius: 12px; padding: 8px 12px; }

/* tarjetas de patrón */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform 140ms var(--ease); }
.pcard:active { transform: scale(.98); }
.pimg { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream-2); }
.pimg img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms var(--ease); }
.pcard.is-soon .pimg img { opacity: .72; }
/* Etiqueta IA (orden del dueño): muy discreta pero legible, abajo a la derecha, 11 px fijos (no crece con «Heel groot»),
   texto oscuro al 70 % sobre crema translúcida, sin icono ni borde; no recibe toques. */
.aitag { position: absolute; right: 6px; bottom: 6px; z-index: 1; font-family: var(--sans); font-size: 11px; font-weight: 400; line-height: 1.35; letter-spacing: 0; color: rgba(59, 36, 29, .7); background: rgba(251, 246, 238, .82); padding: 1px 6px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.fin-art .aitag { right: auto; left: 8px; bottom: 8px; }
.vb { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); white-space: nowrap; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pbody { display: grid; gap: 6px; padding: 10px 12px 14px; }
.pbadges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.pbadges:empty { display: none; }
.ptitle { font-family: var(--serif); font-weight: 400; font-size: 1.06rem; line-height: 1.2; }
/* Títulos largos de una sola palabra (Pannenonderzetter, Weihnachtskugel…): se parten en vez de salirse de la tarjeta. */
.pbody { min-width: 0; }
.ptitle { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
h1, h2, .dtitle, .greet, .resume-txt h2, .wt strong { overflow-wrap: break-word; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: .84rem; }
.pmeta svg { width: 16px; height: 16px; }
.dayrow .pcard { flex-direction: row; }
.dayrow .pimg { width: 42%; flex: none; }
.dayrow .pbody { align-content: center; padding: 14px; }
.dayrow .ptitle { font-size: 1.2rem; }

/* ---------- inicio ---------- */
.greetbox { margin: 6px 0 18px; }
.greet { font-size: 1.95rem; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 6px; }
/* Fiesta real del mercado (perfiles.js › feesten): una línea tranquila, sin contador. */
.feest { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--ink); font-size: .98rem; font-weight: 700; }
.feest svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--done); }
.resume { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
.resume .eyebrow { margin: 0; }
.resume-row { display: flex; gap: 14px; align-items: center; }
.rimg { width: 92px; height: 92px; border-radius: var(--r-img); background: var(--cream-2); flex: none; object-fit: contain; }
.resume-txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; flex: 1; }
.resume-txt h2 { font-size: 1.3rem; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; }
.resume-txt p { color: var(--ink-2); }
.more { justify-self: center; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.clubcard { margin-top: 28px; background: var(--brown); color: var(--paper); border-radius: 22px; padding: 18px; display: grid; gap: 14px; }
.clubcard h2 { font-size: 1.35rem; margin-bottom: 4px; }
.clubcard p { color: #EBDDD3; }
.miniperks { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.miniperks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.miniperks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(251, 246, 238, .16); color: var(--paper); flex: none; margin-top: 1px; }
/* Regalo del día: una tarjeta tranquila (sin colores de alarma), con su botón secundario. */
.giftbox .eyebrow { margin-bottom: 8px; }
.gift { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; }
.gift-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-wash); color: var(--done); display: grid; place-items: center; flex: none; }
.gift-ic svg { width: 28px; height: 28px; }
.gift-t { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.gift-h { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.gift-u { color: var(--ink-2); font-size: .95rem; }
.gift-wait { color: var(--ink-2); font-size: .95rem; background: var(--cream-2); border-radius: 12px; padding: 8px 12px; }
.gift-t .btn { margin-top: 4px; }
.gifts { display: grid; gap: 12px; }
.giftbox .more { display: flex; justify-content: center; margin-top: 6px; }

/* ---------- biblioteca ---------- */
.cols { display: grid; gap: 10px; margin-top: 16px; }
.col { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; background: var(--card); border: 2px solid transparent; border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 140ms var(--ease); }
.col:active { transform: scale(.98); }
.col-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--act-wash); color: var(--act); display: grid; place-items: center; flex: none; }
.col-ic svg { width: 28px; height: 28px; }
.col-t { flex: 1; display: grid; min-width: 0; }
.col-t strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.col-t small { color: var(--ink-2); font-size: .9rem; }
.col-t small .soonc { color: var(--ink-2); font-weight: 400; }
.col > svg { width: 22px; height: 22px; color: var(--ink-2); }
.view > .h1 + .pgrid, .view > .h1 + .empty { margin-top: 14px; }

/* ---------- ficha ---------- */
.vbanner { background: var(--honey-wash); border-left: 5px solid var(--honey); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
/* minmax(0, 1fr): un título largo con letra grande se parte dentro de su columna en vez de ensanchar la rejilla. */
.dgrid { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.dart { position: relative; border-radius: 18px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.dimg { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.dmain { display: contents; }
.dhead { grid-column: 2; display: grid; gap: 8px; align-content: start; }
.dtitle { font-size: 1.6rem; line-height: 1.12; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
.dhead, .dmeta, .intro, .credit, .actions { min-width: 0; }
.favbtn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; transition: transform 140ms var(--ease); }
.favbtn svg { width: 22px; height: 22px; color: var(--heart); }
.favbtn.on { border-color: #EBC3B5; background: #FBEAE3; }
.favbtn:active { transform: scale(.96); }
.favbtn.pop svg { animation: pop 320ms var(--ease); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.dmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; }
.dmeta svg { width: 18px; height: 18px; }
.dmain > .note, .intro { grid-column: 1 / -1; }
.intro { font-size: 1.05rem; }
.credit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); font-size: .95rem; }
.badge.tested { background: var(--sage-wash); color: var(--done); font-size: .85rem; padding: 4px 10px; }
.actions { grid-column: 1 / -1; display: grid; gap: 12px; }
.pg { display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.lockbox, .soonbox { display: flex; gap: 12px; align-items: flex-start; background: var(--act-wash); border-radius: 16px; padding: 14px; }
.lockbox > svg, .soonbox > svg { width: 28px; height: 28px; color: var(--act); margin-top: 2px; }
.lockbox strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.mats { margin: 0; display: grid; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 4px 16px; }
.mrow { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow dt { color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.mrow dd { margin: 0; }
.abchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.abchip { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 14px 6px 8px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); cursor: pointer; text-align: left; transition: transform 140ms var(--ease); }
.abchip:active { transform: scale(.97); }
.abchip b { color: var(--act); }
.abs { width: 36px; height: 36px; border-radius: 10px; background: var(--act-wash); color: var(--act); display: grid; place-items: center; }
.abs .sym { width: 28px; height: 28px; }
.outline, .outline ol { list-style: none; margin: 0; padding: 0; }
.outline { display: grid; gap: 14px; }
.osec > strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; margin-bottom: 6px; }
.osec ol { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 14px; }
.osec ol li { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); }
.osec ol li:last-child { border-bottom: 0; }
.osec ol li span { flex: 1; }
.osec ol li small { color: var(--ink-2); font-size: .88rem; }
.osec li .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); margin: 0 7px; }
.osec li.done svg { width: 24px; height: 24px; color: var(--done); }
.osec li.done span { color: var(--ink-2); }

/* ---------- MODO PASO A PASO ---------- */
.view.work { max-width: 1100px; padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
.wtop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wt { flex: 1; min-width: 0; display: grid; text-align: center; line-height: 1.25; }
.wt strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt span { color: var(--ink-2); font-size: 14px; }
.segs { display: flex; gap: 3px; padding: 8px var(--gut) 0; }
.segs i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.segs i.done { background: var(--act); }
.segs i.cur { background: var(--honey); }
.segs i.done { background: var(--sage); }
.wgrid { display: grid; gap: 14px; padding: 12px var(--gut) 0; }
.wcard { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px 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; } }
.wsec { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.wlabel { font-size: 1.9rem; line-height: 1.1; letter-spacing: -.01em; margin: 2px 0 10px; }
.wtext { font-size: 1.32rem; line-height: 1.55; }
.ab { display: inline; font: inherit; font-weight: 700; color: var(--act); background: var(--act-wash); border: 0; border-radius: 8px; padding: 0 .28em; margin: 0 .04em; cursor: pointer; text-decoration: underline dotted 2px; text-underline-offset: 4px; }
.ab:active { background: #EFD3C7; }
.wend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 1.08rem; color: var(--done); }
.wend svg { width: 24px; height: 24px; }
.wtip, .wnote { margin-top: 12px; border-radius: 14px; padding: 10px 14px; font-size: 1.02rem; }
.wtip { background: var(--honey-wash); }
.wnote { background: var(--act-wash); }
/* El contador: un «cuentavueltas» de verdad. En el móvil, en una fila: [−] [ 12 de 36 ] [+]. */
.counter { display: grid; grid-template-columns: 76px 1fr 76px; grid-template-areas: 'lab lab lab' 'min win plus' 'now now now'; align-items: center; gap: 8px 10px; }
.clabel { grid-area: lab; font-weight: 700; color: var(--ink-2); }
.cwin { grid-area: win; display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 84px; padding: 6px 10px; border-radius: 20px; background: var(--card); border: 3px solid var(--act); box-shadow: inset 0 -6px 0 var(--act-wash); }
.cwin output { font-family: var(--serif); font-size: 3.1rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); min-width: 1.2em; text-align: center; }
.cof { color: var(--ink-2); font-weight: 700; font-size: 1.05rem; }
.cbtns { display: contents; }
.cbtn { height: 84px; width: 76px; border-radius: 20px; border: 3px solid var(--act); display: grid; place-items: center; cursor: pointer; transition: transform 120ms var(--ease), background-color 120ms ease; }
.cbtn svg { width: 36px; height: 36px; }
.cbtn.minus { grid-area: min; background: var(--card); color: var(--act); }
.cbtn.plus { grid-area: plus; background: var(--act); color: #fff; }
.cbtn:active { transform: scale(.94); }
.cbtn.minus:active { background: var(--act-wash); }
.cbtn.plus:active { background: var(--act-deep); }
.cnow, .clast { grid-area: now; text-align: center; font-weight: 700; color: var(--ink-2); }
.clast { color: var(--done); }
.counter > .btn.text { grid-column: 1 / -1; justify-self: center; }
.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: color-mix(in srgb, var(--paper) 96%, transparent); border-top: 1px solid var(--line); }
.wnav .btn.big { min-height: 64px; }
.wnav #prev { width: auto; padding: 10px 16px; }
.hide-s { display: none; }
.fin { padding-top: 40px; display: grid; gap: 14px; justify-items: center; }
.fin h1 { font-size: 2.2rem; }
.fin-art { position: relative; width: 180px; height: 180px; border-radius: 28px; overflow: visible; margin-bottom: 8px; }
.fin-art img { width: 100%; height: 100%; object-fit: contain; background: var(--act-wash); border-radius: 28px; box-shadow: var(--shadow); }
.fin-check { position: absolute; right: -12px; bottom: -12px; width: 64px; height: 64px; border-radius: 50%; background: var(--done); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); animation: finPop 420ms var(--ease) 120ms both; }
.fin-check svg { width: 34px; height: 34px; }
@keyframes finPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 699px) {
  .view.work { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  .counter { position: fixed; z-index: 24; left: 0; right: 0; bottom: calc(85px + env(safe-area-inset-bottom)); grid-template-areas: 'min win plus'; padding: 10px var(--gut) 6px; background: var(--paper); gap: 10px; }
  .counter .clabel, .counter .cnow, .counter > .btn.text { display: none; }
  .wnav { border-top: 0; padding-top: 4px; }
  .cwin { min-height: 76px; }
  .cbtn { height: 76px; }
}

/* ---------- proyectos ---------- */
.plist { list-style: none; margin: 14px 0 24px; padding: 0; display: grid; gap: 12px; }
.prow { display: grid; gap: 12px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; }
.prow-a { display: flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.pr-img { width: 76px; height: 76px; border-radius: 12px; background: var(--cream-2); object-fit: contain; flex: none; }
.prow-t { flex: 1; display: grid; gap: 4px; min-width: 0; }
.prow-t strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.prow-t > span { color: var(--ink-2); font-size: .95rem; }

/* ---------- puntos ---------- */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #F1E9DE; border-radius: 16px; margin: 16px 0; }
.seg2 a { display: grid; place-items: center; min-height: 48px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.seg2 a.on { background: var(--card); color: var(--act); box-shadow: var(--shadow); }
.dict { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dict a { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--card); border: 2px solid transparent; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.dict a > svg { width: 22px; height: 22px; color: var(--ink-2); }
.dsym { width: 56px; height: 56px; border-radius: 14px; background: var(--act-wash); color: var(--act); display: grid; place-items: center; flex: none; }
.dsym .sym { width: 40px; height: 40px; }
.dt { flex: 1; display: grid; min-width: 0; }
.dt strong { font-size: 1.08rem; }
.dt .abk { color: var(--act); margin-left: 4px; }
.dt small { color: var(--ink-2); font-size: .88rem; }
.dictd, .stsheet { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.bigsym { width: 96px; height: 96px; border-radius: 24px; background: var(--act-wash); color: var(--act); display: grid; place-items: center; flex: none; }
.bigsym .sym { width: 68px; height: 68px; }
.stsheet .bigsym { width: 76px; height: 76px; }
.stsheet .bigsym .sym { width: 54px; height: 54px; }
.how { margin: 14px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.08rem; }
.how li::marker { color: var(--act); font-weight: 700; }
.video { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line-2); border-radius: 18px; padding: 18px; color: var(--ink-2); }
.video svg { width: 40px; height: 40px; color: var(--line-2); }
.names { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.names th, .names td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.names tr:last-child th, .names tr:last-child td { border-bottom: 0; }
.names th { color: var(--ink-2); width: 3.4em; }
.names tr.me { background: var(--act-wash); }
.names + .small { margin-top: 8px; }

/* ---------- club ---------- */
.clubhero { text-align: center; display: grid; justify-items: center; gap: 6px; margin: 0 0 14px; }
.clubhero .h1 { font-size: 1.65rem; }
.ch-img { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow); }
.perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.perks svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--act-wash); color: var(--act); flex: none; }
.pricebox { text-align: center; margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; }
.price { font-family: var(--serif); font-size: 1.7rem; }
.trial { color: var(--done); font-weight: 700; }
.fine { color: var(--ink-2); font-size: .95rem; margin-top: 12px; text-align: center; }
.statusbox { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; margin-bottom: 16px; }
.st-h { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.st-h svg { width: 26px; height: 26px; color: var(--act); }
.st-plan { color: var(--ink-2); font-weight: 700; margin-top: -4px; }
.st-founder { display: flex; gap: 8px; align-items: center; color: var(--done); font-weight: 700; }
.st-founder svg { width: 22px; height: 22px; }
.club .h2 { margin-top: 6px; }
/* Plazas de fundadora: número real (del servidor), en miel, sin cuenta atrás. */
.founders { display: flex; gap: 12px; align-items: flex-start; background: var(--honey-wash); border-radius: 16px; padding: 14px 16px; margin: 4px 0 18px; }
.founders > svg { width: 26px; height: 26px; color: var(--honey-deep); margin-top: 2px; }
.fo-h { font-weight: 700; font-size: 1.05rem; color: #5A3E10; }
.fo-s { color: var(--ink-2); font-size: .95rem; }
/* Las opciones del club: tarjetas grandes, una elegida (radio nativo escondido: teclado y lector de pantalla). */
.plans { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; min-width: 0; }
.plans legend { padding: 0; margin-bottom: 12px; font-family: var(--serif); }
.plan { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 88px; padding: 16px; border-radius: 18px; border: 2px solid var(--line-2); background: var(--card); cursor: pointer; transition: transform 140ms var(--ease); -webkit-user-select: none; user-select: none; }
.plan:active { transform: scale(.985); }
.plan.on { border-color: var(--brown); border-width: 3px; padding: 15px; background: #FFFBF4; }
.plan:has(input:focus-visible) { outline: 3px solid var(--honey); outline-offset: 2px; }
.plan .radio { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); flex: none; margin-top: 2px; display: grid; place-items: center; }
.plan.on .radio { border-color: var(--brown); background: var(--brown); box-shadow: inset 0 0 0 5px var(--card); }
.plan-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.badge.pick { background: var(--brown); color: var(--paper); font-size: .82rem; padding: 4px 10px; }
.badge.best { background: var(--sage-wash); color: var(--done); font-size: .82rem; padding: 4px 10px; }
.plan-name { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.plan-why { color: var(--done); font-weight: 700; font-size: .95rem; }
.plan-price { font-weight: 700; font-size: 1.15rem; margin-top: 2px; }
.plan-sub { color: var(--ink-2); font-size: .95rem; }
.up-sub { text-align: center; color: var(--ink-2); }

/* ---------- ajustes ---------- */
.setbox { margin-top: 22px; }
.setbox .h2 { font-size: 1.2rem; }
.setbox > .btn.big, .setbox > p + .btn { margin-top: 12px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segb { min-height: 76px; 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: 700; cursor: pointer; padding: 6px; }
.segb b { font-family: var(--serif); font-weight: 400; color: var(--act); line-height: 1; }
.segb.sz1 b { font-size: 20px; } .segb.sz2 b { font-size: 26px; } .segb.sz3 b { font-size: 32px; }
.segb span { font-size: .9rem; }
.segb.on { border-color: var(--act); background: var(--act-wash); }
.seg2b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.seg2b .segb { min-height: 56px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; text-align: left; }
.choice svg { width: 24px; height: 24px; color: var(--act); }
.choice.on { border-color: var(--act); background: var(--act-wash); }
.setbox.out { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 8px; }
.setbox.delbox { margin-top: 34px; padding-bottom: 8px; }
.delwarn { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--danger); background: var(--danger-wash); color: var(--ink); font-weight: 700; }
.delwarn + .btn { margin-top: 10px; }
.owner { background: #FFF7E8; border: 2px dashed var(--honey); border-radius: 18px; padding: 14px; }
.ownbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ostats { white-space: pre-wrap; font-size: .8rem; background: var(--card); border-radius: 12px; padding: 10px; max-height: 320px; overflow: auto; }

/* ---------- hojas ---------- */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 640px; max-height: 88svh; border: 0; padding: 0; background: transparent; color: var(--ink); overflow: visible; animation: sheetUp 280ms var(--ease-drawer) both; }
dialog.sheet::backdrop { background: rgba(24, 32, 58, .42); animation: fadeIn 240ms ease both; }
dialog.sheet.out { animation: sheetDown 200ms var(--ease) both; }
dialog.sheet.out::backdrop { animation: fadeOut 200ms ease both; }
.sheet-in { background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); justify-self: center; margin-bottom: 4px; }
.sh-title { font-size: 1.45rem; line-height: 1.15; }
.sh-lead { margin-top: 6px; color: var(--ink-2); font-weight: 700; }
.sh-actions { display: grid; gap: 6px; margin-top: 6px; justify-items: center; }
.sh-actions .btn.big { width: 100%; }
.up { display: grid; gap: 12px; }
.up-img { width: 84px; height: 84px; border-radius: 22px; justify-self: center; }
.up .sh-title, .up .price { text-align: center; }
.up .btn.text { justify-self: 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; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- avisos ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); animation: toastIn 220ms var(--ease) both; max-width: calc(100% - 32px); }
.toast.out { opacity: 0; transition: opacity 200ms ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.offbar { display: none; padding: calc(env(safe-area-inset-top) + 6px) 16px 6px; background: var(--honey-wash); color: #6B4A14; font-weight: 700; font-size: .9rem; text-align: center; }
body.offline .offbar { display: block; }
body.offline .top, body.offline .wtop { padding-top: 0; }
.updbar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; max-width: 560px; margin: 0 auto; }
.updbar span { flex: 1; font-weight: 700; }
.updbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- tablet y más ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .hide-s { display: inline; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dict { grid-template-columns: 1fr 1fr; }
  .plist { grid-template-columns: 1fr 1fr; }
  .resume { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 20px; }
  .resume .eyebrow { grid-column: 1 / -1; }
  .resume .more { grid-column: 1 / -1; }
  .rimg { width: 116px; height: 116px; }
  .clubcard { grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; }
  .dayrow .pcard { max-width: 640px; }
  .dgrid { grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
  .dart { position: sticky; top: 80px; }
  .dmain { display: grid; gap: 14px; align-content: start; }
  .dhead, .dmeta, .intro, .actions { grid-column: auto; }
  .dtitle { font-size: 2.1rem; }
  .detail .block { max-width: 760px; }
  .mats { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .mrow:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .tabbar { padding-left: max(10%, env(safe-area-inset-left)); padding-right: max(10%, env(safe-area-inset-right)); }
  .greet { font-size: 2.3rem; }
  .h1 { font-size: 2.1rem; }
  /* paso a paso: instrucción a la izquierda, contador a la derecha */
  .wgrid { grid-template-columns: 1.35fr 1fr; gap: 20px; padding-top: 18px; align-items: start; }
  .wcard { padding: 22px 24px 24px; }
  .wtext { font-size: 1.45rem; }
  .counter { position: sticky; top: 90px; grid-template-columns: 1fr 1fr; grid-template-areas: 'lab lab' 'win win' 'now now' 'min plus'; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; gap: 12px; }
  .cwin { min-height: 130px; }
  .cwin output { font-size: 4.4rem; }
  .cbtn { width: 100%; height: 104px; }
  .cbtn svg { width: 44px; height: 44px; }
  .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; }
}
@media (min-width: 1100px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Letra «Muy grande» en el móvil: menos columnas, nada cortado. */
@media (max-width: 699px) {
  html[data-size="3"] .pgrid { grid-template-columns: 1fr; }
  html[data-size="3"] .pgrid .pcard { flex-direction: row; }
  html[data-size="3"] .pgrid .pimg { width: 38%; flex: none; }
  html[data-size="3"] .dgrid { grid-template-columns: 96px minmax(0, 1fr); }
  html[data-size="3"] .counter { grid-template-columns: 70px 1fr 70px; }
  html[data-size="3"] .cbtn { width: 70px; }
  html[data-size="3"] .cwin output { font-size: 2.6rem; }
  html[data-size="3"] .seg3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .wcard.in-next, .wcard.in-prev, .favbtn.pop svg { animation: fadeIn 160ms ease both; }
  dialog.sheet, dialog.sheet.out { animation: fadeIn 160ms ease both; }
  dialog.sheet.out { animation-name: fadeOut; }
  .fin-check { animation: fadeIn 200ms ease both; }
  .toast { animation: fadeIn 160ms ease both; }
  .spinner { animation-duration: 2s; }
}

/* ---------- 05-11-2026: más sencillo para Ria. Lo memorable es la foto de la pieza con un solo botón. ---------- */
:root { --serif: 'Gelasio', Georgia, 'Times New Roman', serif; --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --ink: #2E1B15; --ink-2: #5C4439; --tab-h: 76px; }
html { font-size: 20px; }
html[data-size="2"] { font-size: 23px; }
html[data-size="3"] { font-size: 26px; }
h1, h2, h3, .ptitle, .col-t strong, .prow-t strong, .osec > strong, .plan-name, .price, .gift-h, .segb b { font-weight: 700; }
.h1 { font-size: 1.7rem; margin: 4px 0 14px; }
.h2 { font-size: 1.25rem; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
.tab, html[data-size="2"] .tab, html[data-size="3"] .tab { font-size: 16px; font-weight: 700; min-height: 68px; }
.tab.on { color: #fff; background: var(--act); }
.tab.on svg { background: none; }
.greetbox { margin: 2px 0 12px; }
.greet { font-size: 1.7rem; margin: 0; }
.resume { padding: 12px; gap: 10px; }
.rhero { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--cream-2); color: var(--ink); text-decoration: none; }
.rimg { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rtitle { display: block; padding: 10px 12px 12px; background: var(--card); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.rlabel { color: var(--ink-2); margin: 0 2px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tile { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.tile strong { padding: 10px 12px 12px; font-size: 1.05rem; line-height: 1.2; }
.pgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pcard { flex-direction: row; align-items: center; }
.pimg { width: 130px; flex: none; }
.pbody { padding: 12px 14px; }
.ptitle { font-size: 1.15rem; }
.col-img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; background: var(--cream-2); }
.col-t strong { font-size: 1.15rem; }
.dgrid { display: block; }
.dart { width: 100%; max-width: 520px; margin: 0 auto 12px; }
.dimg { width: 100%; height: auto; }
.dtitle { font-size: 1.6rem; }
.more-box { margin-top: 14px; background: var(--card); border-radius: 16px; padding: 4px 16px; box-shadow: var(--shadow); }
.more-box > summary { min-height: 56px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.more-box[open] { padding-bottom: 14px; }
.more-box .block { margin-top: 4px; }
.more-box .vbanner { margin-top: 12px; }
.wcard { padding: 12px 16px; }
.wfoto { position: relative; margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.wfoto img { width: 100%; height: auto; max-height: 38svh; object-fit: contain; display: block; }
.wlabel { font-size: 1.35rem; margin-bottom: 6px; }
.wtext { font-size: 1.2rem; line-height: 1.5; }
.lesson .wfoto img { max-height: 52svh; }
.lesson .wtext { font-size: 1.3rem; }
.helpbtns { display: grid; gap: 12px; }
.helpmail { margin-top: 16px; text-align: center; color: var(--ink-2); overflow-wrap: anywhere; }
.pmeta { display: block; font-size: 1rem; color: var(--ink-2); }
/* Nada se sale con letra máxima en móviles pequeños. */
.top-in { gap: 8px; }
.brand { min-width: 0; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-t, .prow-t, .pbody { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.view { overflow-wrap: anywhere; }
.btn { max-width: 100%; white-space: normal; }
.names { width: 100%; table-layout: fixed; }
.seg3, .seg2, .seg2b { min-width: 0; }
.seg3 .segb, .seg2b .segb { min-width: 0; overflow-wrap: anywhere; }
.ab.vol { font: inherit; font-weight: 700; color: var(--act-deep); background: none; border: 0; padding: 0; min-height: 0; text-decoration: underline dotted 2px; text-underline-offset: 3px; }
.wth { font-family: var(--sans); font-size: 1rem; font-weight: 800; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.dictd { flex-wrap: wrap; min-width: 0; }
.dictd > div { min-width: 0; overflow-wrap: anywhere; }
.names th, .names td { overflow-wrap: anywhere; }
.mats + .btn { margin-top: 12px; }

.dart { position: relative !important; top: auto; }
.lesson .wgrid { display: block; max-width: 760px; margin: 0 auto; width: 100%; }
.lesson .wfoto img { width: 100%; max-height: 62svh; }
.clabel { font-weight: 700; color: var(--ink); }

/* El contador y los botones de abajo no crecen con la letra: tienen que caber siempre y no moverse. */
.counter { grid-template-columns: 72px minmax(0, 1fr) 72px; }
.clabel { display: block; font-size: 17px; }
.cwin { min-width: 0; min-height: 72px; padding: 4px 6px; flex-wrap: nowrap; }
.cwin output { font-size: 46px; min-width: 0; }
.cof { font-size: 17px; white-space: nowrap; }
.cbtn { width: 72px; height: 72px; }
.wnav .btn { font-size: 18px; min-height: 60px; overflow-wrap: normal; hyphens: none; padding: 8px 14px; }
.btn { overflow-wrap: normal; }
.shop-h { font-weight: 700; margin-bottom: 10px; }
.mats.shop dd { font-size: 1.1rem; }
