/* hydrolab. admin + caja · sistema «Vidrio» (v2, 26/11/2026). Documentado en DISENO.md.
   Concepto: «Precisión que se disuelve» llevado a una herramienta. Negro y acero; el color de línea es LUZ detrás del vidrio,
   nunca pintura. El vidrio solo flota (barra, tab bar, hojas, menú); el contenido va en superficies translúcidas sin blur.
   Satoshi para cifras y títulos, Montserrat para todo lo demás. Movimiento con resortes (linear()), siempre interrumpible. */
@font-face { font-family: Satoshi; src: url(fonts/Satoshi-Variable.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/Montserrat-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* color base */
  --negro: #070708; --carbon: #111214; --carbon-2: #1A1B1E; --acero: #B9BEC4; --acero-2: #6E7378;
  --blanco: #F4F3EF; --gris: #A7A9AD; --gris-2: #8A8D92;
  --linea: rgba(244, 243, 239, .08); --linea-2: rgba(244, 243, 239, .14);
  /* color de línea = luz */
  --hc: #6CC24A; --sport: #3D7BFF; --beauty: #FF2E8F; --aviso: #E8B65C; --mal: #F2806F; --bien: #9FD98A;
  /* materiales */
  --vidrio: rgba(22, 23, 26, .56);            /* barras, tab bar, menú: flotan sobre contenido */
  --vidrio-hoja: rgba(20, 21, 24, .78);       /* hojas: más espesas, tapan más */
  --superficie: rgba(255, 255, 255, .035);    /* tarjetas de contenido: translúcidas, sin blur */
  --superficie-2: rgba(255, 255, 255, .06);
  --borde-luz: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .08));
  --brillo: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 .5px rgba(255, 255, 255, .04);
  --sombra-flota: 0 18px 50px -12px rgba(0, 0, 0, .7), 0 4px 14px -4px rgba(0, 0, 0, .5);
  --desenfoque: blur(26px) saturate(170%) brightness(1.04);
  /* forma */
  --r-s: 10px; --r: 14px; --r-l: 22px; --r-xl: 28px; --pastilla: 999px;
  /* tipo */
  --display: Satoshi, ui-sans-serif, system-ui, sans-serif; --texto: Montserrat, ui-sans-serif, system-ui, sans-serif;
  /* movimiento: resortes muestreados (damping 0,78 / 1,0) */
  --resorte: linear(0, 0.017, 0.06, 0.123, 0.197, 0.277, 0.36, 0.442, 0.52, 0.593, 0.66, 0.721, 0.775, 0.822, 0.862, 0.897, 0.925, 0.949, 0.968, 0.984, 0.995, 1.004, 1.011, 1.015, 1.018, 1.019, 1.02, 1.02, 1.019, 1.018, 1.016, 1.015, 1.013, 1.011, 1.01, 1.008, 1.007, 1.006, 1.005, 1.004, 1);
  --suave: linear(0, 0.014, 0.049, 0.098, 0.156, 0.218, 0.283, 0.346, 0.408, 0.467, 0.522, 0.573, 0.62, 0.663, 0.702, 0.737, 0.769, 0.797, 0.822, 0.844, 0.864, 0.881, 0.897, 0.91, 0.922, 0.932, 0.941, 0.949, 0.956, 0.962, 0.967, 0.972, 0.976, 0.979, 0.982, 0.984, 0.987, 0.988, 0.99, 0.991, 1);
  --t-resorte: 520ms; --t-suave: 440ms;
  --salida: cubic-bezier(.23, 1, .32, 1);
  --tab-alto: 64px; --seguro-abajo: env(safe-area-inset-bottom, 0px); --seguro-arriba: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --resorte: cubic-bezier(.34, 1.3, .64, 1); --suave: cubic-bezier(.23, 1, .32, 1); } }

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--negro); }
body { background: var(--negro); color: var(--blanco); font: 500 14px/1.45 var(--texto); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.num, .monto, td.n { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid rgba(244, 243, 239, .7); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: rgba(61, 123, 255, .45); }

/* ---------- Ambiente: negro, acero y tres luces de línea detrás de todo ---------- */
.ambiente { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--negro); }
.ambiente i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.ambiente .l1 { width: 46vmax; height: 46vmax; left: -18vmax; top: -20vmax; background: radial-gradient(circle, rgba(108, 194, 74, .32), transparent 62%); animation: deriva1 38s ease-in-out infinite alternate; }
.ambiente .l2 { width: 52vmax; height: 52vmax; right: -24vmax; top: 18vh; background: radial-gradient(circle, rgba(61, 123, 255, .30), transparent 62%); animation: deriva2 46s ease-in-out infinite alternate; }
.ambiente .l3 { width: 40vmax; height: 40vmax; left: 12vw; bottom: -26vmax; background: radial-gradient(circle, rgba(255, 46, 143, .20), transparent 62%); animation: deriva3 52s ease-in-out infinite alternate; }
/* acero cepillado + grano: quita el «degradé de app» y le da materia */
.ambiente::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes deriva1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes deriva2 { to { transform: translate(-6vw, -8vh) scale(.94); } }
@keyframes deriva3 { to { transform: translate(10vw, -4vh) scale(1.1); } }
.puerta-caja .ambiente .l1 { opacity: .32; } .puerta-caja .ambiente .l3 { opacity: .3; }

