/* Cafetería blanca: paredes claras, mármol, cerámica, madera clara y un toque de espresso */
/* Fuentes alojadas aquí (licencia OFL, ver public/fuentes); solo latín */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fuentes/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fuentes/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --pared: #FDFBF8; --hoja: #FFFFFF; --crema: #FAF7F2; --hover: #F5EFE7;
  --borde: #F0E9DF; --control: #85796C;
  --tinta: #2A211C; --suave: #65584D;
  --moca: #3B2A21; --sobre-moca: #FFFFFF; --canela: #6B4A35;
  --matcha: #4A6B55; --matcha-suave: #F0F5F0; --sobre-matcha: #FFFFFF;
  --mancha: #5C554E; --alerta: #A63A2E; --alerta-suave: #FCF0ED;
  --serie-1: #B0662F; --serie-2: #2A7FA8;
  --calor-0: #F3EDE4; --calor-1: #E4D3BE; --calor-2: #C9A67F; --calor-3: #9A7050; --calor-4: #5E3F2B;
  --papel: #FFFEFA; --velo: rgb(255 250 240 / .9); --nav-vidrio: rgb(253 251 248 / .88); --captura-vidrio: rgb(253 251 248 / .84);
  --telon: rgb(42 33 28 / .30);
  --luz: inset 0 1px 0 rgb(255 255 255 / .9);
  --sombra: 0 1px 2px rgb(70 48 28 / .04), 0 4px 12px -2px rgb(70 48 28 / .05), 0 18px 36px -16px rgb(70 48 28 / .08);
  --sombra-alta: 0 2px 4px rgb(70 48 28 / .05), 0 10px 24px -4px rgb(70 48 28 / .09), 0 24px 44px -18px rgb(70 48 28 / .12);
  --sombra-papel: 0 1px 1px rgb(70 48 28 / .06), 0 2px 4px rgb(70 48 28 / .04), 0 12px 28px -10px rgb(70 48 28 / .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --titulo: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--tinta); background: var(--pared) radial-gradient(900px 420px at 72% -8%, var(--velo), transparent) no-repeat; background-attachment: fixed; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; font-weight: 650; margin: 0 0 1.2rem; letter-spacing: -.035em; line-height: 1.15; } h1::first-letter { text-transform: uppercase; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; } h2::first-letter { text-transform: uppercase; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
a { color: var(--moca); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; background: var(--pared); border: 1px solid var(--control); border-radius: 12px; padding: .6rem .85rem; min-height: 44px; }
::placeholder { color: var(--suave); opacity: 1; }
textarea { resize: vertical; min-height: 96px; }
button { cursor: pointer; min-height: 44px; padding: .45rem 1.1rem; border-radius: 12px; border: 1px solid var(--borde); background: var(--hoja); box-shadow: var(--luz), 0 1px 2px rgb(70 48 28 / .05); }
button:hover { background: var(--hover); }
button:disabled { cursor: default; opacity: .45; }
button.principal { background: var(--moca); border-color: var(--moca); color: var(--sobre-moca); font-weight: 600; }
button.principal:hover { background: var(--canela); border-color: var(--canela); }
button.liso { border-color: transparent; background: transparent; box-shadow: none; color: var(--suave); padding: .35rem .7rem; font-size: .9rem; }
button.liso:hover { background: var(--hover); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--moca); outline-offset: 2px; }
label { display: block; font-size: .9rem; color: var(--suave); }
label > input, label > select, label > textarea { margin-top: .25rem; color: var(--tinta); font-size: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* ---------- Marco ---------- */
.marco { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1260px; margin: 0 auto; }
nav.lateral { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 1.6rem .9rem; background: var(--crema); border-right: 1px solid var(--borde); }
nav .marca { display: flex; align-items: center; gap: .55rem; font: 600 1.4rem var(--titulo); letter-spacing: -.03em; padding: 0 .7rem .5rem; }
nav .marca::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--moca); box-shadow: 0 0 0 4px var(--hoja), 0 0 0 5px var(--borde); }
.grupo { margin: 1.3rem 0 .3rem; padding: 0 .8rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); font-weight: 600; }
nav a, .mas a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: .35rem .8rem; border-radius: 14px; text-decoration: none; color: var(--tinta); border: 1px solid transparent; }
nav a:hover, .mas a:hover { background: var(--hover); }
nav a[aria-current], .mas a[aria-current] { background: var(--hoja); font-weight: 600; border-color: var(--borde); box-shadow: var(--luz), var(--sombra); }
.cuenta { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-left: .45rem; font: 700 .78rem/1 var(--mono); font-variant-numeric: tabular-nums; background: var(--moca); color: var(--sobre-moca); border-radius: 99px; padding: 0 .45rem; box-shadow: 0 0 0 2px var(--hoja), 0 2px 6px -1px rgb(59 42 33 / .35); }
.barra { display: none; }
main { padding: 1.6rem 2.2rem 5rem; min-width: 0; }
.captura { display: flex; gap: .6rem; margin-bottom: 1.8rem; }
main > .captura { position: sticky; top: 0; z-index: 8; margin: -1.6rem -2.2rem 1.6rem; padding: .8rem 2.2rem; background: var(--captura-vidrio); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.captura input { background: var(--hoja); box-shadow: var(--luz), 0 1px 2px rgb(70 48 28 / .04); }

/* ---------- Piezas ---------- */
.hoja { background: var(--hoja); border: 1px solid var(--borde); border-radius: 20px; box-shadow: var(--luz), var(--sombra); padding: 1.5rem 1.6rem; margin-bottom: 1.3rem; }
.nota-plan { position: relative; background: var(--papel); border-color: var(--borde); border-radius: 18px; box-shadow: var(--luz), var(--sombra-papel); }
.nota-plan::before { content: ''; position: absolute; top: 0; left: 1.6rem; width: 44px; height: 5px; border-radius: 0 0 5px 5px; background: var(--moca); opacity: .85; }
.nota-plan textarea { background: transparent; min-height: 104px; line-height: 1.75rem; border-color: var(--control);
  background-image: repeating-linear-gradient(transparent 0 calc(1.75rem - 1px), var(--borde) calc(1.75rem - 1px) 1.75rem); background-attachment: local; background-position: 0 .6rem; }
.columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.3rem; align-items: start; }
.hoy { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 0 1.3rem; align-items: start; }
.estrecho { max-width: 680px; margin: 0 auto; }
.fila { display: flex; gap: .7rem; align-items: center; padding: .65rem 0; min-height: 44px; border-top: 1px solid var(--borde); }
.fila:first-of-type { border-top: 0; }
.fila .crece { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fila.hecha .crece > span:first-child { text-decoration: line-through; color: var(--suave); }
.meta { display: block; font-size: .85rem; color: var(--suave); }
.mono, .contexto, .hora, .racha { font-family: var(--mono); font-size: .8rem; }
.vence { color: var(--alerta); font-weight: 600; }
.contexto { position: relative; background: none; border: 0; box-shadow: none; padding: 0 .3rem 0 0; min-height: 0; color: var(--suave); text-decoration: underline dotted; }
.contexto::after { content: ''; position: absolute; inset: -14px -6px; } /* zona de toque de 44 px sin cambiar la línea */
.contexto:hover { background: none; color: var(--moca); }
.vacio { color: var(--suave); margin: .3rem 0; }
.vacio-amable { display: flex; align-items: center; gap: .85rem; color: var(--suave); margin: .3rem 0; padding: .4rem 0; }
.vacio-amable .vacio { margin: 0; }
.icono-vacio { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--crema); border: 1px dashed var(--control); }
.icono-vacio::before { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--calor-1); }
.icono-vacio::after { content: ''; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--calor-3); }
.cabeza-hoy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.cabeza-hoy h1 { margin: 0 0 .15rem; }
.cabeza-hoy .fecha { margin: 0; color: var(--suave); font-size: .95rem; }
.cabeza-hoy .fecha::first-letter { text-transform: uppercase; }
.anillo-caja { display: flex; align-items: center; gap: .8rem; flex: none; }
.anillo-texto { text-align: right; line-height: 1.3; }
.anillo-texto strong { display: block; font: 650 1.05rem var(--titulo); letter-spacing: -.02em; }
.anillo-texto span { font-size: .8rem; color: var(--suave); }
.anillo { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.anillo circle { fill: none; stroke-width: 7; }
.anillo-fondo { stroke: var(--calor-0); }
.anillo-valor { stroke: var(--matcha); stroke-linecap: round; }
.fila.habito { cursor: pointer; margin: 0 -.5rem; padding-inline: .5rem; border-radius: 14px; }
.fila.habito:hover { background: var(--crema); }
.esqueleto { max-width: 720px; margin: 0 auto; padding: 2.2rem 1rem; display: grid; gap: 1rem; }
.esqueleto i { display: block; border-radius: 16px; background: var(--calor-0); }
.e-titulo { width: 45%; height: 34px; }
.e-caja { height: 52px; }
.e-bloque { height: 120px; }
.e-bloque.corto { height: 84px; width: 70%; }
.solo-lectura { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avisos { border-radius: 16px; border: 1px solid var(--borde); background: var(--crema); padding: .3rem 1.2rem; margin-bottom: 1.3rem; }
.avisos p { margin: .55rem 0; color: var(--mancha); }
.avisos p.urgente { color: var(--alerta); }
.avisos a { color: inherit; font-weight: 600; }
.mancha { background: var(--crema); color: var(--mancha); border-radius: 12px; padding: .6rem .9rem; margin-bottom: .8rem; }
.punto { width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background: transparent; box-shadow: none; display: grid; place-items: center; }
.punto:hover { background: transparent; }
.punto::before { content: ''; grid-area: 1 / 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--control); background: var(--hoja); }
.punto span { grid-area: 1 / 1; z-index: 1; font-family: var(--mono); font-size: .85rem; line-height: 1; }
.punto[aria-pressed="true"]::before { background: var(--matcha); border-color: var(--matcha); }
.punto[aria-pressed="true"] span { opacity: 0; }
.punto[aria-pressed="true"]::after { content: ''; grid-area: 1 / 1; z-index: 2; width: 6px; height: 12px; margin-top: -2px; border: solid var(--sobre-matcha); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.semana { display: flex; gap: 3px; margin-top: .15rem; }
.semana i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--control); }
.semana i.si { background: var(--matcha); border-color: var(--matcha); }
.semana i.futuro { border-style: dotted; }
.racha { color: var(--canela); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1rem; align-items: center; }
.chips button[aria-pressed="true"] { background: var(--moca); border-color: var(--moca); color: var(--sobre-moca); }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; align-items: center; }

