/* Clínica Veterinaria PET · capa de marca y vistas propias del modelo de turnos */
:root { --pet-700:#0f766e; --pet-800:#115e59; --pet-900:#0b3f3c; --pet-100:#ccfbf1; --pet-50:#effcf9; }
.portal .sidebar { background: linear-gradient(180deg, var(--pet-900), #0c2a33); }
.portal .sidebar__brand img { height: 40px; width: auto; }
.sidebar__powered { display:flex; align-items:center; gap:6px; padding: 0 20px 14px; font-size:.7rem; color:#8fbfb8; }
.sidebar__powered img { height: 12px; opacity:.85; }
.portal .welcome { background: linear-gradient(120deg, var(--pet-900), var(--pet-700)); }
.btn--pet { background: var(--pet-700); color:#fff; border-color: var(--pet-700); }
.btn--pet:hover { background: var(--pet-800); }
.demo-ribbon { display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:600; color:#8a5a00; background:#fff4d6; border:1px solid #f3dc9b; padding:3px 10px; border-radius:999px; }

/* ---------- Calendario ---------- */
.cal-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding: 14px 18px; border-bottom:1px solid var(--border); }
.cal-tools .seg button { font-size:.8rem; }
.cal-wrap { overflow:auto; max-height: 70vh; }
table.cal { border-collapse: separate; border-spacing: 2px; font-size: .74rem; min-width: 100%; }
table.cal th, table.cal td { padding:0; text-align:center; }
table.cal thead th { position: sticky; top: 0; z-index: 2; background:#fff; font-weight:600; color: var(--text-muted); height: 38px; min-width: 30px; line-height:1.1; }
table.cal thead th.we { color:#b03a2e; }
table.cal thead th.hol { color:#fff; background:#b03a2e; border-radius:6px; }
table.cal th.who, table.cal td.who { position: sticky; left: 0; z-index: 1; background:#fff; text-align:left; min-width: 190px; padding: 0 10px 0 4px; }
table.cal thead th.who { z-index: 3; }
table.cal td.who b { display:block; font-size:.8rem; color: var(--navy-900); font-weight:600; white-space:nowrap; }
table.cal td.who small { color: var(--text-subtle); font-size:.68rem; }
table.cal td.who button { all:unset; cursor:pointer; display:block; }
table.cal td.who button:hover b { color: var(--pet-700); text-decoration: underline; }
table.cal tr.rol-sep td { text-align:left; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color: var(--text-subtle); padding: 10px 4px 2px; font-weight:700; background:transparent; }
.c { display:grid; place-items:center; width:30px; height:28px; border-radius:6px; font-weight:700; font-size:.72rem; cursor:default; }
.c-HM { background:#dbeafe; color:#1e3a5f; } .c-HT { background:#93c5fd; color:#0c2340; } .c-HN { background:#1e3a5f; color:#fff; }
.c-CM { background:#d1fae5; color:#065f46; } .c-CT { background:#6ee7b7; color:#064e3b; }
.c-L { background:#f3f5f8; color:#b8c3cf; font-weight:400; } .c-V { background:#fde7d1; color:#9a4b0c; } .c-B { background:#fce7f3; color:#9d174d; }
.c.is-we { box-shadow: inset 0 0 0 1px #f2c4bf; }
.cal.dim .c:not(.is-hl) { opacity:.18; }
.cal-legend { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:.76rem; color: var(--text-muted); padding: 12px 18px; border-top:1px solid var(--border); }
.cal-legend span { display:inline-flex; align-items:center; gap:6px; }
.cal-legend .c { width:22px; height:18px; font-size:.62rem; }
table.cal tfoot td { font-size:.68rem; color: var(--text-subtle); height: 22px; }
table.cal tfoot td.ok { color: #1f8a63; font-weight:700; }

/* ---------- Barras por persona ---------- */
.pbars { display:grid; gap:8px; }
.pbar { display:grid; grid-template-columns: 150px 1fr 74px; gap:10px; align-items:center; font-size:.8rem; }
.pbar__name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color: var(--navy-900); }
.pbar__track { position:relative; height:14px; background: var(--bg-sunken); border-radius:999px; overflow:visible; display:flex; }
.pbar__fill { height:100%; border-radius:999px; background: var(--pet-700); }
.pbar__seg { height:100%; } .pbar__seg:first-child { border-radius:999px 0 0 999px; } .pbar__seg:last-child { border-radius:0 999px 999px 0; }
.pbar__target { position:absolute; top:-3px; bottom:-3px; width:2px; background: var(--navy-900); border-radius:2px; }
.pbar__val { text-align:right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.checks { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.checks li { display:flex; gap:10px; align-items:flex-start; padding:9px 4px; border-bottom:1px dashed var(--border); font-size:.86rem; }
.checks li:last-child { border-bottom:0; }
.checks li .icon { flex:none; margin-top:2px; }
.checks li small { display:block; color: var(--text-subtle); font-size:.76rem; }
.insight { display:flex; gap:12px; padding:14px; border-radius:12px; background: var(--pet-50); border:1px solid #c7efe7; font-size:.86rem; }
.insight + .insight { margin-top:10px; }
.insight .icon { color: var(--pet-700); flex:none; margin-top:2px; }

/* ---------- Mi turno ---------- */
.month { display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:6px; }
.month__dow { font-size:.72rem; font-weight:700; color: var(--text-subtle); text-align:center; text-transform:uppercase; letter-spacing:.06em; }
.month__day { min-height: 84px; border:1px solid var(--border); border-radius:12px; padding:8px; background:#fff; display:flex; flex-direction:column; gap:6px; }
.month__day.is-out { visibility:hidden; }
.month__day.is-we { background:#fffafa; }
.month__day b { font-size:.82rem; color: var(--navy-900); }
.month__day .shift { border-radius:8px; padding:5px 7px; font-size:.72rem; font-weight:600; line-height:1.25; }
.month__day .shift small { display:block; font-weight:400; opacity:.85; }
@media (max-width: 640px) { .month { gap:3px; } .month__day { min-height:64px; padding:4px; border-radius:8px; } .month__day .shift { padding:3px; font-size:.62rem; } .month__day .shift small { display:none; } }

/* ---------- Impresión (PDF del calendario) ---------- */
@media print {
  .sidebar, .topbar, .nav-scrim, .no-print, .toast { display:none !important; }
  .app, .main, .content { display:block !important; margin:0 !important; padding:0 !important; }
  .cal-wrap { max-height:none; overflow:visible; }
  table.cal { font-size:7px; } .c { width:17px; height:15px; font-size:6.5px; border-radius:3px; }
  table.cal td.who { min-width:110px; }
  .panel { box-shadow:none; border:0; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- Portada: plataforma ARALIA con espacio PET ---------- */
.auth__side--aralia { background: linear-gradient(155deg, #08131f 0%, #0c1c32 45%, #16355a 100%) !important; }
.auth__side--aralia::after { background: radial-gradient(circle at 85% 90%, rgba(20,184,166,.18), transparent 55%) !important; }
.auth__side--aralia img.bg { opacity:.05 !important; object-fit:contain; transform: scale(1.5) translate(22%, 20%); }
.auth__brandtop img { height: 34px; }
.auth__welcome { max-width: 520px; }
.auth__eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#8fb7e0; margin-bottom:22px; }
.cobrand { display:flex; align-items:center; gap:22px; padding:22px 26px; border-radius:20px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); margin-bottom:26px; flex-wrap:wrap; }
.cobrand__aralia { height:44px; }
.cobrand__pet { height:62px; }
.cobrand__x { font: 300 2rem/1 var(--font-display); color:#7f98b5; }
.auth__welcome h2 { color:#fff; font-size: clamp(1.6rem, 2.3vw, 2.15rem); margin:0 0 10px; }
.auth__welcome p { color:#c4d4e6; margin:0; max-width:46ch; line-height:1.55; }
.auth__welcome ul { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:12px; color:#d6e3f0; font-size:.95rem; }
.auth__welcome li { display:flex; gap:10px; align-items:center; }
.auth__welcome li .icon { color:#6fd3a5; }
@media (max-width: 1100px) { .cobrand__aralia { height:34px; } .cobrand__pet { height:48px; } }