/* ---------- Material vidrio (solo para lo que flota) ---------- */
.vidrio { position: relative; background: var(--vidrio); -webkit-backdrop-filter: var(--desenfoque); backdrop-filter: var(--desenfoque); box-shadow: var(--brillo), var(--sombra-flota); isolation: isolate; }
/* el borde que «agarra la luz»: degradé arriba claro, abajo casi nada */
.vidrio::before, .superficie::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: var(--borde-luz); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* refracción: un reflejo especular curvo en el tercio de arriba */
.vidrio::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 60% at 30% -10%, rgba(255, 255, 255, .10), transparent 55%), radial-gradient(80% 50% at 100% 120%, rgba(255, 255, 255, .04), transparent 60%); }
.superficie { position: relative; background: var(--superficie); border-radius: var(--r-l); box-shadow: var(--brillo); }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--tab-alto) + var(--seguro-abajo) + 40px); }
main { max-width: 1080px; margin: 0 auto; padding: 8px 16px 0; }
main > * { position: relative; }

/* barra de arriba (celular): transparente, con borde de scroll difuso en vez de línea */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: calc(58px + var(--seguro-arriba)); padding: var(--seguro-arriba) 16px 0; }
.barra::before { content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(rgba(7, 7, 8, .78), rgba(7, 7, 8, .35) 70%, transparent);
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); opacity: 0; transition: opacity .3s; }
.con-scroll .barra::before { opacity: 1; }
.barra .logo { height: 18px; width: auto; }
.puerta { font: 650 10.5px/1 var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--blanco); padding: 6px 9px; border-radius: var(--pastilla); background: var(--superficie-2); box-shadow: var(--brillo); }
.barra .espacio { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 11px; border-radius: var(--pastilla); border: 0; cursor: pointer; font: 600 12px var(--texto); color: var(--gris); transition: transform .5s var(--resorte), color .2s; }
.sync > * { position: relative; z-index: 2; }
.sync:hover { color: var(--blanco); }
.sync:active { transform: scale(.94); transition-duration: .12s; }
.sync svg { width: 15px; height: 15px; }
.sync .vivo { width: 6px; height: 6px; border-radius: 50%; background: var(--bien); box-shadow: 0 0 10px var(--bien); }
.sync.girando svg { animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* tab bar flotante (celular): cápsula de vidrio + botón de carga aparte, como en iOS */
.nav { position: fixed; z-index: 30; left: 12px; bottom: calc(10px + var(--seguro-abajo)); right: 84px; height: var(--tab-alto); border-radius: var(--pastilla); padding: 6px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.nav a { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--gris); font-size: 10.5px; font-weight: 650; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; border-radius: var(--pastilla); transition: color .25s, transform .5s var(--resorte); }
.nav a svg { width: 22px; height: 22px; stroke-width: 1.75; transition: transform .5s var(--resorte); }
.nav a.activo { color: var(--blanco); }
.nav a.activo svg { stroke-width: 2.1; }
.nav a:active svg { transform: scale(.86); transition-duration: .1s; }
.nav .indicador { position: absolute; z-index: 1; top: 6px; bottom: 6px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: var(--pastilla); background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .08); transition: transform var(--t-resorte) var(--resorte), width var(--t-resorte) var(--resorte), opacity .2s; }
.nav .indicador.sin-anim { transition: none; }
.nav .grupo, .nav .logo-nav, .nav .pie-nav, .nav .cargar { display: none; }
.fab { position: fixed; z-index: 31; right: 12px; bottom: calc(10px + var(--seguro-abajo)); width: var(--tab-alto); height: var(--tab-alto); border-radius: 50%; display: grid; place-items: center; color: var(--negro); text-decoration: none;
  background: radial-gradient(120% 90% at 30% 10%, #fff, #E9E8E3 60%, #CFCFCB); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, .12), 0 14px 34px -8px rgba(0, 0, 0, .75), 0 0 0 .5px rgba(255, 255, 255, .5);
  transition: transform .5s var(--resorte); -webkit-tap-highlight-color: transparent; }
.fab svg { width: 26px; height: 26px; stroke-width: 2.3; }
.fab:active { transform: scale(.9); transition-duration: .12s; }

@media (min-width: 1024px) {
  .app { padding: 0 0 56px 276px; }
  .barra { display: none; }
  .fab { display: none; }
  .nav { top: 12px; left: 12px; bottom: 12px; right: auto; width: 248px; height: auto; border-radius: var(--r-xl); padding: 22px 12px 14px; grid-auto-flow: row; grid-auto-rows: 42px; align-content: start; overflow-y: auto; scrollbar-width: none; }
  .nav .logo-nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; margin-bottom: 18px; position: relative; z-index: 2; text-decoration: none; }
  .nav .logo-nav img { height: 20px; width: auto; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 14px; font-weight: 550; border-radius: 12px; }
  .nav a:not(.activo):not(.cargar):hover { color: var(--blanco); background: rgba(255, 255, 255, .035); }
  .nav a svg { width: 19px; height: 19px; }
  .nav .indicador { top: 0; left: 12px; right: 12px; bottom: auto; width: auto; height: 42px; border-radius: 12px; transform: translateY(var(--y, 0)); }
  .nav a.cargar { display: flex; height: 44px; margin-bottom: 10px; color: var(--negro); font-weight: 700; background: radial-gradient(120% 120% at 30% 0%, #fff, #E6E5E0); box-shadow: inset 0 1px 0 #fff, 0 8px 22px -8px rgba(0, 0, 0, .7); transition: transform .5s var(--resorte); }
  .nav a.cargar:active { transform: scale(.97); transition-duration: .1s; }
  .nav .grupo { display: block; align-self: end; padding: 16px 12px 7px; position: relative; z-index: 2; font: 650 10.5px/1 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2); }
  .nav .pie-nav { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; margin-top: 18px; padding: 12px 6px 0 12px; border-top: 1px solid var(--linea); }
  .nav .pie-nav .yo { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; }
  .nav .pie-nav .yo b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav .pie-nav .yo span { color: var(--gris-2); }
  .nav .pie-nav .sync { padding: 0 10px; height: 34px; background: var(--superficie-2); box-shadow: var(--brillo); }
  main { padding: 40px 44px 0; }
}

/* ---------- Transiciones de pantalla ---------- */
#vista { transition: opacity .18s, filter .18s; }
#vista.saliendo { opacity: .4; filter: saturate(.6); }
.pantalla > * { animation: entra var(--t-suave) var(--suave) both; animation-delay: calc(min(var(--i, 0), 7) * 45ms); }
.pantalla.desde-der > * { --dx: 18px; } .pantalla.desde-izq > * { --dx: -18px; }
@keyframes entra { from { opacity: 0; transform: translate(var(--dx, 0), 10px); filter: blur(4px); } }

/* ---------- Tipografía ---------- */
h1, .titulo { font: 750 32px/1 var(--display); letter-spacing: -.04em; }
h2 { font: 700 19px/1.15 var(--display); letter-spacing: -.022em; }
h3 { font: 650 14px/1.3 var(--texto); }
.sub { color: var(--gris); font-size: 13px; }
.chico { font-size: 12px; color: var(--gris-2); }
.etiqueta { font: 650 10.5px/1.2 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2); }
.cifra { font: 750 58px/.92 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.cifra.m { font-size: 36px; letter-spacing: -.04em; }
.cifra.s { font-size: 25px; letter-spacing: -.035em; }
.cifra .pesos { font-size: .5em; letter-spacing: -.01em; color: var(--gris); margin-right: 2px; vertical-align: .66em; font-weight: 650; }
.cifra .neg { margin-right: .06em; }
.menos { color: var(--gris); }

.encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 10px 0 22px; flex-wrap: wrap; }
.encabezado .sub { margin-top: 8px; max-width: 52ch; }
.seccion { margin-top: 34px; }
.seccion > h2 { margin: 0 4px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.seccion > h2 a, .seccion > h2 button { font: 600 13px var(--texto); letter-spacing: 0; color: var(--gris); text-decoration: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; transition: color .2s; }
.seccion > h2 a::after { content: '›'; font-size: 17px; line-height: 0; transform: translateY(-1px); transition: transform .4s var(--resorte); }
.seccion > h2 a:hover { color: var(--blanco); } .seccion > h2 a:hover::after { transform: translate(3px, -1px); }

/* ---------- Hoy: héroe con la lente (el punto agrandado = estado «mezcla») ---------- */
.hero { position: relative; padding: 26px 22px 22px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); box-shadow: var(--brillo); }
.hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--borde-luz); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero > :not(.lente) { position: relative; z-index: 2; }
.lente { position: absolute; z-index: 1; right: -46px; top: -56px; width: 230px; height: 230px; border-radius: 50%; pointer-events: none; }
.lente .luces { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.lente .luces i { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(26px); opacity: .85; }
.lente .luces i:nth-child(1) { left: 2%; top: 30%; background: var(--hc); opacity: .55; }
.lente .luces i:nth-child(2) { right: 0; top: 4%; background: var(--sport); opacity: .6; }
.lente .luces i:nth-child(3) { left: 26%; bottom: -10%; background: var(--beauty); opacity: .45; }
.lente .cristal { position: absolute; inset: 0; border-radius: 50%; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 32%, transparent 52%), radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, .07) 70%, rgba(255, 255, 255, .16) 72%, transparent 73%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -18px 40px rgba(0, 0, 0, .35); }
.lente .nucleo { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 24px rgba(255, 255, 255, .6); }
.lente.vivo .nucleo { animation: late 2.4s var(--salida) infinite; }
.lente .luces { animation: respira 9s ease-in-out infinite alternate; }
@keyframes respira { to { transform: rotate(40deg) scale(1.06); } }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(244, 243, 239, .5), 0 0 24px rgba(255, 255, 255, .6); } 70%, 100% { box-shadow: 0 0 0 20px rgba(244, 243, 239, 0), 0 0 24px rgba(255, 255, 255, .6); } }
.hero .saludo { font: 700 15px/1.3 var(--display); letter-spacing: -.01em; color: var(--blanco); }
.hero .fila { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 30px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linea); }
.hero .fila .cifra { display: block; margin-top: 8px; }
@media (max-width: 420px) { .hero { padding: 22px 18px 18px; } .hero .fila { grid-template-columns: 1fr 1fr auto; gap: 12px 14px; } .hero .fila .cifra.s { font-size: 21px; } .hero .fila .etiqueta { letter-spacing: .08em; } .lente { width: 190px; height: 190px; right: -58px; top: -60px; } }
@media (min-width: 1024px) { .hero { padding: 34px 34px 28px; } .hero .cifra:not(.s) { font-size: 76px; } .lente { width: 320px; height: 320px; right: -40px; top: -80px; } }

