/* Cuánto material · papel de plano, cotas y lápiz de carpintero.
   Letra: Archivo (texto y títulos) y IBM Plex Mono (medidas y cantidades), las dos OFL, dentro de la carpeta.
   Hoja de papel manteca con cuadrícula fina; el resultado va en un tablero «cianotipo» (copia de plano, azul hondo con líneas claras).
   Acento único: cian de cota. Esquinas casi rectas (3 px), como una regla. Una columna para el pulgar y barra de pestañas abajo. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("obra-archivo-400-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("obra-plexmono-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("obra-plexmono-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --papel: #EEEADB;
  --tarjeta: #FAF8F0;
  --tinta: #1B2326;
  --tinta2: #4D5B5C;
  --linea: #CFCBB8;
  --linea-fuerte: #8E8C79;
  --grilla: rgba(6, 104, 127, .075);
  --grilla2: rgba(6, 104, 127, .13);
  --acento: #19B5D6;
  --acento-hondo: #0B7A94;
  --acento-tinta: #03212A;
  --acento-texto: #06687F;
  --panel: #0B2B38;
  --panel2: #123A4A;
  --panel-tinta: #EAF6F9;
  --panel-tinta2: #9FC3CF;
  --panel-acento: #5FD3EC;
  --panel-rojo: #FF9A8A;
  --panel-verde: #5BE0A4;
  --rojo: #B42318;
  --verde: #0B7A4B;
  --fuente: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radio: 3px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papel: #0C1417;
    --tarjeta: #131D21;
    --tinta: #E9EEEC;
    --tinta2: #9CABAD;
    --linea: #263539;
    --linea-fuerte: #465A60;
    --grilla: rgba(95, 211, 236, .05);
    --grilla2: rgba(95, 211, 236, .09);
    --acento-hondo: #0B7A94;
    --acento-texto: #5FD3EC;
    --panel: #0F2E3B;
    --panel2: #174252;
    --rojo: #FF9A8A;
    --verde: #5BE0A4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--papel);
  background-image:
    linear-gradient(var(--grilla2) 1px, transparent 1px), linear-gradient(90deg, var(--grilla2) 1px, transparent 1px),
    linear-gradient(var(--grilla) 1px, transparent 1px), linear-gradient(90deg, var(--grilla) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  color: var(--tinta);
  font: 400 16px/1.45 var(--fuente);
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(110px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
}
#res { display: flex; flex-direction: column; gap: 16px; }
#res:empty { display: none; }

/* ---------- Encabezado: el título sobre una cota (línea con topes en las puntas) y el lápiz ---------- */
.tope { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px 12px; padding-bottom: 20px; position: relative; }
.tope::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: var(--tinta);
}
.tope::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; z-index: 1;
  background:
    linear-gradient(var(--tinta), var(--tinta)) 0 0 / 1.5px 13px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) 100% 0 / 1.5px 13px no-repeat;
}
.tope h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.tope h1 em { font-style: normal; color: var(--acento-texto); }
.tope .sub { grid-column: 1; font-size: 14.5px; color: var(--tinta2); }
.lapiz { grid-column: 2; grid-row: 1 / span 2; width: 74px; height: 30px; margin-top: 2px; color: var(--tinta); }
.lapiz .madera { fill: #D9B27A; stroke: var(--tinta); stroke-width: 1.5; }
.lapiz .cuerpo { fill: var(--acento); stroke: var(--tinta); stroke-width: 1.5; }
.lapiz .mina { fill: var(--tinta); }
.sello {
  display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--acento-texto); border: 2px solid var(--acento-hondo); padding: 6px 8px 5px; border-radius: 2px; white-space: nowrap;
  transform: rotate(-2.5deg); margin-top: 6px;
}

/* ---------- Secciones de papel ---------- */
.tarjeta { background: var(--tarjeta); border: 1.5px solid var(--linea-fuerte); border-radius: var(--radio); padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.tarjeta h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.nota { font-size: 14px; color: var(--tinta2); }

/* Aviso: con tope de cota a la izquierda */
.aviso {
  font-size: 15px; line-height: 1.45; padding: 12px 14px 12px 18px; position: relative;
  background: var(--tarjeta); border: 1.5px solid var(--linea-fuerte); border-radius: var(--radio);
}
.aviso::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--acento); }
.aviso.rojo::before { background: var(--rojo); }
.aviso b { font-weight: 800; }

