/* App ISTPS Nivel Central — paleta y tipografía del Manual de Marca GCBA 2026; componentes inspirados en Obelisco v2 */
/* Tipografías alojadas en la propia app (Archivo: OFL · íconos: Apache 2.0) */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 100 700; font-display: block; src: url(fonts/material-symbols-rounded.woff2) format('woff2'); }

:root {
  /* Paleta del Manual de Marca GCBA 2026: azul oscuro, naranja y blanco */
  --primary: #1D3343;        /* Azul oscuro (manual) */
  --accent: #F4991A;         /* Naranja (manual) */
  --accent-dark: #D9800A;
  --accent-soft: #FDEFD9;
  --brand-white: #FCFCFC;    /* Blanco (manual) */
  /* Tonos derivados del azul oscuro para la interfaz */
  --secondary: #1D3343;
  --navy-700: #2F4A5E;
  --light: #E8EDF1;
  --dark: #12222D;
  /* Colores de estado (Obelisco v2), solo para avisos de éxito, error, etc. */
  --success: #00642F;
  --danger: #CB3232;
  --warning: #B36200;
  --info: #1D3343;
  --bg: #F1F3F5;
  --bg-neutral: #E4E8EC;
  --bg-muted: #CDD4DB;
  --text: #1D3343;
  --text-muted: #4A5766;
  --text-disabled: #92A0B1;
  --white: #FCFCFC;
  --border: #CDD4DB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 51, 67, .06), 0 2px 8px rgba(29, 51, 67, .06);
  --font-title: 'Archivo', Arial, sans-serif;
  --font-body: 'Archivo', Arial, sans-serif;
  --topbar-h: 64px;
  --bottomnav-h: 64px;
  /* Colores por tipo en calendario */
  --c-meeting: #1D3343;
  --c-presence: #F4991A;
  --c-absent: #92A0B1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--primary); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: var(--secondary); }
a:hover { color: var(--primary); }
img { max-width: 100%; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mb0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ms {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: middle; flex-shrink: 0;
  width: 1em; overflow: hidden;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--primary); color: var(--white); padding: 0 1rem;
  padding-top: env(safe-area-inset-top);
  border-bottom: 4px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--white); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--primary); display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 700; font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--font-title); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .72rem; opacity: .8; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; color: var(--white); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.icon-btn .dot {
  position: absolute; top: 4px; right: 2px; background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--light); color: var(--primary); font-weight: 700;
  display: grid; place-items: center; text-decoration: none; font-size: .85rem; flex-shrink: 0;
}
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar-link { display: block; border-radius: 50%; text-decoration: none; }
img.avatar { object-fit: cover; padding: 0; background: var(--bg-neutral); }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.photo-row { display: flex; gap: 1rem; align-items: center; }
.person-cell { display: flex; gap: .6rem; align-items: center; }
.avatar.md { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.alt { background: var(--bg-neutral); }

/* ---------- Estructura ---------- */
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidenav { display: none; }
.main { flex: 1; min-width: 0; padding: 1rem 1rem calc(var(--bottomnav-h) + 1.5rem); max-width: 1180px; margin: 0 auto; width: 100%; }
.main-public { padding: 0; max-width: none; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: var(--bottomnav-h);
  background: var(--white); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .72rem; color: var(--text-muted); text-decoration: none; font-weight: 600;
}
.bottomnav a.active { color: var(--primary); box-shadow: inset 0 3px 0 var(--accent); }
.bottomnav a.active .ms { font-variation-settings: 'FILL' 1; }

@media (min-width: 900px) {
  .sidenav {
    display: flex; flex-direction: column; gap: 2px; width: 240px; flex-shrink: 0; padding: 1rem .75rem;
    background: var(--white); border-right: 1px solid var(--border);
    position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  }
  .sidenav a, .sidenav button {
    display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem; border-radius: 24px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
    background: none; border: 0; width: 100%; cursor: pointer; font-family: inherit; text-align: left;
  }
  .sidenav a:hover, .sidenav button:hover { background: var(--bg); }
  .sidenav a.active { background: var(--light); color: var(--primary); box-shadow: inset 4px 0 0 var(--accent); }
  .sidenav a.active .ms { font-variation-settings: 'FILL' 1; }
  .sidenav .count { margin-left: auto; background: var(--danger); color: var(--white); border-radius: 10px; font-size: .75rem; padding: 0 7px; }
  .logout-form { margin-top: auto; border-top: 1px solid var(--border); padding-top: .5rem; }
  .bottomnav { display: none; }
  .shell { background: linear-gradient(to right, var(--white) 240px, var(--bg) 240px); }
  .main { padding: 1.75rem 2rem 3rem; }
}

/* ---------- Componentes ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head p { margin: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem; margin-bottom: 1rem; border: 1px solid var(--bg-neutral);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card.highlight { background: var(--light); border-color: #CDD4DB; border-top: 4px solid var(--accent); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.2rem; border-radius: 24px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--white); transition: background .15s;
}
.btn:hover { background: var(--navy-700); color: var(--white); }
.btn .ms { font-size: 20px; }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--light); color: var(--primary); }
.btn-tertiary, .btn-accent { background: var(--accent); color: var(--primary); font-weight: 700; }
.btn-tertiary:hover, .btn-accent:hover { background: var(--accent-dark); color: var(--primary); }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #fbebeb; color: var(--danger); }
.btn-success { background: var(--success); }
.btn-ghost { background: transparent; color: var(--secondary); padding-left: .6rem; padding-right: .6rem; }
.btn-ghost:hover { background: var(--light); color: var(--primary); }
.btn-sm { min-height: 36px; padding: .3rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Formularios */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .9rem; color: var(--primary); }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=url], input[type=tel], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1px solid #9E9E9E; border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: var(--white);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--secondary); outline: 2px solid var(--secondary); outline-offset: 0; }
input[type=file] { font: inherit; font-size: .9rem; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1rem 1rem; margin: 0; }
legend { font-weight: 600; color: var(--primary); padding: 0 .35rem; font-size: .9rem; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 36px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--secondary); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span {
  display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .85rem; border-radius: 20px;
  border: 1px solid var(--border); background: var(--white); cursor: pointer; font-size: .9rem; user-select: none;
}
.chip-check input:checked + span { background: var(--light); border-color: var(--secondary); color: var(--secondary); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); }
.segmented { display: inline-flex; align-self: flex-start; max-width: 100%; border: 1px solid var(--secondary); border-radius: 24px; overflow: hidden; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: .5rem 1rem; cursor: pointer; color: var(--secondary); font-weight: 600; font-size: .9rem; }
.segmented input:checked + span { background: var(--secondary); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.people-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .25rem .75rem; }
.hidden { display: none !important; }