/* ---------- Superficies de contenido ---------- */
.lista, .alertas, .datos, .productos, .barras, .scroll-x, .vacio, .socio, .nota-borrador, .tabla-sola { position: relative; border-radius: var(--r-l); background: var(--superficie); box-shadow: var(--brillo); }
:is(.lista, .alertas, .datos, .scroll-x, .vacio, .socio, .barras, .tabla-sola)::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .02)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* indicadores: una tira, no cuatro tarjetas */
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.datos > div { padding: 16px 18px; position: relative; }
.datos > div:nth-child(even)::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--linea); }
.datos > div:nth-child(n+3)::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--linea); }
.datos .cifra { display: block; margin-top: 9px; }
@media (min-width: 760px) {
  .datos { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .datos > div { padding: 20px 22px; }
  .datos > div + div::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--linea); }
  .datos > div:nth-child(n+3)::after { display: none; }
}

/* productos: foto real del envase dentro del círculo, con la luz de su línea detrás (gobo) */
.productos { display: grid; gap: 10px; background: none; box-shadow: none; }
.producto { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--r-l); background: var(--superficie); box-shadow: var(--brillo); overflow: hidden; }
.producto::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.producto::after { content: ''; position: absolute; left: -30px; top: 50%; width: 150px; height: 150px; margin-top: -75px; border-radius: 50%; background: radial-gradient(circle, var(--luz), transparent 66%); opacity: .2; pointer-events: none; }
.producto > * { position: relative; z-index: 1; }
.producto .foto { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #0d0d0f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 28px -4px var(--luz, transparent); }
.producto .foto img { width: 100%; height: 100%; object-fit: cover; }
.producto .nombre { font: 700 17px/1.1 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.producto .nombre i { width: 7px; height: 7px; border-radius: 50%; background: var(--luz); flex: none; box-shadow: 0 0 10px var(--luz); }
.producto .detalle { color: var(--gris); font-size: 12.5px; margin-top: 4px; }
.producto { grid-template-columns: 58px 1fr; }
.producto .foto { grid-row: span 2; align-self: start; margin-top: 2px; }
.producto .derecha { grid-column: 2; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.producto .derecha .cifra { font-size: 34px; }
@media (min-width: 900px) {
  .productos { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .producto { grid-template-columns: 64px 1fr; padding: 20px; align-content: start; }
  .producto::after { left: auto; right: -50px; top: -50px; margin: 0; width: 220px; height: 220px; }
  .producto .foto { width: 64px; height: 64px; grid-row: auto; margin: 0; }
  .producto .derecha { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: baseline; gap: 10px; margin-top: 14px; text-align: left; }
  .producto .derecha .cifra { font-size: 48px; }
}

/* listas agrupadas (estilo iOS inset grouped) */
.lista { overflow: hidden; }
.item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; padding: 14px 18px; text-decoration: none; min-height: 56px; }
.item + .item::after, .dia + .item::after { content: none; }
.lista > .item:not(:first-child)::before, .lista > .dia + .item::before { content: ''; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: var(--linea); }
.lista > .dia + .item::before { content: none; }
button.item, a.item { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; transition: background .2s; border-radius: 0; -webkit-tap-highlight-color: transparent; }
button.item:hover, a.item:hover { background: rgba(255, 255, 255, .03); }
button.item:active, a.item:active { background: rgba(255, 255, 255, .06); transition-duration: 0s; }
.item .t { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.item .d { color: var(--gris); font-size: 12.5px; grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.item .monto { font: 700 17px/1 var(--display); letter-spacing: -.015em; text-align: right; grid-row: 1 / span 3; grid-column: 2; align-self: center; }
.item .monto small { display: block; font: 550 11.5px var(--texto); letter-spacing: 0; color: var(--gris-2); margin-top: 6px; }
.item .monto small .btn { margin-top: 2px; }
.dia { display: flex; justify-content: space-between; padding: 18px 18px 8px; font: 650 10.5px/1 var(--texto); letter-spacing: .13em; text-transform: uppercase; color: var(--gris-2); background: rgba(255, 255, 255, .015); }
.dia:not(:first-child) { border-top: 1px solid var(--linea); }
.marca { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--gris); }
.marca svg { width: 13px; height: 13px; }
.marca.ok { color: var(--bien); }
.marca.aviso { color: var(--aviso); }
.marca.aviso::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.puntos { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 6px; }
.puntos i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

/* íconos en filas: «tejas» como en Ajustes de iOS */
.item > svg:first-child { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: var(--blanco); background: var(--superficie-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.item > svg.flecha { width: 16px; height: 16px; justify-self: end; color: var(--gris-2); transition: transform .4s var(--resorte); }
.item:hover > svg.flecha { transform: translateX(3px); }
.item small svg, .item .d svg { width: 13px; height: 13px; vertical-align: -2px; }

/* Para hacer */
.alerta { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 15px 18px; text-decoration: none; transition: background .2s; }
.alerta + .alerta::before { content: ''; position: absolute; left: 72px; right: 0; top: 0; height: 1px; background: var(--linea); }
.alerta:hover { background: rgba(255, 255, 255, .03); }
.alerta .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 750 19px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--superficie-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.alerta.urgente .n { color: #1a1206; background: radial-gradient(120% 120% at 30% 0%, #F6D08A, var(--aviso)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 22px -4px rgba(232, 182, 92, .6); }
.alerta .flecha { color: var(--gris-2); width: 16px; height: 16px; transition: transform .4s var(--resorte); }
.alerta:hover .flecha { transform: translateX(3px); }
.alertas .ok-todo { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--gris); }
.alertas .ok-todo i { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(159, 217, 138, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.alertas .ok-todo i::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--bien); box-shadow: 0 0 12px var(--bien); }
.frase { font: 600 16.5px/1.5 var(--texto); color: var(--gris); max-width: 42ch; }
.frase b { color: var(--blanco); font-weight: 650; font-variant-numeric: tabular-nums; }
.caja-mes { padding: 22px; }

/* estados vacíos: el punto se dispersa (concentración → dispersión), con voz */
.vacio { padding: 30px 22px 26px; overflow: hidden; }
.vacio::after { content: ''; display: block; position: absolute; right: 22px; top: 30px; width: 120px; height: 28px; opacity: .9; pointer-events: none;
  background: radial-gradient(circle 7px at 7px 14px, var(--blanco) 98%, transparent), radial-gradient(circle 4.5px at 30px 10px, rgba(244, 243, 239, .7) 98%, transparent), radial-gradient(circle 3.5px at 46px 19px, rgba(244, 243, 239, .5) 98%, transparent),
    radial-gradient(circle 2.6px at 62px 8px, rgba(244, 243, 239, .38) 98%, transparent), radial-gradient(circle 2px at 76px 17px, rgba(244, 243, 239, .28) 98%, transparent), radial-gradient(circle 1.6px at 90px 11px, rgba(244, 243, 239, .2) 98%, transparent), radial-gradient(circle 1.2px at 104px 20px, rgba(244, 243, 239, .14) 98%, transparent), radial-gradient(circle 1px at 116px 9px, rgba(244, 243, 239, .1) 98%, transparent);
  animation: dispersa-v 3.6s var(--salida) infinite alternate; }
@keyframes dispersa-v { from { clip-path: inset(0 85% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vacio h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; max-width: 24ch; padding-right: 120px; }
.vacio p { color: var(--gris); margin-top: 10px; max-width: 48ch; }
.vacio .acciones { margin-top: 18px; }
@media (max-width: 420px) { .vacio::after { position: static; margin-bottom: 18px; } .vacio h3 { padding-right: 0; } }

/* ---------- Controles ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pastilla); border: 0; background: var(--superficie-2); box-shadow: var(--brillo), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .5s var(--resorte), background .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn.primario { color: var(--negro); background: radial-gradient(130% 120% at 30% 0%, #fff, #E8E7E2 70%); box-shadow: inset 0 1px 0 #fff, 0 8px 22px -10px rgba(255, 255, 255, .35); }
.btn.primario:hover { background: #fff; }
.btn.chico { height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn.peligro { color: var(--mal); background: rgba(242, 128, 111, .1); box-shadow: inset 0 0 0 1px rgba(242, 128, 111, .25); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; }

.mes { display: inline-flex; align-items: center; height: 42px; border-radius: var(--pastilla); background: var(--superficie-2); box-shadow: var(--brillo), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mes button { width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: var(--gris); display: grid; place-items: center; border-radius: 50%; transition: color .2s, transform .5s var(--resorte); }
.mes button:hover { color: var(--blanco); }
.mes button:active { transform: scale(.85); transition-duration: .1s; }
.mes button svg { width: 16px; height: 16px; }
.mes span { min-width: 116px; text-align: center; font-weight: 650; text-transform: capitalize; font-size: 13.5px; }

/* control segmentado con «pulgar» de vidrio que viaja con resorte */
.segmentos { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(0, 0, 0, .3); border-radius: 14px; padding: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.segmentos .pulgar { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 11px; background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 10px -2px rgba(0, 0, 0, .5); transition: transform var(--t-resorte) var(--resorte), width var(--t-resorte) var(--resorte); }
.segmentos .pulgar.sin-anim { transition: none; }
.segmentos button { position: relative; z-index: 1; height: 42px; border: 0; border-radius: 11px; background: none; color: var(--gris); font-weight: 650; font-size: 13.5px; cursor: pointer; transition: color .2s; white-space: nowrap; padding: 0 6px; -webkit-tap-highlight-color: transparent; }
.segmentos button.on { color: var(--blanco); }
.segmentos:not(.listo) button.on { background: rgba(255, 255, 255, .13); }

.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; margin-bottom: 14px; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; height: 36px; padding: 0 15px; border-radius: var(--pastilla); border: 0; background: var(--superficie-2); box-shadow: var(--brillo); color: var(--gris); font-weight: 600; font-size: 13px; cursor: pointer; text-transform: capitalize; transition: transform .5s var(--resorte), background .2s, color .2s; }
.filtros button:active { transform: scale(.94); transition-duration: .1s; }
.filtros button.on { color: var(--negro); background: var(--blanco); }

.campo { display: grid; gap: 7px; }
.campo > span { font-size: 12.5px; font-weight: 600; color: var(--gris); padding-left: 2px; }
.campo input, .campo select, .campo textarea { width: 100%; height: 50px; padding: 0 15px; border-radius: var(--r); border: 0; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 2px rgba(0, 0, 0, .35); font-size: 16px; transition: box-shadow .2s, background .2s; }
.campo textarea { height: 88px; padding: 13px 15px; resize: vertical; }
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A7A9AD' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.campo select option { background: #17181b; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, .55), 0 0 0 4px rgba(244, 243, 239, .07); }
.campo input::placeholder, .campo textarea::placeholder { color: #6d7075; }
.campo .ayuda { font-size: 12px; color: var(--gris-2); padding-left: 2px; }
.grilla { display: grid; gap: 16px; }
.grilla.dos { grid-template-columns: 1fr 1fr; gap: 12px; }
.monto-grande { position: relative; }
.monto-grande input { height: 84px; font: 750 46px/1 var(--display); letter-spacing: -.045em; padding-left: 44px; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .22); }
.monto-grande::before { content: '$'; position: absolute; z-index: 1; left: 18px; bottom: 25px; font: 700 26px/1 var(--display); color: var(--gris); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--blanco); }
.archivo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); cursor: pointer; color: var(--gris); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .2s, transform .5s var(--resorte); }
.archivo:hover { color: var(--blanco); background: rgba(255, 255, 255, .03); }
.archivo:active { transform: scale(.98); transition-duration: .1s; }
.archivo img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.archivo svg { width: 22px; height: 22px; flex: none; }
.archivo input { display: none; }
.archivo.grande { padding: 14px; color: var(--blanco); font-weight: 650; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.archivo.grande > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blanco); color: var(--negro); }

/* ---------- Hojas (bottom sheet en el celular, ventana en escritorio) ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .35s var(--salida); }
.velo.on { opacity: 1; }
.hoja-abierta #raiz .app { transform: scale(.965) translateY(6px); border-radius: 22px; overflow: hidden; filter: brightness(.8); }
#raiz .app { transition: transform var(--t-suave) var(--suave), filter .35s, border-radius .35s; transform-origin: 50% 0; }
.hoja { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--vidrio-hoja); padding: 10px 18px calc(22px + var(--seguro-abajo)); transform: translateY(105%); transition: transform var(--t-resorte) var(--suave); }
.hoja.on { transform: translateY(0); }
.hoja.arrastrando { transition: none; }
.hoja > * { position: relative; z-index: 2; }
.hoja .asa { display: block; width: 40px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .22); margin: 0 auto 14px; }
.hoja h2 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hoja h2 button { flex: none; background: var(--superficie-2); border: 0; color: var(--gris); cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--brillo); transition: transform .5s var(--resorte), color .2s; }
.hoja h2 button:hover { color: var(--blanco); }
.hoja h2 button:active { transform: scale(.88); transition-duration: .1s; }
.hoja h2 button svg { width: 18px; height: 18px; }
.hoja .pie { position: sticky; bottom: calc(-22px - var(--seguro-abajo)); padding: 22px 18px calc(22px + var(--seguro-abajo)); margin: 8px -18px calc(-22px - var(--seguro-abajo)); display: flex; gap: 10px;
  background: linear-gradient(rgba(19, 20, 23, 0), #131417 34%); }
.hoja .pie .btn { flex: 1; height: 52px; font-size: 15px; }
.hoja .texto-largo { color: var(--gris); }
@media (min-width: 760px) {
  .hoja { left: 50%; right: auto; bottom: auto; top: 50%; width: 540px; max-height: 86dvh; border-radius: var(--r-xl); padding-top: 22px; opacity: 0; filter: blur(8px);
    transform: translate(-50%, -47%) scale(.94); transition: transform var(--t-resorte) var(--resorte), opacity .25s, filter .3s; }
  .hoja.on { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: none; }
  .hoja .asa { display: none; }
  .hoja-abierta #raiz .app { transform: none; border-radius: 0; filter: brightness(.7) saturate(.8); }
}

/* aviso flotante: cápsula de vidrio */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-alto) + var(--seguro-abajo) + 22px); display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: var(--pastilla); font-weight: 650; font-size: 14px; max-width: calc(100vw - 32px);
  background: rgba(30, 31, 35, .72); -webkit-backdrop-filter: var(--desenfoque); backdrop-filter: var(--desenfoque); box-shadow: var(--brillo), var(--sombra-flota), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translate(-50%, 24px) scale(.9); opacity: 0; filter: blur(6px); transition: transform var(--t-resorte) var(--resorte), opacity .25s, filter .3s; pointer-events: none; }
.toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bien); box-shadow: 0 0 12px var(--bien); }
.toast.on { transform: translate(-50%, 0) scale(1); opacity: 1; filter: none; }
.toast.error::before { background: var(--mal); box-shadow: 0 0 12px var(--mal); }
@media (min-width: 1024px) { .toast { bottom: 28px; left: calc(50% + 136px); } }

