/* Tupü · estilos de la app.
   Pensada para personas mayores: letra base de 18 px, botones de 52 px o más, mucho contraste.
   Colores del logo: azul casi negro #010123, blanco y morado #8A14FC (cada organización puede cambiar el morado). */

:root {
  --fondo: #010123;
  --superficie: #0a0b30;
  --superficie-2: #13154a;
  --superficie-3: #1c1f5c;
  --linea: #20235a;
  --linea-fuerte: #353a82;
  --tinta: #ffffff;
  --gris: #c2c4df;
  --gris-2: #9497c2;
  --acento: #8a14fc;          /* lo cambia el color de cada organización */
  --acento-texto: #c18cff;    /* versión clara del acento para letra chica */
  --sobre-acento: #ffffff;
  --positivo: #3ddc97;
  --negativo: #ff7d7d;
  --aviso: #ffcc55;
  --radio: 18px;
  --radio-control: 14px;
  --nav-alto: 76px;
  /* Una sola letra, redonda como el logo. (Se probó Atkinson Hyperlegible, pero su cero con raya
     hacía que la plata se viera tachada.) */
  --letra: "Nunito", system-ui, sans-serif;
  --titulo: "Nunito", system-ui, sans-serif;
  --suave: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 500 18px/1.5 var(--letra); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acento-texto); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--acento-texto); outline-offset: 2px; }
::selection { background: var(--acento); color: #fff; }
[hidden] { display: none !important; }
.oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- carga inicial ---------- */
.arranque { min-height: 100dvh; display: grid; place-items: center; }
.arranque svg { width: 96px; height: 96px; animation: latir 1.4s var(--suave) infinite; }
@keyframes latir { 50% { transform: scale(1.06); } }

/* ---------- marca ---------- */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca-icono { width: 36px; height: 36px; flex: none; }
.marca-nombre { font: 900 26px/1 var(--titulo); letter-spacing: -0.02em; }
.marca-nombre b { color: var(--acento-texto); font-weight: 900; }

/* ---------- la estructura ---------- */
.app { min-height: 100dvh; }
.cabecera {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: max(8px, env(safe-area-inset-top)) 16px 8px; background: var(--fondo);
  border-bottom: 1px solid var(--linea);
}
.cabecera .org { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: var(--tinta); }
.cabecera .org span { font-weight: 700; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.insignia { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--superficie-2); }
.contenido { padding: 20px 16px calc(var(--nav-alto) + 40px + env(safe-area-inset-bottom)); max-width: 1040px; margin: 0 auto; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--superficie); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: var(--nav-alto); color: var(--gris); text-decoration: none; font-size: 14px; font-weight: 700;
  transition: color .15s;
}
.nav a svg { width: 28px; height: 28px; }
.nav a[aria-current="page"] { color: var(--tinta); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--acento); }
.nav .punto { position: absolute; top: 12px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acento); color: var(--sobre-acento); font-size: 13px; line-height: 20px; text-align: center; }
.nav-lateral-marca, .nav-salir { display: none; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 260px 1fr; }
  .cabecera { grid-column: 2; }
  .nav {
    position: sticky; top: 0; grid-row: 1 / span 2; grid-column: 1; height: 100dvh; display: flex; flex-direction: column; gap: 4px;
    padding: 24px 14px; border-top: 0; border-right: 1px solid var(--linea); background: var(--fondo);
  }
  .nav-lateral-marca { display: block; padding: 0 10px 24px; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 18px; }
  .nav a:hover { background: var(--superficie); color: var(--tinta); }
  .nav a[aria-current="page"] { background: var(--superficie-2); }
  .nav a[aria-current="page"]::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 4px; height: auto; border-radius: 0 4px 4px 0; }
  .nav .punto { position: static; margin-left: auto; }
  .contenido { grid-column: 2; padding: 32px 40px 64px; width: 100%; }
}

/* ---------- encabezado de cada pantalla ---------- */
.titulo-pantalla { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.titulo-pantalla h1 { flex: 1; min-width: 0; }
.titulo-pantalla .bajada { flex-basis: 100%; color: var(--gris); font-size: 17px; }
.volver { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px 0 8px; margin: -6px 0 8px -8px; border: 0; background: none; color: var(--gris); font-weight: 700; font-size: 17px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.volver:hover { color: var(--tinta); background: var(--superficie); }
.volver svg { width: 24px; height: 24px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--radio-control); background: var(--superficie-3); color: var(--tinta);
  font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform .12s var(--suave), background-color .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-primario { background: var(--acento); color: var(--sobre-acento); }
.btn-fantasma { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linea-fuerte); }
.btn-peligro { background: transparent; color: var(--negativo); box-shadow: inset 0 0 0 2px #5a2440; }
.btn-texto { background: none; padding: 0 10px; min-height: 48px; color: var(--acento-texto); }
.btn-ancho { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.12); }
  .btn-fantasma:hover { background: var(--superficie); }
}
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.acciones > .btn { flex: 1 1 150px; }

