/* ============================================================
   MASCOTAS QR — Design System v3  (Profesional · Mobile First)
   Estilo: fintech / app seria / sans emojis decorativos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  /* Paleta principal */
  --ink:         #0A0F1E;
  --ink-soft:    #1E2535;
  --ink-muted:   #374151;
  --gray-500:    #6B7280;
  --gray-300:    #D1D5DB;
  --gray-100:    #F3F4F6;
  --gray-50:     #F9FAFB;
  --white:       #FFFFFF;

  /* Accent */
  --accent:      #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EFF6FF;
  --accent-mid:  #DBEAFE;

  /* Semánticos */
  --success:     #059669;
  --success-soft:#ECFDF5;
  --danger:      #DC2626;
  --danger-soft: #FEF2F2;
  --warning:     #D97706;
  --warning-soft:#FFFBEB;
  --purple:      #7C3AED;
  --purple-soft: #F5F3FF;

  /* Roles */
  --color-prop:  #2563EB;
  --color-seg:   #DC2626;
  --color-vet:   #059669;
  --color-admin: #1E2535;

  /* Forma */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--gray-50);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* ── Header ── */
.app-header {
  background: var(--ink);
  color: var(--white);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-header .logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.app-header nav { display: flex; align-items: center; gap: 4px; }
.app-header nav span { color: rgba(255,255,255,.4); font-size: 13px; }
.app-header nav a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.app-header nav a:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  text-decoration: none;
}

/* ── Layout ── */
.container    { max-width: 560px; margin: 0 auto; padding: 20px 16px; }
.container-sm { max-width: 420px; margin: 0 auto; padding: 24px 16px; }
.page-pb      { padding-bottom: 88px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-xs);
  padding: 20px;
  margin-bottom: 12px;
}
.card-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