/* ---------- Campos ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > span:first-child { font-size: 14.5px; font-weight: 700; }
.campo small { font-size: 13px; color: var(--tinta2); line-height: 1.35; }
input[type=text], select {
  width: 100%; min-height: 50px; padding: 10px 12px 8px; background: var(--tarjeta); border: 0; border-bottom: 2px solid var(--linea-fuerte); border-radius: var(--radio) var(--radio) 0 0; font-size: 18px;
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--tinta) 50%), linear-gradient(-45deg, transparent 50%, var(--tinta) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input[inputmode=decimal], input[inputmode=numeric] { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
input[type=text]:focus, select:focus { outline: none; border-bottom-color: var(--acento-hondo); box-shadow: inset 0 0 0 1.5px var(--acento), 0 0 0 3px color-mix(in srgb, var(--acento) 28%, transparent); }
input::placeholder { color: var(--tinta2); opacity: .8; }
.con-unidad { position: relative; display: block; }
.con-unidad i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--tinta2); font: 500 14px/1 var(--mono); pointer-events: none; }
.con-unidad input { padding-right: 44px; }
.con-signo { position: relative; display: block; }
.con-signo i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--tinta2); font: 500 16px/1 var(--mono); pointer-events: none; }
.con-signo input { padding-left: 30px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tres { display: grid; grid-template-columns: 1fr 1fr 74px; gap: 10px; }
.grupo { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1.5px dashed var(--linea-fuerte); }
.grupo h3 { font-size: 16px; font-weight: 800; }

/* Pared / Piso: dos teclas de regla */
.modos { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--tinta); border-radius: var(--radio); overflow: hidden; }
.modos button { min-height: 50px; border: 0; background: var(--tarjeta); font-weight: 700; font-size: 16px; color: var(--tinta2); transition: background .15s, color .15s; }
.modos button + button { border-left: 1.5px solid var(--tinta); }
.modos button[aria-pressed="true"] { background: var(--panel); color: var(--panel-acento); box-shadow: inset 0 -3px 0 var(--acento); }

/* Aberturas */
.abertura { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.5px dashed var(--linea-fuerte); border-radius: var(--radio); }
.abertura .tres .campo > span:first-child { font-size: 13px; }
.abertura .sacar { align-self: flex-start; border: 0; background: none; color: var(--rojo); font-weight: 700; font-size: 14.5px; min-height: 44px; padding: 0 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* Croquis con cotas */
.croquis { background: var(--tarjeta); border: 1.5px solid var(--linea); border-radius: var(--radio); padding: 6px; }
.croquis svg { display: block; width: 100%; height: auto; max-height: 220px; }
.croquis .muro { fill: color-mix(in srgb, var(--acento) 10%, var(--tarjeta)); stroke: var(--tinta); stroke-width: 2; }
.croquis .ladr { stroke: var(--linea-fuerte); stroke-width: .8; opacity: .8; }
.croquis .hueco { fill: var(--papel); stroke: var(--tinta); stroke-width: 1.5; stroke-dasharray: 4 3; }
.croquis .cota { stroke: var(--acento-texto); stroke-width: 1.4; fill: none; }
.croquis text { font: 600 12px var(--mono); fill: var(--acento-texto); }
.croquis .vacio-t { font: 500 12px var(--fuente); fill: var(--tinta2); }

/* ---------- Botones: la tecla principal tiene relieve y se hunde al tocarla ---------- */
.btn { min-height: 52px; padding: 2px 18px 0; border: 1.5px solid var(--tinta); border-radius: var(--radio); background: var(--tarjeta); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: transform .08s, box-shadow .08s; }
.btn.fuerte { background: var(--acento); border-color: var(--acento-hondo); color: var(--acento-tinta); box-shadow: 0 3px 0 var(--acento-hondo); }
.btn.fuerte:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--acento-hondo); }
.btn.peligro { color: var(--rojo); border-color: var(--rojo); background: transparent; }
.btn.chico { min-height: 46px; font-size: 15px; padding: 2px 14px 0; }
.btn:active { transform: translateY(1px); }
a.btn { color: inherit; text-decoration: none; }
a.btn.fuerte { color: var(--acento-tinta); }
.acciones { display: flex; flex-direction: column; gap: 12px; }
.presu-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.presu-acciones .btn { flex: 1 1 170px; padding-left: 12px; padding-right: 12px; }

