/* Fichajes: aspecto de app de Apple (letra del sistema, listas agrupadas, hojas), con el rojo de Pando como acento.
   Sigue el modo claro u oscuro del dispositivo. */
:root {
  --fondo: #f2f2f7; --tarjeta: #ffffff; --tarjeta2: #f7f7fa; --relleno: rgba(118,118,128,.12); --relleno2: rgba(118,118,128,.2);
  --texto: #1d1d1f; --texto2: #6e6e73; --texto3: #aeaeb2; --sep: rgba(60,60,67,.16);
  --acento: #e50914; --acento-suave: rgba(229,9,20,.1); --verde: #28b14c; --verde-suave: rgba(40,177,76,.12);
  --ambar: #f29a00; --ambar-suave: rgba(242,154,0,.14);
  --barra: rgba(246,246,248,.78); --sombra: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --r: 12px;
  --letra: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --letra-titulo: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #000000; --tarjeta: #1c1c1e; --tarjeta2: #2c2c2e; --relleno: rgba(118,118,128,.24); --relleno2: rgba(118,118,128,.34);
    --texto: #f5f5f7; --texto2: #98989d; --texto3: #636366; --sep: rgba(84,84,88,.55);
    --acento: #ff2d3a; --acento-suave: rgba(255,45,58,.16); --verde: #30d158; --verde-suave: rgba(48,209,88,.16);
    --ambar: #ffb340; --ambar-suave: rgba(255,179,64,.16);
    --barra: rgba(28,28,30,.72); --sombra: none;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.35 var(--letra); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--acento); text-decoration: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acento) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.oculto { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.t2 { color: var(--texto2); }
.peque { font-size: 13px; }
.verde { color: var(--verde); } .ambar { color: var(--ambar); } .rojo { color: var(--acento); }

/* ── Estructura de pantalla ─────────────────────────────── */
.pantalla { max-width: 620px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
.cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 18px; }
.cabecera h1 { font: 700 34px/1.1 var(--letra-titulo); letter-spacing: -0.025em; margin: 0; }
.cabecera .sub { color: var(--texto2); font-size: 15px; margin-top: 4px; }
.seccion { font-size: 15px; font-weight: 600; color: var(--texto2); margin: 26px 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.seccion a, .seccion button { font-weight: 400; }
.nota { color: var(--texto2); font-size: 13px; margin: 8px 16px 0; line-height: 1.4; }

/* ── Listas agrupadas (como Ajustes) ────────────────────── */
.grupo { background: var(--tarjeta); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); }
.celda { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; position: relative; width: 100%; background: none; border: 0; text-align: left; }
.celda + .celda::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: .5px solid var(--sep); }
.grupo.con-avatar .celda + .celda::before { left: 66px; }
button.celda, .celda.toque { cursor: pointer; transition: background .15s; }
button.celda:active, .celda.toque:active { background: var(--relleno); }
@media (hover: hover) { button.celda:hover, .celda.toque:hover { background: color-mix(in srgb, var(--relleno) 55%, transparent); } }
.celda .cuerpo { flex: 1; min-width: 0; }
.celda .titulo { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.celda .detalle { font-size: 14px; color: var(--texto2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.celda .valor { color: var(--texto2); text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.celda .valor b { color: var(--texto); font-weight: 600; }
.celda.accion .titulo { color: var(--acento); }
.chevron { width: 8px; height: 14px; flex-shrink: 0; color: var(--texto3); }
.vacio { padding: 26px 16px; text-align: center; color: var(--texto2); font-size: 15px; }

/* Avatar con iniciales, como Contactos */
.avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font: 600 15px var(--letra-titulo); color: #fff; letter-spacing: 0; background: linear-gradient(180deg, #a5abb8, #858994); }
.avatar.grande { width: 76px; height: 76px; font-size: 30px; }
.avatar .vivo { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--acento); border: 2.5px solid var(--tarjeta); }

/* Etiquetas pequeñas */
.etq { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--relleno); color: var(--texto2); white-space: nowrap; }
.etq.verde { background: var(--verde-suave); color: var(--verde); }
.etq.ambar { background: var(--ambar-suave); color: var(--ambar); }
.etq.rojo { background: var(--acento-suave); color: var(--acento); }
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.punto.latido { animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .35; } }

/* ── Botones ─────────────────────────────────────────────── */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 17px; font-weight: 600;
  background: var(--acento); color: #fff; transition: transform .1s, opacity .15s; width: 100%; }
.boton:active { transform: scale(.98); opacity: .85; }
.boton:disabled { opacity: .4; pointer-events: none; }
.boton.gris { background: var(--relleno); color: var(--texto); }
.boton.texto { background: none; color: var(--acento); padding: 6px 8px; width: auto; font-weight: 400; }
.boton.texto.fuerte { font-weight: 600; }
.icono-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--relleno); color: var(--acento); display: grid; place-items: center; flex-shrink: 0; }
.icono-btn svg { width: 18px; height: 18px; }
.gira svg { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Control segmentado */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--relleno); border-radius: 9px; padding: 2px; position: relative; }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 14px; font-weight: 500; border-radius: 7px; position: relative; z-index: 1; white-space: nowrap; }
.seg .pulgar { position: absolute; top: 2px; bottom: 2px; left: 0; border-radius: 7px; background: var(--tarjeta); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .28s cubic-bezier(.3,.7,.2,1), width .28s; }
@media (prefers-color-scheme: dark) { .seg .pulgar { background: #636366; } }

/* Interruptor */
.interruptor { appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--relleno2); position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; margin: 0; }
.interruptor::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,.7,.2,1); }
.interruptor:checked { background: var(--verde); }
.interruptor:checked::after { transform: translateX(20px); }