/* esqueleto de carga: el vidrio se llena de luz */
.esqueleto { display: grid; gap: 12px; }
.esqueleto i { display: block; height: 18px; border-radius: 9px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%); background-size: 300% 100%; animation: brilla 1.4s var(--salida) infinite; }
.esqueleto i.alto { height: 150px; border-radius: var(--r-xl); }
.esqueleto i.medio { width: 70%; }
.esqueleto i.fila { height: 62px; border-radius: var(--r-l); }
@keyframes brilla { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* tablas (solo donde hay datos para comparar) */
.scroll-x { overflow-x: auto; padding: 6px 18px 4px; }
.tabla-sola { padding: 6px 18px 4px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; font: 650 10.5px/1 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--gris-2); padding: 14px 12px 12px 0; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .n { text-align: right; font-weight: 650; }
.tabla th.n { text-align: right; }
.tabla tbody tr { transition: background .2s; }
.tabla tbody tr:hover { background: rgba(255, 255, 255, .025); }

/* barras (egresos por categoría, serie) */
.barras { display: grid; gap: 14px; padding: 18px; }
.barra-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; font-size: 13.5px; }
.barra-h .b { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--acero-2), var(--acero)); transform-origin: left; animation: crece .9s var(--resorte) both; box-shadow: 0 0 14px -4px rgba(185, 190, 196, .6); }
.barra-h:nth-child(2) .b { animation-delay: 60ms; } .barra-h:nth-child(3) .b { animation-delay: 120ms; } .barra-h:nth-child(n+4) .b { animation-delay: 180ms; }
@keyframes crece { from { transform: scaleX(0); } }
.serie { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 72px); gap: 10px; align-items: end; height: 150px; padding-top: 10px; border-bottom: 1px solid var(--linea); }
.serie .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.serie .par { display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.serie .par i { width: 10px; border-radius: 4px 4px 0 0; background: var(--blanco); min-height: 2px; transform-origin: bottom; animation: sube .8s var(--resorte) both; }
.serie .par i.e { background: var(--acero-2); }
@keyframes sube { from { transform: scaleY(0); } }
.serie-et { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 72px); gap: 10px; margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--gris-2); text-transform: capitalize; }
.leyenda { display: flex; gap: 16px; font-size: 12px; color: var(--gris); margin-top: 10px; }
.leyenda i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--blanco); margin-right: 6px; }
.leyenda i.e { background: var(--acero-2); }