/* botones grandes del tesorero */
.rapidos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.rapido {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 112px; padding: 16px;
  border: 0; border-radius: var(--radio); background: var(--superficie-2); color: var(--tinta); text-align: left; font-weight: 700; font-size: 18px; line-height: 1.25; cursor: pointer;
  transition: transform .12s var(--suave), background-color .15s;
}
.rapido svg { width: 32px; height: 32px; color: var(--acento-texto); }
.rapido:first-child { background: var(--acento); }
.rapido:first-child svg { color: #fff; }
.rapido:active { transform: scale(.97); }
@media (max-width: 420px) { .rapidos { grid-template-columns: 1fr 1fr; } .rapidos .rapido:first-child { grid-column: 1 / -1; min-height: 84px; flex-direction: row; align-items: center; justify-content: flex-start; } }

/* ---------- tarjetas y cifras ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; }
.tarjeta + .tarjeta, .tarjeta + .bloque, .bloque + .tarjeta, .bloque + .bloque { margin-top: 16px; }
.tarjeta-cabeza { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tarjeta-cabeza h2 { flex: 1; font-size: 20px; }
.tarjeta-cabeza .btn-texto { margin-right: -10px; }
.rejilla { display: grid; gap: 16px; }
.rejilla > .tarjeta + .tarjeta { margin-top: 0; }
@media (min-width: 760px) { .rejilla-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.etiqueta { color: var(--gris); font-size: 16px; }
.cifra { font: 800 30px/1.1 var(--titulo); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cifra-grande { font: 900 44px/1.05 var(--titulo); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cifra small, .cifra-grande small { font-size: .5em; color: var(--gris); font-weight: 700; }
.positivo { color: var(--positivo); }
.negativo { color: var(--negativo); }
.gris { color: var(--gris); }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--linea); border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); }
.cifras > div { background: var(--superficie); padding: 16px 18px; }
.cifras .cifra { font-size: 26px; margin-top: 4px; }
.texto-ayuda { color: var(--gris); font-size: 16px; }
.separador { height: 1px; background: var(--linea); margin: 18px 0; border: 0; }

/* progreso */
.progreso { height: 12px; border-radius: 6px; background: var(--superficie-3); overflow: hidden; margin: 12px 0 6px; }
.progreso > i { display: block; height: 100%; border-radius: 6px; background: var(--acento); transition: width .6s var(--suave); }
.progreso.lleno > i { background: var(--positivo); }
.progreso-pie { display: flex; justify-content: space-between; gap: 12px; color: var(--gris); font-size: 15px; }

/* ---------- listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li + li { border-top: 1px solid var(--linea); }
.fila {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 4px; width: 100%;
  background: none; border: 0; color: inherit; text-align: left; text-decoration: none; cursor: pointer; border-radius: 12px;
}
button.fila:hover, a.fila:hover { background: var(--superficie-2); }
.fila-texto { flex: 1; min-width: 0; }
.fila-titulo, .fila-sub { display: block; }
.fila-titulo { font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.fila-sub { color: var(--gris); font-size: 15px; line-height: 1.35; margin-top: 2px; }
.fila-valor { text-align: right; font-weight: 800; font-size: 18px; white-space: nowrap; }
.fila-valor small { display: block; font-weight: 400; font-size: 14px; color: var(--gris); }
.fila > svg.flecha { width: 22px; height: 22px; color: var(--gris-2); flex: none; }
.vacio { padding: 28px 8px; text-align: center; color: var(--gris); }

/* avatares (iniciales con un tono propio por persona) */
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 19px; background: hsl(var(--h, 260) 45% 32%); color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 26px; height: 26px; }
.insignia svg, .marca-icono svg { width: 100%; height: 100%; display: block; }
.avatar-xl { width: 132px; height: 132px; font-size: 44px; }
.avatar-s { width: 40px; height: 40px; font-size: 15px; }