/* Marca redonda (elegir qué se paga) */
.marca { appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--texto3); flex-shrink: 0; margin: 0; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.marca:checked { background: var(--acento); border-color: var(--acento); }
.marca:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Campos dentro de una celda (formularios tipo Ajustes) */
.celda > label { flex-shrink: 0; min-width: 92px; }
.celda input[type=text], .celda input[type=date], .celda input[type=datetime-local], .celda select {
  flex: 1; min-width: 0; border: 0; background: none; text-align: right; color: var(--texto2); padding: 4px 0; outline: none; }
.celda input[type=datetime-local], .celda input[type=date] { display: flex; justify-content: flex-end; }
.celda input:focus { color: var(--texto); }
.celda select { appearance: none; text-align-last: right; }
.celda input::placeholder { color: var(--texto3); }

/* ── Hojas (sheets) ──────────────────────────────────────── */
dialog.hoja { border: 0; padding: 0; background: var(--fondo); color: var(--texto); width: min(560px, calc(100% - 32px)); max-height: min(88vh, 900px); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.3); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .22s, transform .3s cubic-bezier(.3,.7,.2,1), display .3s allow-discrete, overlay .3s allow-discrete; }
dialog.hoja[open] { opacity: 1; transform: none; }
@starting-style { dialog.hoja[open] { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog.hoja::backdrop { background: rgba(0,0,0,0); transition: background .25s, display .3s allow-discrete, overlay .3s allow-discrete; }
dialog.hoja[open]::backdrop { background: rgba(0,0,0,.32); }
@starting-style { dialog.hoja[open]::backdrop { background: rgba(0,0,0,0); } }
.hoja .barra-hoja { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 8px; background: var(--barra);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--sep); }
.hoja .barra-hoja b { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoja .barra-hoja > :first-child { justify-self: start; }
.hoja .barra-hoja > :last-child { justify-self: end; }
.hoja .contenido { padding: 4px 16px 26px; overflow-y: auto; max-height: calc(min(88vh, 900px) - 54px); }
@media (max-width: 640px) {
  dialog.hoja { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; transform: translateY(100%); }
  dialog.hoja[open] { transform: none; }
  @starting-style { dialog.hoja[open] { transform: translateY(100%); } }
  .hoja .contenido { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* Cifras grandes en una fila */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.cifras > div { background: var(--tarjeta); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sombra); min-width: 0; }
.cifras .c { font: 600 22px var(--letra-titulo); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.cifras .l { font-size: 13px; color: var(--texto2); }

/* Aviso flotante arriba, como en macOS */
.hud { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -20px); opacity: 0; z-index: 99; pointer-events: none;
  background: var(--barra); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); color: var(--texto);
  padding: 11px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; box-shadow: 0 10px 40px rgba(0,0,0,.18); transition: opacity .25s, transform .35s cubic-bezier(.3,.7,.2,1); max-width: calc(100% - 32px); text-align: center; }
.hud.ver { opacity: 1; transform: translate(-50%, 0); }

/* ── Fichar (móvil del equipo) ───────────────────────────── */
.reloj { display: grid; place-items: center; margin: 4px 0 4px; }
.anillo { position: relative; width: min(264px, 72vw); aspect-ratio: 1; }
.anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo .pista { stroke: var(--relleno); }
.anillo .progreso { stroke: var(--acento); stroke-linecap: round; transition: stroke-dashoffset 1s; }
.anillo button { position: absolute; inset: 13%; border-radius: 50%; border: 0; display: grid; place-content: center; text-align: center; gap: 4px;
  transition: transform .15s cubic-bezier(.3,.7,.2,1), background .3s; }
.anillo button:active { transform: scale(.95); }
.anillo.fuera button { background: var(--verde); color: #fff; box-shadow: 0 14px 36px color-mix(in srgb, var(--verde) 32%, transparent); }
.anillo.dentro button { background: var(--tarjeta); color: var(--texto); box-shadow: var(--sombra); }
.anillo .grande { font: 600 50px/1 var(--letra-titulo); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.anillo .accion { font: 600 28px var(--letra-titulo); letter-spacing: -0.02em; }
.anillo .bajo { font-size: 15px; opacity: .85; }
.anillo.dentro .bajo { color: var(--acento); opacity: 1; font-weight: 600; }
.estado-texto { text-align: center; color: var(--texto2); font-size: 15px; margin: 8px 0 0; min-height: 20px; }
@keyframes rebote { 0% { transform: scale(1); } 40% { transform: scale(.9); } 100% { transform: scale(1); } }
.rebote { animation: rebote .35s cubic-bezier(.3,.7,.2,1); }

/* Teclado de PIN */
.pin-vista { display: flex; flex-direction: column; align-items: center; padding-top: 4px; text-align: center; }
.pin-vista h2 { font: 600 22px var(--letra-titulo); margin: 14px 0 4px; letter-spacing: -0.02em; }
.puntos { display: flex; gap: 18px; margin: 24px 0 30px; height: 14px; }
.puntos i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--texto); transition: background .12s; }
.puntos i.lleno { background: var(--texto); }
.puntos.error { animation: temblor .4s; }
@keyframes temblor { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.teclado { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 24px; }
.teclado button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--relleno); font: 400 32px var(--letra-titulo); transition: background .1s; }
.teclado button:active { background: var(--relleno2); }
.teclado button.sin { background: none; font-size: 17px; }
.teclado .hueco { visibility: hidden; }
.pin-error { color: var(--acento); font-size: 15px; min-height: 20px; margin-top: 18px; }

/* Transición entre vistas (empujar, como en iOS) */
.entra { animation: entra .32s cubic-bezier(.3,.7,.2,1); }
@keyframes entra { from { opacity: 0; transform: translateX(24px); } }
.vuelve { animation: vuelve .32s cubic-bezier(.3,.7,.2,1); }
@keyframes vuelve { from { opacity: 0; transform: translateX(-24px); } }
.atras { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--acento); font-size: 17px; padding: 6px 0; margin-left: -4px; }
.atras svg { width: 11px; height: 19px; }