.rejilla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .2rem; text-align: center; font-size: .85rem; border-bottom: 1px solid var(--borde); }
th:first-child { text-align: left; min-width: 150px; font-weight: 500; }
td .punto { margin: 0 auto; }
progress { width: 100%; height: 10px; accent-color: var(--matcha); }
.tablero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .8rem; }

/* ---------- Diario ---------- */
.toques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-bottom: 1rem; }
.toques fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.toques legend { font-size: .9rem; color: var(--suave); padding: 0 0 .25rem; }
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.escala label { position: relative; }
.escala input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.escala span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--control); border-radius: 12px; font-family: var(--mono); color: var(--tinta); background: var(--hoja); }
.escala input:checked + span { background: var(--moca); border-color: var(--moca); color: var(--sobre-moca); }
.escala input:focus-visible + span { outline: 3px solid var(--moca); outline-offset: 2px; }
form > label { margin-bottom: .8rem; }

/* ---------- Diálogos y aclarar ---------- */
dialog { width: min(560px, calc(100vw - 24px)); max-height: 90dvh; border: 1px solid var(--borde); border-radius: 22px; background: var(--hoja); color: var(--tinta); padding: 1.6rem; box-shadow: var(--luz), var(--sombra-alta); }
dialog::backdrop { background: var(--telon); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.item-grande { font-size: 1.35rem; line-height: 1.45; background: var(--crema); border-radius: 14px; padding: 1rem 1.1rem; margin: 0 0 1.2rem; }
.opciones { display: grid; gap: .5rem; }
.opciones button { display: flex; gap: .8rem; align-items: center; text-align: left; }
kbd { font: 600 .8rem var(--mono); border: 1px solid currentColor; border-radius: 6px; padding: 0 .45rem; opacity: .8; }
.texto-nota { white-space: pre-wrap; overflow-wrap: anywhere; }
.error { color: var(--alerta); font-weight: 600; }

/* ---------- Revisión paso a paso ---------- */
.paso-actual { text-align: center; padding: 1rem 0; }
.paso-actual .titulo-paso { font: 600 1.4rem/1.4 var(--titulo); letter-spacing: -.02em; margin: .3rem 0 1rem; }
.paso-actual .acciones { justify-content: center; }
.puntos-paso { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.puntos-paso button { min-height: 44px; width: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; display: grid; place-items: center; }
.puntos-paso button:hover { background: transparent; }
.puntos-paso button::before { content: ''; width: 20px; height: 8px; border-radius: 4px; border: 1px solid var(--control); }
.puntos-paso button.si::before { background: var(--matcha); border-color: var(--matcha); }
.puntos-paso button[aria-current]::before { outline: 2px solid var(--moca); outline-offset: 2px; }

/* ---------- Gráficos ---------- */
.grafico p.pregunta { margin: -.5rem 0 .9rem; color: var(--suave); font-size: .9rem; }
.leyenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--suave); margin-bottom: .5rem; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.s1 { background: var(--serie-1); } .s2 { background: var(--serie-2); }
.barras { display: flex; gap: 2px; align-items: flex-end; height: 76px; border-bottom: 1px solid var(--control); }
.barras > div { flex: 1; min-width: 0; height: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; border-radius: 6px 6px 0 0; }
.barras i { flex: 1; max-width: 22px; border-radius: 4px 4px 0 0; }
.barras > div:hover, .barras > div:focus-visible { background: var(--crema); }
.barras.alta { height: 140px; }
.ejes { display: flex; gap: 2px; font: .7rem var(--mono); color: var(--suave); }
.ejes span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }
.mini { margin-bottom: .9rem; }
.mini strong { display: block; font-size: .85rem; font-weight: 600; }
.lectura { min-height: 1.6em; font: .8rem var(--mono); color: var(--tinta); margin: .4rem 0 0; }
.calor { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 22px); grid-auto-columns: 22px; gap: 3px; overflow-x: auto; padding: 3px; }
.calor i { border-radius: 6px; }
.calor i.nada { border: 1px dotted var(--borde); }
.n0 { background: var(--calor-0); } .n1 { background: var(--calor-1); } .n2 { background: var(--calor-2); } .n3 { background: var(--calor-3); } .n4 { background: var(--calor-4); }
.horizontal { display: grid; grid-template-columns: 80px minmax(0, 1fr) 90px; gap: .6rem; align-items: center; margin: .45rem 0; font: .8rem var(--mono); }
.horizontal div { height: 14px; }
.horizontal i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--serie-1); }
details { margin-top: .8rem; font-size: .85rem; }
summary { cursor: pointer; color: var(--suave); min-height: 44px; padding-block: .6rem; }

#aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; }
#aviso div { display: flex; gap: .8rem; align-items: center; background: var(--tinta); color: var(--pared); border-radius: 14px; padding: .6rem 1rem; max-width: calc(100vw - 24px); width: max-content; box-shadow: var(--sombra-alta); }
#aviso button { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
#aviso button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.acceso { max-width: 380px; margin: 10vh auto; }
.acceso label { margin-bottom: .8rem; }
.cargando { text-align: center; margin-top: 30vh; color: var(--suave); }

/* ---------- Animaciones: solo con movimiento permitido ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes abrir { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes velo { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.2); } 100% { transform: scale(1); } }
  @keyframes tilde { from { transform: rotate(45deg) scale(0); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
  @keyframes crecer-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes crecer-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes salir-vt { to { opacity: 0; } }
  @keyframes entrar-vt { from { opacity: 0; transform: translateY(8px); } }
  @keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
  .esqueleto i { animation: pulso 1.5s ease-in-out infinite; }
  .esqueleto i:nth-of-type(2) { animation-delay: .15s; } .esqueleto i:nth-of-type(3) { animation-delay: .3s; } .esqueleto i:nth-of-type(4) { animation-delay: .45s; }
  .anillo-valor { transition: stroke-dashoffset .7s var(--ease); }

  /* Entrada de vista: View Transitions si existen (.con-vt), si no CSS (.sin-vt) */
  ::view-transition-old(root) { animation: 160ms ease both salir-vt; }
  ::view-transition-new(root) { animation: 300ms var(--ease) both entrar-vt; }
  #vista.sin-vt { animation: entrar .3s var(--ease) backwards; }
  /* Escalonado con --i (backwards: al terminar queda libre para el hover) */
  #vista.entra h1, #vista.entra .avisos, #vista.entra .chips, #vista.entra .hoja { animation: entrar .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
  #vista.entra .fila { animation: entrar .3s var(--ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 30ms); }
  #vista.entra .barras i { transform-origin: bottom; animation: crecer-y .45s var(--ease) backwards; animation-delay: 160ms; }
  #vista.entra .horizontal i { transform-origin: left; animation: crecer-x .5s var(--ease) backwards; animation-delay: 160ms; }
  #vista.entra .calor i { animation: velo .4s ease backwards; animation-delay: 120ms; }

  /* Círculo de hábito o tarea: relleno, pop y check */
  .punto::before { transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
  .punto:active::before { transform: scale(.88); }
  .punto.pop::before { animation: pop .38s var(--ease); }
  .punto.pop::after { animation: tilde .3s var(--ease) .08s backwards; }

  /* Diálogos y aviso */
  dialog[open] { animation: abrir .26s var(--ease); }
  dialog[open]::backdrop { animation: velo .26s ease; }
  #aviso div { animation: subir .3s var(--ease); }

  /* Hover sutil: elevación de 1 a 2 px */
  button, a, .hoja, .fila, nav a { transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease), color .15s; }
  @media (hover: hover) {
    .hoja:hover { transform: translateY(-2px); box-shadow: var(--luz), var(--sombra-alta); }
    button:not(.liso):not(.punto):not(.contexto):not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--luz), 0 4px 10px -2px rgb(70 48 28 / .12); }
    button:not(:disabled):active { transform: translateY(0); }
    .fila:hover { transform: translateY(-1px); }
    nav a:not([aria-current]):hover { transform: translateX(2px); }
  }
}