/* chips y estados */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--superficie-2); color: var(--gris); font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); }
.estado { display: inline-flex; align-items: center; flex: none; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--superficie-3); color: var(--gris); }
.estado.proceso { background: #3b2a12; color: var(--aviso); }
.estado.planificada { background: #1d2463; color: #b9c2ff; }
.estado.cerrada { background: #113a2c; color: var(--positivo); }
.estado.cancelada { background: #3a1626; color: var(--negativo); }
.estado.ok { background: #113a2c; color: var(--positivo); }
.estado.debe { background: #3a1626; color: var(--negativo); }

/* ---------- formularios ---------- */
.campo { display: block; margin-bottom: 18px; }
.campo > span:first-child, .campo-etiqueta { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.campo small { display: block; color: var(--gris); font-size: 15px; margin-top: 6px; }
.entrada, select.entrada, textarea.entrada {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--linea-fuerte);
  background: var(--superficie-2); color: var(--tinta); font-size: 20px; outline: none; transition: border-color .15s;
}
textarea.entrada { min-height: 140px; line-height: 1.5; resize: vertical; font-size: 18px; }
.entrada:focus { border-color: var(--acento-texto); }
.entrada::placeholder { color: var(--gris-2); }
.entrada-plata { position: relative; }
.entrada-plata::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 800; color: var(--gris); }
.entrada-plata .entrada { padding-left: 36px; font-size: 26px; font-weight: 800; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmento { display: flex; gap: 6px; padding: 6px; background: var(--superficie-2); border-radius: 16px; }
.segmento button { flex: 1; min-height: 50px; border: 0; border-radius: 11px; background: transparent; color: var(--gris); font-weight: 700; font-size: 17px; cursor: pointer; }
.segmento button[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); }
.error-form { background: #3a1626; color: #ffd3d3; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.casilla { display: flex; align-items: center; gap: 14px; min-height: 52px; font-weight: 700; cursor: pointer; }
.casilla input { width: 28px; height: 28px; accent-color: var(--acento); flex: none; }

/* ---------- hoja (ventana que sube desde abajo) ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 10 / .7); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease-out; }
.hoja {
  width: 100%; max-height: 94dvh; overflow-y: auto; background: var(--superficie); border-radius: 24px 24px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); animation: subir .32s var(--suave); overscroll-behavior: contain;
  box-shadow: 0 -12px 40px rgb(0 0 0 / .4);
}
.hoja-cabeza { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; margin-bottom: 8px; background: var(--superficie); }
.hoja-cabeza h2 { flex: 1; font-size: 22px; }
.cerrar { width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--superficie-3); color: var(--tinta); display: grid; place-items: center; cursor: pointer; }
.cerrar svg { width: 26px; height: 26px; }
.hoja-pie { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); padding: 14px 0 calc(24px + env(safe-area-inset-bottom)); margin: 8px 0 calc(-24px - env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linea); }
@keyframes subir { from { transform: translateY(40%); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; } }
@media (min-width: 700px) {
  .velo { align-items: center; padding: 24px; }
  .hoja { max-width: 600px; border-radius: 24px; max-height: 90dvh; }
}

/* ---------- aviso flotante ---------- */
.aviso-flotante {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-alto) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 14px 16px 14px 20px;
  background: var(--tinta); color: var(--fondo); border-radius: 16px; font-weight: 700; font-size: 17px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .45); animation: subir .3s var(--suave);
}
.aviso-flotante.error { background: #ffd3d3; color: #4a0d1a; }
.aviso-flotante span { flex: 1; }
.aviso-flotante button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--fondo); color: var(--tinta); font-weight: 800; cursor: pointer; }
@media (min-width: 900px) { .aviso-flotante { bottom: 24px; left: 284px; } }

/* ---------- entrar ---------- */
.entrar { min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px; }
.entrar-caja { width: 100%; max-width: 440px; }
.entrar-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 36px; }
.entrar-logo svg.icono-grande { width: 112px; height: 112px; }
.entrar-logo .marca-nombre { font-size: 48px; }
.entrar h1 { font-size: 26px; margin-bottom: 6px; text-align: center; }
.entrar .bajada { text-align: center; color: var(--gris); margin-bottom: 28px; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--superficie-3); color: var(--tinta); font-weight: 700; font-size: 15px; cursor: pointer; }

/* ---------- formación ---------- */
.formacion-barra { position: sticky; top: 64px; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 0; background: var(--fondo); }
@media (min-width: 900px) { .formacion-barra { top: 64px; } }
.zoom { display: flex; gap: 4px; margin-left: auto; }
.zoom button { width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--superficie-2); color: var(--tinta); font-size: 26px; font-weight: 800; cursor: pointer; }
.bloque-f { margin-top: 22px; }
.bloque-f h2 { font-size: 20px; margin-bottom: 4px; }
.bloque-f .bloque-sub { color: var(--gris); font-size: 15px; margin-bottom: 10px; }
.bloque-marco { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.grilla-f { --puesto: calc(84px * var(--zoom, 1)); display: grid; grid-template-columns: 34px repeat(var(--cols), var(--puesto)); gap: 8px; width: max-content; }
.grilla-f .num { display: grid; place-items: center; color: var(--gris-2); font-size: 14px; font-weight: 700; }
.grilla-f .col-num { text-align: center; color: var(--gris); font-size: 14px; font-weight: 700; padding-bottom: 2px; }
.puesto {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--puesto); padding: 8px 2px 6px;
  border: 2px dashed transparent; border-radius: 14px; background: var(--superficie); color: var(--tinta); cursor: pointer;
  transition: transform .12s var(--suave), border-color .15s, background-color .15s;
}
.puesto .avatar { width: calc(56px * var(--zoom, 1)); height: calc(56px * var(--zoom, 1)); font-size: calc(18px * var(--zoom, 1)); }
.puesto .nom { font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.puesto.libre { border-color: var(--linea-fuerte); background: transparent; color: var(--gris-2); justify-content: center; min-height: calc(92px * var(--zoom, 1)); }
.puesto.libre .mas { font-size: 26px; line-height: 1; }
.puesto.mio { background: var(--acento); }
.puesto.mio .nom::after { content: " (tú)"; }
.puesto.elegido { border-color: var(--aviso); border-style: solid; transform: scale(1.04); }
.puesto.destello { animation: destello 1.6s ease-out 2; }
@keyframes destello { 50% { box-shadow: 0 0 0 6px var(--aviso); } }
.grilla-caporales { grid-template-columns: repeat(var(--cols), var(--puesto)); }
.aviso-orden { position: sticky; bottom: calc(var(--nav-alto) + 12px + env(safe-area-inset-bottom)); z-index: 15; display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 18px; margin-top: 20px; border-radius: 16px; background: var(--superficie-3); box-shadow: 0 8px 30px rgb(0 0 0 / .4); font-weight: 700; }
.aviso-orden span { flex: 1; }
@media (min-width: 900px) { .aviso-orden { bottom: 16px; } }

/* ---------- cancionero, historia ---------- */
.letra { white-space: pre-wrap; font-size: calc(21px * var(--letra-zoom, 1)); line-height: 1.6; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--superficie-2); }
.galeria figcaption { color: var(--gris); font-size: 15px; margin-top: 6px; }
.historia-texto { white-space: pre-wrap; font-size: 19px; line-height: 1.65; }
.miniatura-video { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; background: var(--superficie-3); }
.video-marco { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 14px; background: #000; }
.boleta { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--superficie-3); cursor: zoom-in; border: 0; padding: 0; }
.boleta img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* citaciones */
.cita { display: flex; gap: 16px; }
.cita-dia { flex: none; width: 72px; height: 80px; border-radius: 16px; background: var(--superficie-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cita-dia b { font: 900 30px/1 var(--titulo); }
.cita-dia span { font-size: 14px; color: var(--gris); font-weight: 700; text-transform: capitalize; }
.cita.hoy .cita-dia { background: var(--acento); }
.cita.hoy .cita-dia span { color: #fff; }

/* barras simples (balance) */
.barras { display: grid; gap: 14px; }
.barra-fila .arriba { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; margin-bottom: 6px; }
.barra-fila .arriba b { white-space: nowrap; }
.barra-fila .pista { height: 10px; border-radius: 5px; background: var(--superficie-3); overflow: hidden; }
.barra-fila .pista i { display: block; height: 100%; border-radius: 5px; background: var(--acento); }
.barra-fila.negativa .pista i { background: var(--negativo); }
.meses { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 150px; margin-top: 12px; }
.meses div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; font-size: 13px; color: var(--gris); }
.meses i { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--acento); min-height: 2px; }

/* persona */
.perfil-cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 20px; }
.perfil-cabeza h1 { font-size: 26px; }
.datos { display: grid; gap: 0; }
.dato { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linea); }
.dato:first-child { border-top: 0; }
.dato span { color: var(--gris); }
.dato b { text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.contactar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }

/* mostrar clave nueva */
.clave-grande { font: 900 44px/1 var(--titulo); letter-spacing: .12em; text-align: center; padding: 22px; border-radius: 16px; background: var(--superficie-2); margin: 16px 0; font-variant-numeric: tabular-nums; }

/* tablas simples (planilla) */
.tabla-marco { overflow-x: auto; border: 1px solid var(--linea); border-radius: 14px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabla th { text-align: left; font-weight: 400; color: var(--gris); padding: 10px 12px; white-space: nowrap; }
.tabla td { padding: 10px 12px; border-top: 1px solid var(--linea); vertical-align: top; }
.tabla .num { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
