/* El Círculo del Cultural · app de alumnas
   Ajustad aquí los colores para que coincidan exactamente con la web. */
:root {
  --negro: #000;
  --texto: #1f1c1a;
  --rojo: #9b1b25;
  --rojo-osc: #78111a;
  --oro: #b48a4f;
  --fondo: #f3f2f0;
  --papel: #fff;
  --linea: #e2ded8;
  --suave: #6f6a64;
  --ok: #2e6b3f;
  --aviso: #8a5d0c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
  --tab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--texto); background: var(--fondo); }
img { max-width: 100%; }
a { color: var(--rojo); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--negro); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .8em; }
.lead { font-size: 1.05rem; color: var(--suave); max-width: 62ch; }
.muted { color: var(--suave); }
.small { font-size: .875rem; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--negro); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.logo { height: 42px; width: auto; display: block; }
.logo-text { font-family: var(--serif); font-size: 1.3rem; }
.area-student .topbar-in, .area-login .topbar-in { justify-content: center; }
.top-out { margin-left: auto; }

.adminnav { display: flex; gap: 2px; margin-left: auto; }
.adminnav a { color: #d9d4ce; text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: .95rem; white-space: nowrap; position: relative; }
.adminnav a:hover { color: #fff; background: #1c1c1c; }
.adminnav a[aria-current] { color: #fff; background: var(--rojo); }
.ic { width: 20px; height: 20px; flex: none; }
.badge { background: var(--rojo); color: #fff; border-radius: 99px; font: 600 .72rem/1 var(--sans); padding: 3px 6px; min-width: 20px; text-align: center; }
.adminnav a[aria-current] .badge { background: #fff; color: var(--rojo); }

/* ---------- Estructura ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 22px 16px 40px; }
.wrap.wide { max-width: 1240px; }
.area-student .wrap { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }
.card { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.admin-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .admin-grid > aside { position: sticky; top: 84px; } }

/* ---------- Avisos ---------- */
.flash { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; border-left: 4px solid; background: var(--papel); }
.flash-ok { border-color: var(--ok); }
.flash-error { border-color: var(--rojo); }
.flash-warn { border-color: var(--aviso); background: #fbf5ea; }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 1rem/1 var(--sans); letter-spacing: .02em;
  background: var(--rojo); color: #fff; border: 1px solid var(--rojo); border-radius: 10px; padding: 13px 20px; min-height: 46px;
  text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--rojo-osc); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--negro); border-color: var(--negro); }
.btn-ghost:hover { background: var(--negro); color: #fff; }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: .92rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 6px 2px; font: inherit; color: var(--negro); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn.danger { color: var(--rojo); }
.linkbtn.light { color: #fff; text-decoration: none; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--negro); border: 1px solid var(--linea); background: var(--papel); }
.iconbtn:hover { border-color: var(--negro); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.btnrow.center { justify-content: center; }

.form { display: grid; gap: 14px; }
.form label, .row-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; padding: 11px 12px; border: 1px solid #cfc9c1; border-radius: 9px; background: #fff; color: var(--texto); min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--negro); box-shadow: 0 0 0 3px rgba(155, 27, 37, .15); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--rojo); }
.grid2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .span2, .form-end { grid-column: 1 / -1; } }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.row-form > select, .row-form > input { flex: 1 1 160px; width: auto; }
.row-form .grow { flex: 1 1 220px; }
.row-form .num { width: 80px; }
.inline-l { display: flex !important; align-items: center; gap: 6px; font-weight: 400 !important; }
.inline-l.check { min-height: 46px; }
.inline { display: inline; }
.inline input { width: auto; }
.searchbar { display: flex; gap: 8px; margin: 12px 0; }
.searchbar input { flex: 1; }
.seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
.seg legend { font-weight: 500; margin-bottom: 8px; font-size: .95rem; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 14px 8px; border: 1px solid var(--negro); border-radius: 10px; font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--negro); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--rojo); outline-offset: 2px; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.newform > summary h2, .newform > summary h3 { display: inline; margin: 0; }
.newform > summary::after { content: "+"; float: right; font-size: 1.5rem; line-height: 1; color: var(--rojo); }
.newform[open] > summary::after { content: "−"; }
.newform[open] > summary { margin-bottom: 14px; }
.tools { margin-top: 10px; border-top: 1px dashed var(--linea); padding-top: 8px; }
.tools > summary { font-size: .9rem; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }

/* ---------- Login ---------- */
.area-login { background: var(--negro); color: #e8e3dc; }
.area-login .topbar-in { min-height: 120px; }
.area-login .logo { height: 72px; }
.login { max-width: 420px; margin: 0 auto; }
.login h1 { color: #fff; font-size: 2.5rem; font-weight: 500; font-style: italic; }
.login .lead { color: #bdb6ad; }
.login .form label { color: #e8e3dc; }
.login input { background: #121212; border-color: #3a3632; color: #fff; }
.login input:focus { border-color: var(--oro); }
.login-help { margin-top: 24px; font-size: .9rem; color: #a59e95; }
.login-help a, .area-login a:not(.btn) { color: #e3c08a; }
.area-login .btn-ghost { color: #fff; border-color: #fff; }

/* ---------- Bonos con lunares ---------- */
.hello { font-size: 2.3rem; font-weight: 500; font-style: italic; }
.passes { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 560px) { .passes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.pass { background: var(--papel); border: 1px solid var(--linea); border-left: 4px solid var(--rojo); border-radius: var(--r); padding: 14px 16px; }
.pass-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pass-head strong { font-weight: 600; }
.pass-head span { font-size: .875rem; color: var(--suave); }
.pass-txt { margin: 6px 0 0; font-size: .92rem; }
.pass-restr { display: inline-block; margin-top: 6px; margin-right: 6px; font-size: .8rem; background: var(--fondo); border-radius: 99px; padding: 2px 10px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9c2b9; }
.dots i.on { background: var(--rojo); border-color: var(--rojo); }
.passes.compact .dots i { width: 12px; height: 12px; }
.passwrap.old { opacity: .55; }

/* ---------- Calendario alumna ---------- */
.changebar { background: var(--negro); color: #fff; border-radius: var(--r); padding: 14px 16px; margin: 16px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.changebar p { margin: 0; }
.changebar .linkbtn { color: #e3c08a; }
.cal { background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; padding: 14px 10px 10px; margin-top: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-head h2, .cal-head h1 { margin: 0; }
.cal-head.left { flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .8rem; color: var(--suave); padding: 4px 0; font-weight: 500; }
.cal-day { aspect-ratio: 1 / 1.05; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--texto); font-weight: 500; position: relative; min-height: 44px; }
a.cal-day { background: var(--fondo); }
a.cal-day:hover { background: #e9e6e1; }
.cal-day.none { color: #b9b3ab; font-weight: 400; }
.cal-day.out { opacity: .35; }
.cal-day.past { opacity: .5; }
.cal-day.today .n { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cal-day.sel { background: var(--negro) !important; color: #fff; opacity: 1; }
.lunares { display: flex; gap: 3px; height: 7px; }
.lunares i, .cal-legend i { width: 7px; height: 7px; border-radius: 50%; border: 1.3px solid var(--rojo); display: inline-block; }
.lunares i.me, .cal-legend i.me { background: var(--rojo); }
.lunares i.full, .cal-legend i.full { border-color: #b9b3ab; background: #b9b3ab; }
.cal-day.sel .lunares i { border-color: #fff; }
.cal-day.sel .lunares i.me { background: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .8rem; color: var(--suave); margin: 10px 0 2px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.day { scroll-margin-top: 80px; padding-top: 6px; }
.day-title { font-size: 1.7rem; font-style: italic; font-weight: 500; }
.sessions { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.session { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.session.is-mine { border-color: var(--rojo); box-shadow: inset 4px 0 0 var(--rojo); }
.session.is-past { opacity: .6; }
.session-time { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; text-align: center; min-width: 64px; }
.session-time small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--suave); font-weight: 400; margin-top: 4px; }
.session-date { text-align: center; min-width: 54px; line-height: 1.1; font-size: .8rem; color: var(--suave); }
.session-date strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--negro); }
.session-name { font-weight: 600; margin: 0; }
.session-meta { margin: 2px 0 0; font-size: .9rem; color: var(--suave); }
.session.is-mine .session-meta { color: var(--rojo); font-weight: 500; }
.session-act { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.session-act:empty { display: none; }
@media (min-width: 520px) { .session { grid-template-columns: auto 1fr auto; } .session-act { grid-column: auto; } }

.history { list-style: none; padding: 0; margin: 0 0 16px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); }
.history:empty { display: none; }
.history li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--linea); font-size: .93rem; }
.history li:first-child { border-top: 0; }
.history li > :first-child { min-width: 140px; font-weight: 500; }
.history li form { margin-left: auto; }
.st { font-size: .8rem; padding: 2px 10px; border-radius: 99px; background: var(--fondo); white-space: nowrap; }
.st-asistida { background: #e4f0e6; color: var(--ok); }
.st-falta, .st-cancelada_tarde, .st-warn { background: #f8e7e8; color: var(--rojo); }
.empty { background: var(--papel); border: 1px dashed #c9c2b9; border-radius: var(--r); padding: 22px; text-align: center; }
.empty-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--linea); padding-bottom: 8px; }
.logout-form { margin-top: 28px; }

/* ---------- Barra inferior alumna ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--negro); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { color: #a8a199; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); font-size: .74rem; }
.tabbar a[aria-current] { color: #fff; }
.tabbar a[aria-current] .ic { color: #e2434f; }
@media (min-width: 760px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); bottom: 16px; width: 520px; border-radius: 16px; padding-bottom: 0; }
}

/* ---------- Ticket / QR ---------- */
.ticket { max-width: 360px; margin: 10px auto 16px; background: var(--papel); border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); }
.ticket-top { background: var(--negro); padding: 18px; display: flex; justify-content: center;
  background-image: radial-gradient(circle, var(--rojo) 3.5px, transparent 4px); background-size: 22px 22px; background-position: 0 0; }
.ticket-top { box-shadow: inset 0 0 0 999px rgba(0,0,0,.72); }
.ticket-logo { height: 52px; position: relative; }
.ticket-body { padding: 20px 22px 8px; text-align: center; }
.ticket-kicker { font-size: .85rem; color: var(--suave); margin: 0; }
.ticket-name { margin: 4px 0 14px; font-size: 1.8rem; }
.qr { width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto 14px; }
.qr svg { width: 100%; height: 100%; display: block; }
.ticket-note { font-size: .9rem; color: var(--texto); }
.ticket-stub { border-top: 2px dashed var(--linea); position: relative; padding: 14px; text-align: center; font-size: .85rem; font-weight: 500; color: var(--rojo); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--fondo); border: 1px solid var(--linea); }
.ticket-stub::before { left: -11px; } .ticket-stub::after { right: -11px; }

/* ---------- Verificación ---------- */
.verify { border-radius: 16px; padding: 24px 20px; margin-bottom: 16px; color: #fff; text-align: center; }
.verify.ok { background: var(--ok); }
.verify.ko { background: var(--rojo); }
.verify h1 { color: #fff; margin: 0 0 6px; }
.verify-state { font-weight: 600; margin: 0 0 4px; font-size: 1.05rem; }
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rows a { display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--texto); }

/* ---------- Admin: mes ---------- */
.month { display: grid; grid-template-columns: 1fr; gap: 8px; }
.month-dow { display: none; }
.month-day { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 10px; }
.month-day.none, .month-day.out { display: none; }
.month-day.today { border-color: var(--negro); box-shadow: inset 0 3px 0 var(--rojo); }
.month-n { display: flex; align-items: baseline; gap: 6px; font-weight: 600; color: var(--negro); text-decoration: none; margin-bottom: 6px; }
.month-wd { text-transform: capitalize; font-weight: 500; }
.month-sum { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--rojo); }
.slot { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px; align-items: center; font-size: .82rem; padding: 5px 7px; border-radius: 6px; margin-top: 3px; text-decoration: none; color: var(--texto); background: var(--fondo); }
.slot-t { font-weight: 600; }
.slot-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-c { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot.l1, .lv.l1 { background: #f3dfe0; }
.slot.l2, .lv.l2 { background: #e5a9ae; }
.slot.l3, .lv.l3 { background: var(--rojo); color: #fff; }
.slot.closed { text-decoration: line-through; color: var(--suave); background: transparent; border: 1px dashed var(--linea); }
.lv { width: 14px !important; height: 14px !important; border-radius: 4px !important; border: 0 !important; }
@media (min-width: 900px) {
  .month { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .month-dow { display: block; text-align: center; font-size: .8rem; color: var(--suave); text-transform: capitalize; padding-bottom: 4px; }
  .month-day, .month-day.none { display: block; min-height: 108px; padding: 6px; }
  .month-day.out { display: block; visibility: hidden; }
  .month-day.none { background: transparent; }
  .month-wd { display: none; }
  .slot { grid-template-columns: 1fr auto; font-size: .75rem; padding: 3px 5px; }
  .slot-n { display: none; }
}

.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feed-head h2 { margin: 0; }
.feed-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.feed-list li { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.feed-list li.new { border-left: 4px solid var(--rojo); }
.feed-list p { margin: 0; }
.act { font-weight: 500; }
.act-cambio .act { color: var(--aviso); }
.act-cancelacion .act { color: var(--rojo); }
.act-reserva .act { color: var(--ok); }
.feed-detail { color: var(--texto); }
.feed-time { font-size: .78rem; color: var(--suave); margin-top: 2px !important; }

/* ---------- Admin: día ---------- */
.session-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.session-card-head h2 { margin: 0; font-size: 1.6rem; }
.cap { font-size: 1rem; color: var(--suave); white-space: nowrap; }
.cap strong { font-family: var(--serif); font-size: 2rem; color: var(--negro); }
.cap.full strong { color: var(--rojo); }
.attendees { list-style: none; padding: 0; margin: 10px 0; }
.attendees li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--linea); }
.attendees li.is-off { opacity: .6; }
.att-name { font-weight: 500; color: var(--texto); flex: 1 1 160px; }
.att-status { display: flex; gap: 6px; }
.chip { font: 500 .85rem var(--sans); border: 1px solid #cfc9c1; background: #fff; color: var(--texto); border-radius: 99px; padding: 7px 12px; cursor: pointer; min-height: 36px; }
.chip.on { background: var(--negro); color: #fff; border-color: var(--negro); }

/* ---------- Admin: listas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters .searchbar { flex: 1 1 320px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tabs a { padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--texto); white-space: nowrap; font-size: .92rem; }
.tabs a[aria-current] { background: var(--negro); color: #fff; }
.userlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.userlist a { display: grid; gap: 8px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: var(--texto); }
.userlist a:hover { border-color: var(--negro); }
.ul-name { display: flex; flex-direction: column; }
.ul-pass { display: grid; gap: 4px; }
.ul-p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ul-p .dots { margin: 0; gap: 4px; }
.ul-p .dots i { width: 11px; height: 11px; }
.ul-next { color: var(--suave); }
@media (min-width: 800px) { .userlist a { grid-template-columns: 1.2fr 1.6fr 140px; align-items: center; } .ul-next { text-align: right; } }
.creds { border-color: var(--oro); background: #fffaf2; }
.creds pre { white-space: pre-wrap; font: .92rem/1.5 var(--sans); background: #fff; border: 1px solid var(--linea); border-radius: 8px; padding: 12px; }
.typecard.is-off { opacity: .6; }
.slots { list-style: none; padding: 0; margin: 8px 0; }
.slots li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linea); }
.add-slot input[type=time] { flex: 0 1 120px; }

/* ---------- Móvil: menú admin desplazable ---------- */
@media (max-width: 999px) {
  .area-admin .topbar-in { flex-wrap: wrap; padding-bottom: 0; }
  .area-admin .brand { margin: 0 auto; }
  .adminnav { width: 100%; margin: 0 -16px; padding: 6px 12px 8px; overflow-x: auto; scrollbar-width: none; width: calc(100% + 32px); }
  .adminnav::-webkit-scrollbar { display: none; }
  .adminnav a { padding: 8px 10px; font-size: .88rem; }
  h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .topbar, .tabbar, .btnrow, .admin-grid > div, .admin-grid > aside > h2, .admin-grid > aside > h3, .history, .wrap > p, .wrap > .cal-head { display: none !important; }
  .admin-grid { display: block; }
  .ticket { border: 1px solid #000; }
}

/* ---------- Ajustes ---------- */
.card > h2:first-child, .card > h3:first-child, section > h2:first-child { margin-top: 0; }
.history:not(:has(li)) { display: none; }
.ticket-top { color: #fff; }
.slot.l0 { color: var(--suave); background: #f6f5f3; }
.slot.l0 .slot-c { font-weight: 400; }
@media (min-width: 900px) { .month-day.none { border-color: transparent; } }
@media (max-width: 999px) {
  .admin-grid > aside.feed { order: -1; }
  .feed-list { max-height: 360px; overflow-y: auto; padding-right: 2px; }
  .month-day.past { display: none; }
}