/* ---------- Celular y pantalla angosta ---------- */
@media (max-width: 900px) { .hoy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .marco { display: block; }
  nav.lateral { display: none; }
  .barra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; position: fixed; z-index: 10; inset: auto 0 0 0; background: var(--nav-vidrio); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--borde); box-shadow: 0 -8px 24px -12px rgb(70 48 28 / .14); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
  .barra a, .barra button { display: flex; align-items: center; justify-content: center; gap: .25rem; min-height: 48px; padding: 0; font-size: .85rem; border: 1px solid transparent; border-radius: 16px; background: transparent; box-shadow: none; text-decoration: none; color: var(--tinta); }
  .barra a:hover, .barra button:hover { background: var(--hover); transform: none; }
  .barra [aria-current] { background: var(--hoja); font-weight: 600; border-color: var(--borde); box-shadow: var(--luz), var(--sombra); }
  main { padding: 1rem .85rem 6.5rem; }
  main > .captura { margin: -1rem -.85rem 1.2rem; padding: .6rem .85rem; }
  .cabeza-hoy { gap: .6rem; }
  .anillo-texto span { display: none; }
  .anillo { width: 56px; height: 56px; }
  h1 { font-size: 1.6rem; }
  .hoja { padding: 1.15rem 1rem; }
  .columnas, .tablero { grid-template-columns: minmax(0, 1fr); }
  .toques { grid-template-columns: minmax(0, 1fr); }
  .mas a { min-height: 48px; }
  #aviso { bottom: 84px; }
}