/* ── Hero / Banner de rol ── */
.role-banner {
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 16px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.role-banner::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.role-banner.prop    { background: linear-gradient(135deg, #1E2535 0%, #2563EB 100%); }
.role-banner.seg     { background: linear-gradient(135deg, #1E2535 0%, #DC2626 100%); }
.role-banner.vet     { background: linear-gradient(135deg, #1E2535 0%, #059669 100%); }
.role-banner.admin   { background: linear-gradient(135deg, #0A0F1E 0%, #1E2535 100%); border: 1px solid rgba(255,255,255,.08); }

.role-banner .banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 6px;
}
.role-banner .banner-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.4px;
}
.role-banner .banner-sub {
  font-size: 13px;
  opacity: .6;
  margin-top: 4px;
}
.role-banner .banner-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-chip {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  padding: 16px 12px;
  text-align: center;
}
.stat-chip .num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.5px;
}
.stat-chip .lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 5px;
  line-height: 1.3;
}
.stat-chip.blue  .num { color: var(--accent); }
.stat-chip.green .num { color: var(--success); }
.stat-chip.red   .num { color: var(--danger); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  letter-spacing: -.1px;
  transition: transform .1s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active         { transform: scale(.97); }
.btn:hover          { opacity: .9; text-decoration: none; }
.btn-primary        { background: var(--accent); color: var(--white); }
.btn-success        { background: var(--success); color: var(--white); }
.btn-danger         { background: var(--danger); color: var(--white); }
.btn-dark           { background: var(--ink); color: var(--white); }
.btn-outline        { background: transparent; border: 1.5px solid var(--gray-300); color: var(--ink-muted); }
.btn-outline-accent { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-ghost          { background: var(--gray-100); color: var(--ink-muted); border: none; }
.btn-sm             { padding: 8px 14px; font-size: 12px; min-height: 36px; gap: 5px; }
.btn-lg             { padding: 16px 24px; font-size: 16px; min-height: 56px; }
.btn-block          { width: 100%; }

/* ── Acciones (grid de botones grandes) ── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.action-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.action-item:hover  { box-shadow: var(--shadow); text-decoration: none; }
.action-item:active { transform: scale(.97); }
.action-item .ai-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.action-item .ai-icon.blue   { background: var(--accent-soft); color: var(--accent); }
.action-item .ai-icon.green  { background: var(--success-soft); color: var(--success); }
.action-item .ai-icon.red    { background: var(--danger-soft); color: var(--danger); }
.action-item .ai-icon.dark   { background: var(--gray-100); color: var(--ink); }
.action-item .ai-icon.purple { background: var(--purple-soft); color: var(--purple); }
.action-item .ai-label { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.action-item .ai-sub   { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.action-item.alert-active { border-color: #FCA5A5; background: var(--danger-soft); }
.action-item.alert-active .ai-label { color: var(--danger); }

/* ── Formularios ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-control::placeholder { color: var(--gray-300); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 5px; }

/* ── Upload foto ── */
.foto-upload {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.foto-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.foto-upload .upload-label { font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.foto-preview-round {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border: 2px solid var(--gray-300);
}

/* ── Alertas flash ── */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid transparent;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.alert-error   { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.alert-info    { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge-activa     { background: var(--success-soft); color: var(--success); }
.badge-perdida    { background: var(--danger-soft); color: var(--danger); }
.badge-memorial   { background: var(--purple-soft); color: var(--purple); }
.badge-inactiva   { background: var(--gray-100); color: var(--gray-500); }
.badge-adoptada   { background: var(--accent-soft); color: var(--accent); }
.badge-encontrada { background: var(--warning-soft); color: var(--warning); }

/* ── Mascota card ── */
.pet-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.pet-card:hover  { box-shadow: var(--shadow); text-decoration: none; }
.pet-card:active { transform: scale(.99); }
.pet-card .pet-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(0,0,0,.06);
}
.pet-card img.pet-avatar { font-size: 0; }
.pet-card .pet-info { flex: 1; min-width: 0; }
.pet-card .pet-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.pet-card .pet-sub  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.pet-card .pet-aside { flex-shrink: 0; }

/* ── Lista items ── */
.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.list-row:last-child { border-bottom: none; }
.list-row .row-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.list-row .row-body { flex: 1; min-width: 0; }
.list-row .row-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.list-row .row-sub   { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.list-row .row-aside { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--gray-500); }

/* ── Alerta perdida banner ── */
.lost-alert {
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lost-alert .la-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.lost-alert .la-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.lost-alert .la-sub   { font-size: 12px; opacity: .75; }
.lost-alert a { color: var(--white); text-decoration: underline; font-size: 12px; }

/* ── Alerta del barrio (otras mascotas) ── */
.barrio-alerts {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid #FCA5A5;
  margin-bottom: 14px;
  overflow: hidden;
}
.barrio-alerts-header {
  background: var(--danger-soft);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.barrio-alert-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.barrio-alert-row:last-child { border-bottom: none; }
.ba-avatar {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}

/* ── Historial médico ── */
.hx-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--white);
}
.hx-header {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hx-header:active { background: var(--gray-50); }
.hx-type-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hx-dot-consulta   { background: var(--accent); }
.hx-dot-vacuna     { background: var(--success); }
.hx-dot-cirugia    { background: var(--danger); }
.hx-dot-tratamiento{ background: var(--purple); }
.hx-dot-alergia    { background: var(--warning); }
.hx-dot-otro       { background: var(--gray-300); }
.hx-body { padding: 0 16px 14px; border-top: 1px solid var(--gray-100); }
.hx-field-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 3px; margin-top: 12px; }
.hx-field-value { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1.5px solid var(--gray-100); margin-bottom: 16px; overflow-x: auto; gap: 0; }
.tab-btn {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  font-family: var(--font);
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ── Tipo selector (vet) ── */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.tipo-opt {
  padding: 12px 8px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  line-height: 1.4;
}
.tipo-opt.sel { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── Scanner QR ── */
.scanner-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 1;
}
.scanner-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scanner-frame {
  width: 180px; height: 180px;
  border: 2.5px solid rgba(255,255,255,.8);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
}

/* ── QR Perfil público ── */
.qr-page { background: var(--white); min-height: 100vh; }
.qr-top  {
  background: var(--ink);
  color: var(--white);
  padding: 36px 20px 72px;
  text-align: center;
}
.qr-top .barrio-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .4; margin-bottom: 4px; }
.qr-top .app-label    { font-size: 13px; font-weight: 700; opacity: .7; }
.qr-avatar {
  width: 100px; height: 100px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.15);
  margin: -50px auto 16px;
  display: block;
  box-shadow: var(--shadow);
  background: var(--gray-100);
}
.qr-pet-name   { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.qr-pet-breed  { font-size: 14px; opacity: .55; margin-top: 2px; }
.qr-pet-loc    { font-size: 12px; opacity: .4; margin-top: 6px; }

.qr-actions { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.qr-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.qr-btn:active { transform: scale(.98); }
.qr-btn:hover  { opacity: .9; text-decoration: none; }
.qr-btn.green  { background: #22C55E; color: var(--white); }
.qr-btn.wa     { background: #25D366; color: var(--white); }
.qr-btn.blue   { background: var(--accent); color: var(--white); }
.qr-btn .qr-btn-text .qr-btn-title { font-weight: 700; font-size: 14px; }
.qr-btn .qr-btn-text .qr-btn-sub   { font-size: 11px; opacity: .75; margin-top: 1px; }
.qr-btn .qr-btn-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Datos grid ── */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.data-cell {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.data-cell:nth-child(odd)  { padding-right: 12px; border-right: 1px solid var(--gray-100); }
.data-cell:nth-child(even) { padding-left: 12px; }
.data-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 3px; }
.data-value { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  display: flex;
  z-index: 300;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a,
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
  min-width: 0;
  position: relative;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:hover  { color: var(--accent); text-decoration: none; }
.bottom-nav .nav-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
/* SVG icons en bottom nav */
.bottom-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Badge notificaciones */
#notif-badge {
  position: absolute;
  top: 6px; right: calc(50% - 16px);
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: 9px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  line-height: 1;
}

/* ── Panel notificaciones ── */
.notif-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  flex-direction: column;
}
.notif-header {
  background: var(--ink);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
.notif-header .notif-title { font-size: 15px; font-weight: 700; }
.notif-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background .1s;
  border-left: 3px solid transparent;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--accent-soft); border-left-color: var(--accent); }
.notif-item.unread.perdida { background: var(--danger-soft); border-left-color: var(--danger); }
.notif-item-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.notif-item-msg   { font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.notif-item-time  { font-size: 10px; color: var(--gray-300); margin-top: 5px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); }
.empty-icon  { width: 56px; height: 56px; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.empty-state p { font-size: 14px; line-height: 1.6; }

/* ── Próximas visitas ── */
.proxima-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.proxima-row:last-child { border-bottom: none; }
.proxima-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.proxima-date.today { color: var(--danger); background: var(--danger-soft); }

/* ── Utilidades ── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1         { gap: 8px; }
.gap-2         { gap: 14px; }
.mt-1          { margin-top: 8px; }
.mt-2          { margin-top: 16px; }
.mt-3          { margin-top: 24px; }
.mb-1          { margin-bottom: 8px; }
.mb-2          { margin-bottom: 16px; }
.w-full        { width: 100%; }
.text-center   { text-align: center; }
.text-muted    { color: var(--gray-500); }
.text-sm       { font-size: 13px; }
.text-xs       { font-size: 11px; }
.font-bold     { font-weight: 700; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-2        { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 380px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

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