/* Panel de Cronos del Jardín — v3 (29/11/2026: auditoría en pantalla, celu primero). Sale del motor panel-negocio (marcas-blancas), adaptado a relojes.
   Marca con mesura («lujo silencioso»): negro #111111 en el armazón, oro #D4AF37 solo en lo que importa, papel neutro de fondo.
   Cinzel (la letra del logo) solo en los títulos grandes; Montserrat para leer. Movimiento: cubic-bezier(.16,1,.3,1), nada lineal. */
:root {
  --papel: #F3F1EC; --blanco: #FFFFFF; --tinta: #141311; --tinta-2: #5F5B54; --tinta-3: #8A857C; --linea: #E3DFD6;
  --falta: #6b665e; /* gris de «falta el dato»: 5,6:1 sobre blanco (antes #8A857C, 3,67:1) */
  --pestanas: 52px; /* alto de la barra de pestañas del celu */
  --negro: #111111; --negro-2: #1C1B19; --plata: #C0C0C0;
  --oro: #D4AF37; --oro-texto: #7D6118; --oro-dato: #9C7A22; --oro-suave: #F6EFD9;
  --bien: #2F6B2A; --bien-suave: #E6F0E3; --mal: #A3261E; --mal-suave: #F8E5E2;
  --titulos: "Cinzel", Georgia, serif;
  --texto: "Montserrat", system-ui, sans-serif;
  --salida: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radio: 14px; --sombra: 0 1px 2px rgba(20,19,17,.04), 0 8px 22px -12px rgba(20,19,17,.22);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-padding-top: calc(64px + env(safe-area-inset-top)); scroll-padding-bottom: calc(var(--pestanas) + env(safe-area-inset-bottom) + 12px); }
body { background: var(--papel); color: var(--tinta); font: 400 1rem/1.5 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--oro-dato); outline-offset: 3px; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Armazón ---------- */
.lateral { display: none; }
.barra { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; padding-top: calc(.55rem + env(safe-area-inset-top)); background: var(--negro); color: #EDEBE6; }
.barra img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.barra-nombre { font: 700 1rem var(--titulos); letter-spacing: .12em; color: var(--oro); }
.aviso-prueba { background: var(--oro); color: var(--negro); font-weight: 800; font-size: .74rem; padding: .18rem .6rem; border-radius: 99px; white-space: nowrap; }
.salir { margin-left: auto; min-height: 44px; min-width: 44px; background: none; border: 0; color: inherit; font: 600 .92rem var(--texto); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .4rem .6rem; }
.error-general { position: sticky; top: 52px; z-index: 6; margin: 0; padding: .8rem 1rem; background: var(--mal-suave); color: var(--mal); font-weight: 700; text-align: center; }

/* Abajo deja el alto de las pestañas: nada (un error, un botón) queda tapado por la barra del celu */
.pantalla { max-width: 1180px; margin: 0 auto; padding: 1.1rem 1rem calc(2.5rem + var(--pestanas) + env(safe-area-inset-bottom)); }
[data-pantalla] { scroll-margin-top: calc(64px + env(safe-area-inset-top)); }
.pantalla.angosta { max-width: 640px; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .2rem 0 1.1rem; }
h1 { font: 700 2rem/1.1 var(--titulos); margin: 0; letter-spacing: .03em; }
.fecha { margin: 0 0 .3rem; color: var(--tinta-2); font-weight: 600; font-size: .92rem; }
.fecha::first-letter { text-transform: uppercase; }
.bajada { margin: .3rem 0 0; color: var(--tinta-2); font-size: .93rem; max-width: 62ch; }
.nota { color: var(--tinta-2); font-size: .9rem; margin: .5rem 0 0; }
.nota:empty { display: none; }
.nota-error { color: var(--mal); font-weight: 700; margin-top: .9rem; }

.grilla { display: grid; gap: 1rem; margin-bottom: 1rem; }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem 1.15rem 1.2rem; box-shadow: var(--sombra); margin-bottom: 1rem; min-width: 0; }
.grilla > .tarjeta { margin-bottom: 0; }
.tarjeta h2 { font: 700 1.02rem/1.3 var(--texto); margin: 0; }