/* socios */
.socio { padding: 20px; display: grid; gap: 18px; margin-top: 14px; }
.socio .cabeza { display: flex; align-items: center; gap: 14px; }
.socio .datos { background: rgba(0, 0, 0, .18); box-shadow: none; }
.socio .datos::before { display: none; }
.socio .lista { background: rgba(0, 0, 0, .18); box-shadow: none; }
.socio .lista::before { display: none; }
.camino { position: relative; height: 34px; }
.camino .riel { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--linea-2); border-radius: 2px; }
.camino .hecho { position: absolute; left: 0; top: 16px; height: 2px; background: var(--blanco); border-radius: 2px; transform-origin: left; animation: crece 1s var(--resorte) both; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }
.camino .hito { position: absolute; top: 11px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--negro); box-shadow: inset 0 0 0 2px var(--gris-2); }
.camino .hito.pasado { background: var(--blanco); box-shadow: none; }
.camino .hoy { position: absolute; top: 6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle, var(--blanco) 0 4px, rgba(244, 243, 239, .18) 5px 100%); }
.camino-et { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--gris-2); }
.sello { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--aviso); padding: 6px 11px; border-radius: var(--pastilla); background: rgba(232, 182, 92, .1); }
.sello.ok { color: var(--bien); background: rgba(159, 217, 138, .1); }
.socio .frase { font-size: 15px; }