/* ---------- Tablero cianotipo (resultado) ---------- */
.tablero {
  background-color: var(--panel); color: var(--panel-tinta); border-radius: var(--radio); padding: 18px 16px 16px;
  background-image:
    linear-gradient(rgba(234, 246, 249, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 246, 249, .07) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
  border: 2px solid var(--panel-acento);
  outline: 1.5px solid var(--panel); outline-offset: -8px;
}
.tablero .rotulo { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--panel-acento); }
.tablero .apoyo { font-size: 14.5px; color: var(--panel-tinta2); }
.tablero .apoyo b { color: var(--panel-tinta); font-family: var(--mono); font-weight: 600; }
.pedi { display: flex; flex-direction: column; }
.pedi > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 11px 0; border-bottom: 1px dashed rgba(234, 246, 249, .28); }
.pedi > div:last-child { border-bottom: 0; }
.pedi .que { font-weight: 700; font-size: 16.5px; }
.pedi .cuanto { font-family: var(--mono); font-weight: 600; font-size: 26px; line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; }
.pedi .cuanto small { font-size: 13px; font-weight: 500; color: var(--panel-tinta2); margin-left: 4px; }
.pedi .como { grid-column: 1 / -1; font-size: 13px; color: var(--panel-tinta2); }
.pedi .falta { color: var(--panel-acento); }
.tablero details { font-size: 14.5px; }
.tablero summary { cursor: pointer; color: var(--panel-acento); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.tablero details ul { margin: 2px 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--panel-tinta2); }
.tablero details li b { color: var(--panel-tinta); font-weight: 600; font-family: var(--mono); }
.tablero .btn { background: var(--panel2); border-color: rgba(234, 246, 249, .3); color: var(--panel-tinta); box-shadow: none; }
.tablero .btn.fuerte { background: var(--acento); border-color: var(--acento-hondo); color: var(--acento-tinta); box-shadow: 0 3px 0 var(--acento-hondo); }
.vacio-tablero { font-size: 16.5px; line-height: 1.45; }
.vacio-tablero b { color: var(--panel-acento); }

/* ---------- Pedido ---------- */
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--tarjeta); border: 1.5px solid var(--linea-fuerte); border-radius: var(--radio); }
.lista > li + li { border-top: 1.5px dashed var(--linea-fuerte); }
.trabajo { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px 4px 18px; position: relative; animation: entra .25s var(--ease) both; }
.trabajo::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; background: var(--acento); }
.trabajo b { font-weight: 800; overflow-wrap: anywhere; }
.trabajo .det { grid-column: 1 / -1; font-size: 13.5px; color: var(--tinta2); }
.trabajo .m { font-family: var(--mono); font-weight: 600; font-size: 14px; text-align: right; }
.trabajo .sacar { grid-column: 1 / -1; justify-self: start; border: 0; background: none; color: var(--rojo); font-weight: 700; font-size: 14.5px; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.precio-fila { display: grid; grid-template-columns: 1fr 128px; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1.5px dashed var(--linea-fuerte); }
.precio-fila:first-of-type { border-top: 0; }
.precio-fila .q b { display: block; font-weight: 800; }
.precio-fila .q span { font-size: 13.5px; color: var(--tinta2); }
.precio-fila input { min-height: 46px; font-size: 16px; }
.precio-fila .subt { grid-column: 1 / -1; text-align: right; font: 600 14px var(--mono); color: var(--tinta2); }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 2px solid var(--tinta); font-weight: 800; }
.total-fila b { font: 600 22px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.papelito { font-size: 15.5px; line-height: 1.5; padding: 12px 14px; background: var(--papel); border-left: 4px solid var(--acento); border-radius: 0 var(--radio) var(--radio) 0; user-select: all; overflow-wrap: anywhere; white-space: pre-line; }
.papelito-firma { margin: 6px 0 0 18px; font-size: 12.5px; line-height: 1.4; color: var(--tinta2); overflow-wrap: anywhere; }
.vacio { text-align: center; padding: 28px 16px; color: var(--tinta2); display: flex; flex-direction: column; gap: 12px; align-items: center; border: 1.5px dashed var(--linea-fuerte); border-radius: var(--radio); background: var(--tarjeta); }
.vacio b { color: var(--tinta); font-size: 19px; }

/* ---------- Datos: cada ficha con su fuente a la vista ---------- */
.ficha { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px 18px; position: relative; border-top: 1.5px dashed var(--linea-fuerte); }
.ficha:first-of-type { border-top: 0; }
.ficha::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 12px; width: 4px; background: var(--linea-fuerte); }
.ficha.editada::before { background: var(--acento); }
.ficha h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ficha .tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--acento-texto); border: 1.5px solid var(--acento-hondo); padding: 3px 5px 2px; margin-left: 8px; vertical-align: 2px; border-radius: 2px; }
.ficha .campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ficha .campo > span:first-child { font-size: 13px; }
.ficha input { min-height: 46px; font-size: 16px; }
.fuente { font-size: 13px; line-height: 1.4; color: var(--tinta2); }
.fuente b { color: var(--tinta); }
.ficha .volver { align-self: flex-start; border: 0; background: none; color: var(--acento-texto); font-weight: 700; font-size: 14.5px; min-height: 44px; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.dudoso { font-size: 13px; line-height: 1.4; padding: 6px 8px; border-left: 4px solid var(--acento); background: color-mix(in srgb, var(--acento) 12%, var(--tarjeta)); }

/* ---------- Barra de pestañas ---------- */
.pestanas { position: fixed; left: 0; right: 0; bottom: 0; background: var(--tarjeta); border-top: 1.5px solid var(--linea-fuerte); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 5; }
.pestanas > div { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.pestanas button { position: relative; min-height: 64px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--tinta2); }
.pestanas svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pestanas button[aria-current="page"] { color: var(--tinta); }
.pestanas button[aria-current="page"]::before { content: ""; position: absolute; top: -1.5px; left: 22%; right: 22%; height: 4px; background: var(--acento); }
.pestanas button[aria-current="page"] svg { stroke: var(--acento-texto); stroke-width: 2.2; }
.cuenta { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 3px 5px 0; background: var(--acento); color: var(--acento-tinta); font: 600 12px/17px var(--mono); text-align: center; border-radius: 2px; }

/* ---------- Ventanas: ficha que sube desde abajo ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--tinta); width: min(100vw, 520px); max-width: 100vw; max-height: 100dvh; margin: auto auto 0; }
dialog::backdrop { background: rgba(6, 14, 18, .62); }
dialog .hoja { background: var(--tarjeta); border-radius: 6px 6px 0 0; border-top: 4px solid var(--acento); padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92dvh; overflow-y: auto; position: relative; }
dialog .hoja::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--linea-fuerte); }
#pregunta-titulo { font-size: 21px; font-weight: 800; line-height: 1.2; }
@media (min-width: 700px) { dialog { margin: auto; } dialog .hoja { border-radius: 6px; } dialog .hoja::before { display: none; } }

/* Cartel de listo / aviso */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: min(calc(100vw - 32px), 460px); background: var(--panel); color: var(--panel-tinta); padding: 13px 16px 11px 20px; border-radius: var(--radio); border-left: 6px solid var(--acento); font-weight: 600; font-size: 15px; z-index: 20; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); text-align: left; }