/* ── Panel de Victor: barra lateral (Mac) / pestañas (móvil) ─ */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; padding: 40px 10px 16px; background: var(--barra); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-right: .5px solid var(--sep); display: flex; flex-direction: column; gap: 2px; }
.lateral .marca-app { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; font-weight: 600; font-size: 15px; }
.lateral .marca-app .logo { width: 28px; height: 28px; border-radius: 7px; background: var(--acento); display: grid; place-items: center; color: #fff; }
.lateral .marca-app .logo svg { width: 16px; height: 16px; }
.lateral nav { display: contents; }
.lateral nav button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-size: 15px; text-align: left; color: var(--texto); }
.lateral nav button svg { width: 19px; height: 19px; color: var(--acento); flex-shrink: 0; }
.lateral nav button.activa { background: var(--relleno2); font-weight: 500; }
.lateral nav button .insignia { margin-left: auto; font-size: 13px; color: var(--texto2); font-variant-numeric: tabular-nums; }
.lateral .pie { margin-top: auto; padding: 10px; font-size: 12px; color: var(--texto2); line-height: 1.45; }
.principal { min-width: 0; }
.principal .pantalla { max-width: 760px; padding-top: 22px; }
@media (max-width: 760px) {
  .app { display: block; }
  .lateral { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: .5px solid var(--sep); }
  .lateral .marca-app, .lateral .pie, .lateral nav button .insignia { display: none; }
  .lateral nav button { flex-direction: column; gap: 2px; font-size: 10px; padding: 4px 2px; color: var(--texto2); background: none !important; font-weight: 500; flex: 1; align-items: center; }
  .lateral nav button svg { width: 24px; height: 24px; color: var(--texto3); }
  .lateral nav button.activa, .lateral nav button.activa svg { color: var(--acento); }
  .principal .pantalla { padding-bottom: calc(100px + env(safe-area-inset-bottom)); padding-top: 4px; }
}