/* Alertas */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 5px solid; background: var(--white); box-shadow: var(--shadow); }
.alert-success { border-color: var(--success); background: #E5F4E4; }
.alert-danger, .alert-error { border-color: var(--danger); background: #FBEBEB; }
.alert-warning { border-color: var(--accent); background: var(--accent-soft); }
.alert-info { border-color: var(--primary); background: var(--light); }

/* Insignias */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 12px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-success { background: #E5F4E4; color: var(--success); }
.badge-warning { background: var(--accent-soft); color: #9A5200; }
.badge-danger { background: #FBEBEB; color: var(--danger); }
.badge-info { background: var(--light); color: var(--primary); }
.badge-neutral { background: var(--bg-neutral); color: var(--text-muted); }

/* Tablas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .65rem .6rem; text-align: left; border-bottom: 1px solid var(--bg-neutral); vertical-align: top; }
th { font-weight: 700; color: var(--primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; background: var(--bg); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Listas */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--bg-neutral); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--text); text-decoration: none; display: block; }
a.title:hover { color: var(--secondary); }
.list .meta { font-size: .85rem; color: var(--text-muted); }
.time-box {
  flex-shrink: 0; width: 58px; text-align: center; background: var(--light); border-radius: var(--radius-sm);
  padding: .35rem 0; color: var(--primary); font-weight: 700; line-height: 1.15;
}
.time-box small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--secondary); flex-shrink: 0; }
.icon-circle.teal { background: var(--accent-soft); color: var(--primary); }
.icon-circle.gray { background: var(--bg-neutral); color: var(--text-muted); }
.icon-circle.warn { background: var(--accent-soft); color: #9A5200; }
.icon-circle.ok { background: #E5F4E4; color: var(--success); }

.empty { text-align: center; padding: 1.5rem 1rem; color: var(--text-muted); }
.empty .ms { font-size: 40px; color: var(--text-disabled); display: block; margin: 0 auto .5rem; }

/* Estadísticas */
.stat { background: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); border: 1px solid #E6EBF0; }
.stat .label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat.main { background: var(--primary); border-color: var(--primary); }
.stat.main .label, .stat.main .value { color: var(--white); }
.stat .sub { font-size: .8rem; color: var(--text-muted); }
.stat.main .sub { color: #C9D3DB; }
.stat.main { box-shadow: inset 0 -4px 0 var(--accent), var(--shadow); }

/* Pestañas */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--bg-neutral); margin-bottom: 1.25rem; scrollbar-width: none; }
.tabs a { padding: .7rem 1rem; text-decoration: none; color: var(--text-muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--primary); border-color: var(--accent); }

/* Calendario */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .25rem; margin-bottom: .75rem; }
.cal-toolbar h2 { margin: 0; text-transform: capitalize; flex: 1; text-align: center; font-size: clamp(1rem, 4vw, 1.25rem); }
.cal-toolbar .btn-row { flex-wrap: nowrap; gap: .25rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.calendar .dow { background: var(--bg); font-size: .75rem; font-weight: 700; text-align: center; padding: .4rem 0; color: var(--primary); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar .day { min-height: 92px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .25rem; font-size: .75rem; position: relative; }
.calendar .day.other { background: #FAFBFC; color: var(--text-disabled); }
.calendar .day.today { background: #FFF8EE; }
.calendar .day a.num { color: inherit; text-decoration: none; }
.calendar .day .num { font-weight: 700; font-size: .8rem; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.calendar .day.today .num { background: var(--accent); color: var(--primary); }
.calendar .day a.add { position: absolute; top: 2px; right: 2px; opacity: 0; color: var(--secondary); text-decoration: none; }
.calendar .day:hover a.add, .calendar .day a.add:focus { opacity: 1; }
.ev { display: block; border-radius: 4px; padding: 1px 4px; margin-top: 2px; color: var(--white); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; line-height: 1.5; }
.ev:hover { color: var(--white); filter: brightness(1.1); }
.ev.meeting { background: var(--c-meeting); }
.ev.presence { background: var(--c-presence); color: var(--primary); }
.ev.presence:hover { color: var(--primary); }
.ev.absent { background: var(--c-absent); }
.ev.cancelled { background: var(--bg-muted); color: var(--text-muted); text-decoration: line-through; }
.ev.more { background: none; color: var(--secondary); font-weight: 600; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-top: .6rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
@media (max-width: 640px) {
  .calendar .day { min-height: 58px; padding: 2px; }
  .ev { font-size: 0; height: 6px; padding: 0; margin-top: 2px; }
  .ev.more { font-size: .65rem; height: auto; }
}

/* Ocupación de salas */
.occupancy { display: grid; gap: .5rem; }
.occ-row { display: grid; grid-template-columns: 140px 1fr; gap: .5rem; align-items: center; }
.occ-track { position: relative; height: 34px; background: var(--bg); border-radius: 6px; border: 1px solid var(--bg-neutral); }
.occ-block { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--primary); color: var(--white); font-size: .7rem; padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 28px; text-decoration: none; }
.occ-block.pend { background: repeating-linear-gradient(45deg, #F4991A, #F4991A 6px, #F7B04F 6px, #F7B04F 12px); color: var(--primary); }
.occ-scale { display: grid; grid-template-columns: 140px 1fr; gap: .5rem; font-size: .7rem; color: var(--text-muted); }
.occ-scale div:last-child { display: flex; justify-content: space-between; }
@media (max-width: 640px) { .occ-row, .occ-scale { grid-template-columns: 90px 1fr; } }

/* Tablero de presencia */
.team-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.person { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--bg-neutral); }
.person .grow { min-width: 0; }
.person strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .st { font-size: .8rem; color: var(--text-muted); }
.person.in { border-left: 4px solid var(--success); }
.person.out { border-left: 4px solid var(--accent); }
.person.away { border-left: 4px solid var(--c-absent); }

/* Barras de la caja */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; align-items: end; height: 170px; padding-top: .5rem; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 3px; align-items: flex-end; height: 130px; }
.bar { width: 14px; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.in { background: var(--primary); }
.bar.out { background: var(--accent); }
.bar-col small { font-size: .72rem; color: var(--text-muted); text-transform: capitalize; }

.copy-box { display: flex; align-items: center; gap: .5rem; background: var(--white); border: 2px dashed var(--accent); border-radius: var(--radius-sm); padding: .5rem .75rem; font-weight: 700; font-family: var(--font-title); font-size: 1.1rem; }
.copy-box code { flex: 1; overflow-wrap: anywhere; font-family: inherit; }

.file-link { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; font-weight: 600; }
.vote-btn { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--border); background: var(--white); border-radius: 18px; padding: .25rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.vote-btn.on { border-color: var(--secondary); color: var(--secondary); background: var(--light); }

.detail-list { display: grid; grid-template-columns: 150px 1fr; gap: .5rem 1rem; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--text-muted); font-size: .88rem; }
.detail-list dd { margin: 0; }
@media (max-width: 560px) { .detail-list { grid-template-columns: 1fr; } .detail-list dd { margin-bottom: .5rem; } }

.menu-list a { display: flex; align-items: center; gap: .85rem; padding: 1rem .25rem; border-bottom: 1px solid var(--bg-neutral); color: var(--text); text-decoration: none; font-weight: 600; }
.menu-list a .ms:last-child { margin-left: auto; color: var(--text-disabled); }

/* Login e instalador */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(170deg, var(--primary) 0%, var(--primary) 40%, var(--accent) 40%, var(--accent) 41.2%, var(--bg) 41.2%); }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(8, 32, 47, .18); padding: 2rem 1.75rem; }
.auth-card.wide { max-width: 640px; }
.auth-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; padding-top: .75rem; border-top: 4px solid var(--accent); }
.auth-brand .brand-mark { width: 48px; height: 48px; font-size: 19px; color: var(--primary); }

@media print {
  .topbar, .sidenav, .bottomnav, .page-actions, .btn { display: none !important; }
  .main { padding: 0; }
  .card { box-shadow: none; }
}

/* Equipo */
.people-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.person-card { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.person-head { display: flex; gap: .85rem; align-items: center; }
.person-head h2 { font-size: 1.05rem; margin: 0 0 .1rem; }
.small-title { font-size: .8rem; text-transform: none; color: var(--text-muted); margin: .25rem 0 0; }
.person-contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid var(--bg-neutral); padding-top: .6rem; margin-top: .25rem; }
.person-contact span { display: inline-flex; align-items: center; gap: .3rem; overflow-wrap: anywhere; }
.person-contact .ms { font-size: 18px; color: var(--text-muted); }
.dot-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: 1px; background: var(--success); }
.status-out .dot-st { background: var(--accent); }
.status-away .dot-st { background: var(--text-disabled); }

/* Novedades */
.chip-link { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .9rem; border-radius: 20px; border: 1px solid var(--border); background: var(--white); color: var(--primary); text-decoration: none; font-size: .9rem; font-weight: 600; min-height: 40px; }
.chip-link .ms { font-size: 18px; }
.chip-link.on { background: var(--primary); border-color: var(--primary); color: var(--white); }
.news { padding: 0; overflow: hidden; }
.news-img { display: block; width: 100%; max-height: 340px; object-fit: cover; background: var(--bg-neutral); }
.news-body { padding: 1.25rem; }
.news-body h2 { font-size: 1.35rem; margin: .4rem 0 .25rem; }
.news-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.news-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 700; color: var(--primary); background: var(--light); padding: .15rem .6rem; border-radius: 12px; }
.news-tag .ms { font-size: 16px; }
.news-logro { border-top: 5px solid var(--accent); }
.news-logro .news-tag { background: var(--accent-soft); color: #7A4200; }
.news-importante { border-left: 5px solid var(--danger); }
.news-importante .news-tag { background: #FBEBEB; color: var(--danger); }
.news-text { overflow-wrap: anywhere; }
.news-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.news-mini { display: flex; gap: .75rem; align-items: center; }
.news-mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* Comprobante compartido */
.shared-row { display: flex; gap: .85rem; align-items: flex-start; }
.shared-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.shared-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Pantallas sin sesión (ingreso): a pantalla completa */
.main.main-public { padding: 0; max-width: none; }