/* ---------- Números grandes ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: .9rem 1rem 1rem; box-shadow: var(--sombra); min-width: 0; }
.kpi .etiqueta { display: block; color: var(--tinta-2); font-size: .84rem; font-weight: 600; }
.kpi .valor { display: block; font-size: clamp(1.4rem, 5vw, 1.95rem); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: .15rem; line-height: 1.15; overflow-wrap: anywhere; }
.kpi .valor.falta { font-size: 1.15rem; color: var(--falta); font-weight: 700; }
.kpi .detalle { display: block; color: var(--tinta-2); font-size: .82rem; margin-top: .35rem; line-height: 1.4; }
.kpi.destacado { background: var(--negro); color: #F3F1EC; border-color: var(--negro); }
.kpi.destacado .etiqueta, .kpi.destacado .detalle { color: #C9C5BC; }
.kpi.destacado .valor { color: var(--oro); }

/* ---------- Para hacer ---------- */
.tareas { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tareas li { background: var(--papel); border-radius: 12px; padding: .75rem .9rem; border-left: 4px solid var(--oro); min-width: 0; }
.tareas li.nada { border-left-color: var(--bien); }
.tareas li.urgente { border-left-color: var(--mal); }
.tareas strong { display: block; overflow-wrap: anywhere; }
.tareas li > span { display: block; color: var(--tinta-2); font-size: .9rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.accion { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border-radius: 99px; border: 1.5px solid var(--linea); background: var(--blanco); font: 700 .86rem var(--texto); color: var(--tinta); text-decoration: none; cursor: pointer; }
.accion.fuerte { background: var(--negro); color: #F3F1EC; border-color: var(--negro); }
.accion.wa { border-color: #1F7A45; color: #145A32; }
.accion:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Relojes ---------- */
.buscador { display: grid; gap: .7rem; margin-bottom: .4rem; }
.filtros { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filtro { flex: none; min-height: 44px; padding: .45rem .8rem; border-radius: 99px; border: 1.5px solid var(--linea); background: var(--blanco); font: 700 .84rem var(--texto); color: var(--tinta-2); cursor: pointer; }
.filtro b { font-weight: 600; color: var(--falta); margin-left: .2rem; font-variant-numeric: tabular-nums; }
.filtro[aria-pressed=true] { background: var(--negro); border-color: var(--negro); color: #F3F1EC; }
.filtro[aria-pressed=true] b { color: var(--oro); }
/* Con texto en el buscador la búsqueda es en todos los estados: los filtros quedan sueltos y atenuados */
.filtros.buscando .filtro { opacity: .6; }
.grilla-relojes { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tarjeta-reloj { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--sombra); }
.foto { position: relative; aspect-ratio: 1; background: #1a1917; overflow: hidden; }
.foto img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.foto .sin-foto { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: .5rem; color: #8F8A80; font-size: .8rem; font-weight: 600; }
.foto .sin-foto b { display: block; font: 700 1.6rem var(--titulos); color: var(--oro); }
.estado { position: absolute; z-index: 2; top: .5rem; left: .5rem; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--tinta); }
.estado.e-vendido { background: var(--negro); color: var(--oro); }
.estado.e-oculto, .estado.e-de-baja { background: #E9E6DF; color: var(--tinta-2); }
.estado.e-en-preparacion { background: var(--oro-suave); color: var(--oro-texto); }
.estado.e-reservado { background: var(--oro); color: var(--negro); }
.tarjeta-reloj .info { padding: .65rem .75rem .8rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.tarjeta-reloj .m { font: 700 .7rem/1.2 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarjeta-reloj .t { font-size: .88rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta-reloj .p { margin-top: auto; padding-top: .35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tarjeta-reloj .p.falta { color: var(--mal); font-weight: 700; font-size: .85rem; }
.vacio { color: var(--tinta-2); background: var(--blanco); border: 1px dashed var(--linea); border-radius: 12px; padding: 1rem; grid-column: 1 / -1; }

/* ---------- Ficha (hoja que sube en el celu, panel al costado en la compu) ---------- */
.ficha { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; inset: auto 0 0 0; border-radius: 20px 20px 0 0; background: var(--papel); color: var(--tinta); box-shadow: 0 -10px 40px rgba(0,0,0,.3); overflow: auto; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(17,17,17,.55); }
.ficha[open] { animation: hoja 320ms var(--salida); }
.ficha[open]::backdrop { animation: velo 320ms var(--salida); }
@keyframes hoja { from { transform: translateY(24px); opacity: 0; } }
@keyframes velo { from { opacity: 0; } }
.ficha-cuerpo { padding: 0 0 calc(1.2rem + env(safe-area-inset-bottom)); }
.ficha-arriba { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1rem; background: var(--papel); border-bottom: 1px solid var(--linea); }
.ficha-arriba b { font-variant-numeric: tabular-nums; }
.cerrar { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: var(--blanco); font: 700 1.3rem var(--texto); cursor: pointer; color: var(--tinta); box-shadow: var(--sombra); }
.ficha-foto { aspect-ratio: 1; max-height: 46vh; max-height: 46dvh; width: 100%; background: #1a1917; position: relative; overflow: hidden; }
.ficha-foto img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.ficha-foto .sin-foto { position: absolute; inset: 0; display: grid; place-items: center; color: #8F8A80; font-size: .85rem; font-weight: 600; text-align: center; }
.ficha-foto .sin-foto b { display: block; font: 700 2.4rem var(--titulos); color: var(--oro); }
.ficha-datos { padding: 1rem 1rem 0; }
.ficha-datos h2 { font: 700 1.25rem/1.25 var(--texto); margin: .15rem 0 0; }
.ficha-datos .m { font: 700 .75rem var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); }
.precios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 0; }
.precios div { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: .6rem .75rem; }
.precios dt { font-size: .78rem; color: var(--tinta-2); font-weight: 600; }
.precios dd { margin: .1rem 0 0; font-weight: 800; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.precios dd.falta { color: var(--falta); font-size: .95rem; font-weight: 700; }
.ficha-aviso { margin: .8rem 0 0; padding: .65rem .8rem; border-radius: 12px; background: var(--oro-suave); color: #5C4712; font-size: .88rem; }
.ficha-aviso.mal { background: var(--mal-suave); color: var(--mal); }
.ficha-botones { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 1rem 1rem 0; }
.ficha-botones .boton { margin: 0; }
.ficha-botones .ancho { grid-column: 1 / -1; }
.ficha-form { margin: 1rem 1rem 0; }
.ficha-form h3 { margin: 0; font-size: 1rem; }
.mas-opciones { margin: 1.2rem 1rem 0; }
.mas-opciones summary { cursor: pointer; font-weight: 700; color: var(--tinta-2); padding: .6rem 0; min-height: 44px; }
.lista-calculada { margin: .4rem 0 0; font-size: .92rem; color: var(--tinta-2); }
.lista-calculada b { color: var(--tinta); font-variant-numeric: tabular-nums; }

/* ---------- Plata: barras horizontales ---------- */
.barras-h { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.barras-h li { display: grid; grid-template-columns: minmax(5.5rem, 32%) minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .9rem; position: relative; }
/* El nombre puede ir en dos renglones (en el celu no se corta la marca) */
.barras-h .nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.25; }
.barras-h .riel { height: 12px; background: var(--papel); border-radius: 6px; overflow: hidden; }
.barras-h .relleno { display: block; height: 100%; border-radius: 6px; background: var(--oro-dato); transform-origin: left; }
.barras-h .cifra { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.barras-h .cifra small { color: var(--falta); font-weight: 600; margin-left: .25rem; }
.barras-h .falta-dato { color: var(--falta); font-weight: 600; font-style: italic; }
.barras-h li.negativo .relleno { background: repeating-linear-gradient(45deg, var(--mal) 0 3px, #C9665E 3px 6px); }
/* «Otras marcas» junta varias: va en gris con trama para no competir con las marcas de a una */
.barras-h li.gris .relleno { background: repeating-linear-gradient(45deg, #A9A49A 0 3px, #C9C5BC 3px 6px); }
.barras-h li.negativo .cifra { color: var(--mal); }
.relleno.sube { animation: crecer 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes crecer { from { transform: scaleX(.04); } to { transform: scaleX(1); } }

/* Tabla para leer los números exactos */
.ver-tabla { margin-top: .9rem; }
.ver-tabla summary { cursor: pointer; font-weight: 700; color: var(--tinta-2); font-size: .9rem; padding: .6rem 0; min-height: 44px; }
.tabla-envoltura { overflow-x: auto; margin-top: .6rem; max-height: 420px; overflow-y: auto; container: vendidos / inline-size; }
.ver-tabla table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.ver-tabla th { position: sticky; top: 0; background: var(--blanco); text-align: right; color: var(--tinta-2); font-weight: 700; padding: .45rem .5rem; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.ver-tabla td { text-align: right; padding: .45rem .5rem; border-bottom: 1px solid var(--papel); white-space: nowrap; }
.ver-tabla th:first-child, .ver-tabla td:first-child, .ver-tabla th:nth-child(2), .ver-tabla td:nth-child(2) { text-align: left; }
.ver-tabla td:nth-child(2) { white-space: normal; min-width: 9rem; }
.ver-tabla .falta-dato { color: var(--falta); font-style: italic; }
.ver-tabla .t-num { display: none; }
/* Donde la tabla no entra (celu, o la columna angosta de la compu) cada vendido es una tarjeta con sus etiquetas a la vista */
@media (max-width: 600px) { .tabla-envoltura { max-height: none; } }
@container vendidos (max-width: 600px) {
  .ver-tabla table, .ver-tabla tbody { display: block; }
  .ver-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ver-tabla tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--linea); }
  .ver-tabla td { display: block; padding: 0; border: 0; text-align: left !important; white-space: normal; min-width: 0 !important; overflow-wrap: anywhere; }
  .ver-tabla td::before { content: attr(data-l); display: block; font-size: .74rem; font-weight: 700; color: var(--tinta-2); }
  .ver-tabla td.t-reloj { grid-column: 1 / -1; font-weight: 700; font-size: .95rem; }
  .ver-tabla td.t-reloj::before { display: none; }
  .ver-tabla td:first-child { display: none; }
  .ver-tabla .t-num { display: inline; color: var(--oro-texto); }
}

/* ---------- Pedidos y ofertas ---------- */
.lista-web { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.lista-web > li { background: var(--papel); border-radius: 12px; padding: .8rem .9rem; border-left: 4px solid var(--oro); }
.lista-web > li.cerrado { border-left-color: var(--linea); opacity: .85; }
.lista-web .encabezado { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.lista-web .encabezado strong { overflow-wrap: anywhere; }
.etiqueta-estado { font-size: .74rem; font-weight: 800; background: var(--blanco); padding: .12rem .55rem; border-radius: 99px; white-space: nowrap; }
.lista-web p { margin: .3rem 0 0; color: var(--tinta-2); font-size: .9rem; overflow-wrap: anywhere; }
.lista-web .vacio, .tareas .vacio { border-left: 0; }

/* ---------- Formularios ---------- */
label, legend { display: block; font-weight: 700; margin: .95rem 0 .35rem; font-size: .95rem; }
input[type=email], input[type=date], input[type=number], input[type=search], input:not([type]), input[inputmode], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: .75rem .85rem; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--blanco); color: var(--tinta); }
input:focus, select:focus, textarea:focus { border-color: var(--oro-dato); outline: none; }
input[aria-invalid=true] { border-color: var(--mal); }
/* El ejemplo del monto se ve claramente como ejemplo (no como un número escrito) */
input::placeholder { color: #A9A49A; font-weight: 500; opacity: 1; }
#c-precio::placeholder, .monto-grande::placeholder { font-size: 1.05rem; font-weight: 500; }
#c-precio, .monto-grande { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.opcional { font-weight: 400; color: var(--tinta-2); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.monto-moneda { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.elegir { border: 0; padding: 0; margin: 0; min-width: 0; }
.elegir label { display: inline-block; margin: 0 .3rem .4rem 0; font-weight: 600; }
.elegir.moneda label { margin-bottom: 0; }
.monto-moneda + .elegir, .ficha-form .elegir:not(.moneda) { margin-top: 1.1rem; }
.elegir input { position: absolute; opacity: 0; }
.elegir span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem; border-radius: 99px; background: var(--blanco); border: 1.5px solid var(--linea); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.elegir input:checked + span { background: var(--negro); border-color: var(--negro); color: var(--oro); }
.elegir input:focus-visible + span { outline: 2px solid var(--oro-dato); outline-offset: 2px; }
.numero-nuevo { margin: 0 0 .8rem; color: var(--tinta-2); }
.numero-nuevo b { font: 700 1.25rem var(--titulos); color: var(--tinta); }
.boton { display: block; width: 100%; margin-top: 1.3rem; padding: .95rem; min-height: 50px; border: 0; border-radius: 12px; background: var(--negro); color: #F3F1EC; font: 700 1rem var(--texto); cursor: pointer; text-align: center; text-decoration: none; }
.boton.oro { background: var(--oro); color: var(--negro); }
.boton.chico { width: auto; display: inline-block; margin-top: 0; padding: .65rem 1.1rem; min-height: 44px; font-size: .92rem; }
.boton.claro { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--linea); }
.boton:disabled { opacity: .45; cursor: not-allowed; }
.boton-foto { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0; font-size: 1.05rem; background: var(--oro); color: var(--negro); }
.boton-foto span { font-size: 1.2rem; }
.miniaturas { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.miniaturas:empty { display: none; }
.miniaturas li { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--papel); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas button { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(17,17,17,.75); color: #fff; font-weight: 800; cursor: pointer; }
.tarjeta.listo { border-color: var(--bien); background: var(--bien-suave); }
.tarjeta.listo h2 { color: var(--bien); }
.boton-google { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--linea); }
.boton-google::before { content: "G"; font-weight: 800; color: #4285F4; margin-right: .5rem; }
.otra-forma { margin-top: 1.4rem; }
.otra-forma summary { cursor: pointer; color: var(--tinta-2); font-weight: 600; padding: .6rem 0; min-height: 44px; }
.entrar { max-width: 460px; padding-top: 3rem; margin: 0 auto; }
.entrar-logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem; }
.entrar h1 { margin-bottom: .6rem; }

/* Aviso que aparece abajo después de guardar */
.aviso { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); width: min(92vw, 460px); background: var(--negro); color: #F3F1EC; padding: .8rem 1rem; border-radius: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); font-size: .93rem; animation: aviso 300ms var(--salida); }
.aviso b { color: var(--oro); }
.aviso.mal { background: var(--mal); }
@keyframes aviso { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- Pestañas del celu ---------- */
.pestanas { position: fixed; inset: auto 0 0 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--blanco); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.pestanas a { display: flex; align-items: center; justify-content: center; min-height: var(--pestanas); text-align: center; padding: .4rem .1rem; text-decoration: none; font-weight: 700; font-size: .86rem; color: var(--tinta-2); }
.pestanas a[aria-current=page] { color: var(--tinta); box-shadow: inset 0 3px 0 var(--oro); }
.pestanas a.mas-grande { color: var(--tinta); }
.pestanas a.mas-grande::before { content: "+ "; color: var(--oro-dato); font-weight: 800; }

/* ---------- Tableta y compu ---------- */
/* Celu: la foto de la ficha no se come la pantalla (el reloj entero, sin recortar) y los filtros entran en 358 px */
@media (max-width: 719px) {
  .ficha-foto { aspect-ratio: auto; height: 36vh; height: 36dvh; max-height: none; }
  .filtros { gap: .35rem; }
  .filtro { flex: 1 1 auto; padding: .45rem .55rem; font-size: .82rem; }
}
@media (min-width: 640px) {
  .grilla-relojes { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-mitades { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.4rem; }
  .tarjeta-acciones .tareas { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .buscador { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ficha { inset: 0 0 0 auto; width: min(520px, 100%); max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .ficha[open] { animation: lado 320ms var(--salida); }
  @keyframes lado { from { transform: translateX(32px); opacity: 0; } }
}
@media (min-width: 1000px) {
  :root { --pestanas: 0px; }
  html { scroll-padding-top: 0; }
  [data-pantalla] { scroll-margin-top: 0; }
  .app.con-menu { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--negro); color: #D9D5CC; padding: 1.2rem 1rem; }
  .marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #F3F1EC; margin-bottom: 1rem; }
  .marca img { width: 44px; height: 44px; border-radius: 50%; }
  .marca span { font: 700 1.2rem/1.1 var(--titulos); letter-spacing: .1em; color: var(--oro); }
  .marca small { display: block; font: 600 .7rem var(--texto); letter-spacing: .2em; text-transform: uppercase; color: #A9A49A; margin-top: .2rem; }
  .menu { display: grid; gap: .15rem; }
  .menu-grupo { margin: 1rem .6rem .3rem; color: #8A857C; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .menu a { display: flex; align-items: center; min-height: 44px; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; text-decoration: none; color: #C9C5BC; font-weight: 600; }
  .menu a i { font-style: normal; width: 1.4rem; text-align: center; color: #8A857C; }
  .menu a[aria-current=page] { background: var(--negro-2); color: #FFFFFF; box-shadow: inset 3px 0 0 var(--oro); }
  .menu a[aria-current=page] i { color: var(--oro); }
  .lateral-pie { margin-top: auto; display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #A9A49A; border-top: 1px solid #2A2926; padding-top: .9rem; }
  .lateral-pie span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .barra, .pestanas, .solo-celu { display: none !important; }
  .pantalla { padding: 2rem 2rem 3rem; }
  .aviso { bottom: 1.5rem; }
  .error-general { top: 0; }
}

/* ---------- Terminación: respuesta al tocar, efectos de mouse solo con mouse ---------- */
.boton, .accion, .filtro, .elegir span, .tarjeta-reloj, .menu a, .pestanas a, .cerrar { transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; -webkit-tap-highlight-color: transparent; }
.boton:active, .accion:active, .filtro:active, .elegir span:active, .tarjeta-reloj:active, .cerrar:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .accion:hover, .filtro:hover { border-color: var(--tinta-3); }
  .tarjeta-reloj:hover { border-color: var(--oro-dato); box-shadow: 0 10px 26px -14px rgba(20,19,17,.4); }
  .menu a:hover { background: var(--negro-2); color: #fff; }
  .boton:hover { filter: brightness(1.08); }
}

/* Cargando: la forma del tablero, sin números falsos */
.esqueleto { height: 92px; border-radius: var(--radio); background: linear-gradient(90deg, #E8E5DE 0%, #F6F4EF 50%, #E8E5DE 100%); background-size: 200% 100%; animation: brillo 1.2s ease-in-out infinite; margin-bottom: .75rem; }
.esqueleto.alto { height: 170px; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 719px) { .cabeza > .boton.chico { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