/* Selector de mes ‹ noviembre 2026 › */
.mes { display: flex; align-items: center; gap: 2px; }
.mes button { border: 0; background: none; color: var(--acento); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.mes button:active { background: var(--relleno); }
.mes button svg { width: 10px; height: 16px; }
.mes span { font-weight: 600; min-width: 132px; text-align: center; font-size: 15px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* En oscuro, la hoja se separa del fondo como en iOS */
@media (prefers-color-scheme: dark) {
  dialog.hoja { background: #1c1c1e; }
  .hoja .grupo, .hoja .cifras > div { background: #2c2c2e; }
  .hoja .avatar .vivo { border-color: #2c2c2e; }
}

@media (max-width: 480px) {
  .cifras { gap: 8px; }
  .cifras > div { padding: 10px 12px; }
  .cifras .c { font-size: 18px; }
}
div[style*="text-align:center"] > .avatar { margin: 0 auto; }
.celda .detalle.rojo, .celda .rojo { color: var(--acento); }
.celda .detalle.ambar { color: var(--ambar); }
a.celda { color: inherit; }

/* Modo prueba */
.banda-prueba { position: fixed; top: 0; left: 0; right: 0; z-index: 50; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: calc(4px + env(safe-area-inset-top)) 8px 4px; background: var(--ambar); color: #000; }
body.con-banda { padding-top: 24px; }
@media (min-width: 761px) { body.con-banda .lateral { top: 24px; height: calc(100vh - 24px); } }

/* Gráfica por meses */
.grafica { background: var(--tarjeta); border-radius: var(--r); box-shadow: var(--sombra); padding: 16px 14px 10px; margin-top: 16px; }
.grafica .leyenda { display: flex; gap: 16px; font-size: 13px; color: var(--texto2); margin: 0 2px 12px; flex-wrap: wrap; }
.grafica .leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.grafica .leyenda .fich { background: var(--acento); }
.grafica .leyenda .plan { border: 1.5px solid var(--texto3); }
.barras { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; height: 180px; align-items: end; position: relative; }
.barras::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--sep); }
.barra { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; border: 0; background: none; padding: 0; }
.barra .plan { position: absolute; bottom: 0; width: min(28px, 70%); border: 1.5px solid var(--texto3); border-bottom: 0; border-radius: 4px 4px 0 0; }
.barra .fich { position: relative; width: min(18px, 46%); background: var(--acento); border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .15s; }
.barras:hover .barra .fich { opacity: .45; }
.barras .barra:hover .fich, .barras .barra:focus-visible .fich, .barras .barra.activa .fich { opacity: 1; }
.barra.fuera-año .fich { opacity: .25; }
.ejes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 6px; font-size: 11px; color: var(--texto2); text-align: center; }
.globo { position: absolute; z-index: 5; pointer-events: none; background: var(--barra); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 10px; padding: 8px 11px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.18); white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; line-height: 1.45; }
.globo b { font-weight: 600; }

/* Calendario mensual */
.cal-caja { background: var(--tarjeta); border-radius: var(--r); box-shadow: var(--sombra); padding: 10px 10px 8px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.cal-cab b { font: 600 17px var(--letra-titulo); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.cal-dia-semana { font-size: 12px; font-weight: 600; color: var(--texto2); padding-bottom: 6px; }
.cal-dia { border: 0; background: none; padding: 4px 0 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 10px; min-height: 46px; }
.cal-dia .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.cal-dia.hoy .n { color: var(--acento); font-weight: 600; }
.cal-dia.sel .n { background: var(--texto); color: var(--fondo); font-weight: 600; }
.cal-dia.sel.hoy .n { background: var(--acento); color: #fff; }
.cal-dia:active .n { background: var(--relleno); }
.puntos-cal { display: flex; gap: 3px; height: 6px; }
.puntos-cal i { width: 5px; height: 5px; border-radius: 50%; background: var(--texto3); }
.cal-dia.sel .puntos-cal i, .cal-dia.hoy .puntos-cal i { background: var(--acento); }
@media (hover: hover) { .cal-dia:hover .n { background: var(--relleno); } .cal-dia.sel:hover .n { background: var(--texto); } .cal-dia.sel.hoy:hover .n { background: var(--acento); } }
.celda input[type=time] { flex: 1; min-width: 0; border: 0; background: none; text-align: right; color: var(--texto2); padding: 4px 0; outline: none; display: flex; justify-content: flex-end; }
.persona-sel { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.persona-sel label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--relleno); cursor: pointer; font-size: 15px; min-width: 0; }
.persona-sel input { display: none; }
.persona-sel label:has(input:checked) { background: var(--acento); color: #fff; }
.persona-sel .avatar { width: 26px; height: 26px; font-size: 12px; }
.formulario .celda { min-height: 50px; }
.formulario input[type=text], .formulario input[type=password], .formulario input[type=email] { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; padding: 4px 0; }
.formulario .celda > label { min-width: 110px; }
.enlace { background: none; border: 0; color: var(--acento); font-size: 15px; padding: 10px 4px; }