details.acordeon { border-top: 1.5px dashed var(--linea-fuerte); padding-top: 4px; }
details.acordeon summary { font-weight: 700; min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--acento-texto); }
.texto-largo { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.texto-largo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Movimiento: sólo para avisar que algo cambió ---------- */
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes cartel { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
dialog[open] .hoja { animation: subir .28s var(--ease); }
dialog[open]::backdrop { animation: aparecer .2s ease-out; }
.toast:not([hidden]) { animation: cartel .22s var(--ease); }
@media (min-width: 700px) { dialog[open] .hoja { animation: aparecer .18s ease-out; } }

@media (min-width: 900px) {
  #app { padding-top: 32px; }
  .pedi .cuanto { font-size: 30px; }
}
@media (max-width: 359px) {
  .tope h1 { font-size: 25px; }
  .lapiz { width: 58px; }
  .dos { gap: 10px; }
  .tres { grid-template-columns: 1fr 1fr 60px; gap: 8px; }
  .pedi .cuanto { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::backdrop { transition: none !important; animation: none !important; } }

/* ---------- Al pie: qué es Cuánto material, para quien llega desde Google ---------- */
.sobre-app { max-width: 640px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); color: var(--tinta2); font: 400 16px/1.5 var(--fuente); }
.sobre-app > * + * { margin-top: 12px; }
.sobre-app h1 { font: 800 22px/1.2 var(--fuente); letter-spacing: -.01em; color: var(--tinta); padding-top: 22px; text-wrap: balance; background: linear-gradient(var(--tinta), var(--tinta)) 0 0 / 100% 1.5px no-repeat; }
.sobre-app h2 { font: 800 17px/1.25 var(--fuente); color: var(--tinta); padding-top: 6px; }
.sobre-app p { max-width: 62ch; }
.sobre-app details { border-bottom: 1.5px solid var(--linea-fuerte); margin-top: 0; }
.sobre-app h2 + details { border-top: 1.5px solid var(--linea-fuerte); margin-top: 8px; }
.sobre-app summary { min-height: 48px; padding: 12px 30px 12px 0; position: relative; cursor: pointer; list-style: none; font-weight: 700; color: var(--tinta); }
.sobre-app summary::-webkit-details-marker { display: none; }
.sobre-app summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 20px/1 var(--fuente); color: var(--acento-texto); transition: transform .2s ease; }
.sobre-app details[open] summary::after { transform: rotate(45deg); }
.sobre-app details p { padding: 0 0 14px; }
@media print { .sobre-app { display: none !important; } }

.pie-app { text-align: center; font-size: .85rem; color: inherit; opacity: .8; margin: 28px 0 96px; }
.pie-app a { color: inherit; display: inline-block; padding: 12px 4px; }
.pasar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 4px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.pasar svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media print { .pasar { display: none !important; } }