.nota-borrador { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; color: var(--gris); font-size: 13px; background: rgba(232, 182, 92, .06); box-shadow: inset 0 0 0 1px rgba(232, 182, 92, .16); }
.nota-borrador::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--aviso); box-shadow: 0 0 10px var(--aviso); }
.nota-borrador b { color: var(--aviso); font-weight: 650; }
.texto-largo { color: var(--gris); max-width: 62ch; }
.texto-largo b { color: var(--blanco); font-weight: 650; }

/* ---------- Login: la lente sobre las tres luces ---------- */
.login { position: relative; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: calc(28px + var(--seguro-arriba)) 22px calc(28px + var(--seguro-abajo)); max-width: 460px; margin: 0 auto; }
.login .arriba { align-self: center; width: 100%; position: relative; z-index: 2; }
.login .logo { height: 28px; }
.login .marca-puerta { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.login h1 { font-size: 42px; margin-bottom: 12px; }
.login .tarjeta { margin-top: 28px; padding: 20px; border-radius: var(--r-xl); }
.login form { display: grid; gap: 12px; position: relative; z-index: 2; }
.login .btn { height: 54px; margin-top: 4px; font-size: 15px; }
.login .error { color: var(--mal); font-size: 13.5px; }
.login .error:empty { display: none; }
.login .pie-login { font-size: 12px; color: var(--gris-2); position: relative; z-index: 2; letter-spacing: .02em; }
.login .lente { position: fixed; z-index: 0; right: -140px; top: -110px; width: 400px; height: 400px; }
.login .lente .nucleo { left: 38%; top: 66%; }
.login .lente .luces i { filter: blur(40px); }
.login .lente .nucleo { width: 16px; height: 16px; margin: -8px; }
@media (min-width: 900px) { .login .lente { right: 8vw; top: 50%; margin-top: -260px; width: 520px; height: 520px; } .login .lente .nucleo { left: 50%; top: 50%; } .login { margin-left: 10vw; } }
.login .tiembla { animation: tiembla .42s var(--salida); }
@keyframes tiembla { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* al guardar: el punto se dispersa (concentración → dispersión) */
.dispersion { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.dispersion i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--blanco); animation: dispersa .75s var(--salida) forwards; }
@keyframes dispersa { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

@media (min-width: 1024px) { .solo-celu { display: none !important; } }

/* ---------- Accesibilidad y respaldo ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pantalla > * { animation: none; }
  .hoja-abierta #raiz .app { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --vidrio: #17181b; --vidrio-hoja: #17181b; --superficie: #121315; --superficie-2: #1d1e21; }
  .vidrio, .toast, .barra::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ambiente i { display: none; }
}
@media (prefers-contrast: more) { :root { --gris: #C9CBCE; --gris-2: #B3B6BA; --linea: rgba(244, 243, 239, .22); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --vidrio: rgba(20, 21, 24, .96); --vidrio-hoja: #16171a; } }

/* impresión del reporte mensual */
@media print {
  :root { --negro: #fff; --blanco: #0A0A0B; --gris: #555; --gris-2: #777; --linea: #ddd; --linea-2: #ccc; --carbon: #fff; --carbon-2: #f3f3f3; --superficie: #fff; --superficie-2: #f3f3f3; }
  body { background: #fff; color: #0A0A0B; }
  .barra, .nav, .fab, .no-imprimir, .toast, .ambiente, .lente { display: none !important; }
  .app { padding: 0 !important; }
  main { padding: 0 !important; max-width: none; }
  .seccion { break-inside: avoid; }
  .pantalla > * { animation: none !important; }
  :is(.lista, .datos, .scroll-x, .tabla-sola, .hero)::before { display: none; }
}
