/* ============================================================
   BeaMax Pet — estilos
   Paleta: teal de confianza + neutros cálidos. Acento urgencia rosa-rojo.
   ============================================================ */
:root {
  --brand:        #043B4A;   /* azul petróleo: confianza, tecnología, mapa */
  --brand-dark:   #032A35;
  --brand-soft:   #DCEAED;
  --accent:       #B7F000;   /* lima eléctrica: energía, diferenciación */
  --accent-dark:  #5A8A00;   /* lima oscuro para texto/enlaces sobre fondo claro */
  --ink:          #1F2933;   /* grafito */
  --ink-soft:     #5A6570;
  --line:         #E4E0D3;
  --bg:           #FFFFFF;
  --bg-warm:      #F8F4E8;   /* marfil cálido */
  --urgent:       #FF3B30;   /* rojo alerta: solo urgencias */
  --urgent-soft:  #FFE5E3;
  --star:         #F59E0B;
  --ok:           #15803D;
  --shadow:       0 6px 24px rgba(4, 33, 41, 0.12);
  --radius:       16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* El atributo "hidden" siempre debe ocultar, aunque la clase tenga display:flex.
   (Sin esto, el banner de urgencia no se escondía al tocar "Salir".) */
[hidden] { display: none !important; }

/* ---------- Encabezado ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo { width: 22px; height: 22px; display: block; }
.auth-brand { text-align: center; padding: 4px 0 14px; }
.auth-logo { width: 56px; height: 56px; display: block; margin: 0 auto 8px; }
.auth-brand-name { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.auth-brand-tagline { font-size: 13px; color: var(--ink-soft, #5B6664); margin-top: 2px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.location-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.location-pill .i { width: 16px; height: 16px; }

/* ---------- Controles ---------- */
.controls {
  background: var(--brand);
  padding: 0 16px 14px;
}
.search {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 12px;
  padding: 11px 13px;
}
.search .i { width: 18px; height: 18px; color: var(--ink-soft); }
.search input {
  border: none; outline: none; width: 100%;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: transparent;
}
.chips {
  display: flex; gap: 8px; margin-top: 11px;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid transparent;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip[aria-pressed="true"] { background: #fff; color: var(--brand-dark); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Layout cuerpo ---------- */
.layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.map-wrap { position: relative; height: 44vh; order: -1; }
#map { width: 100%; height: 100%; background: #DDE6E4; }

.panel {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--bg-warm);
}
.panel-head {
  padding: 12px 16px 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.list { list-style: none; margin: 0; padding: 0 12px 24px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.list::-webkit-scrollbar { width: 7px; }
.list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.list::-webkit-scrollbar-track { background: transparent; }
.card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
  margin-bottom: 9px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--brand); }
.card-ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-ic .i { width: 22px; height: 22px; color: #fff; }
.card-body { flex: 1; min-width: 0; }
.card-name { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.card-meta { font-size: 12px; color: var(--ink-soft); }
.card-right { text-align: right; font-size: 12px; color: var(--ink-soft); }
.card-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--ink); }
.card-rating .i { width: 13px; height: 13px; color: var(--star); fill: var(--star); stroke: none; }
.score-pill {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 999px;
}

/* ---------- Pin del mapa ---------- */
.pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pin.urgent { animation: pulse 1.4s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 2px 6px rgba(225,29,72,0.4); }
  50% { box-shadow: 0 2px 14px rgba(225,29,72,0.9); }
}

/* ---------- Botón urgencia ---------- */
.btn-emergencia {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--urgent); color: #fff;
  padding: 14px 18px; border-radius: 12px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
  margin: 2px 0 4px;
  animation: latido-emergencia 2.6s ease-in-out infinite;
}
.btn-emergencia .i { color: #fff; width: 20px; height: 20px; }
.btn-emergencia:hover { background: #E22A20; }
@keyframes latido-emergencia {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(255, 59, 48, 0.6); }
}
.fab-emergency {
  position: absolute; right: 16px; bottom: 16px; z-index: 500;
  display: flex; align-items: center; gap: 7px;
  background: var(--urgent); color: #fff;
  padding: 12px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow);
  /* Aparece solo cuando el botón grande de emergencia ya no se ve.
     Así nunca hay dos accesos de emergencia compitiendo a la vez. */
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.fab-emergency.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-emergency .i { color: #fff; }

.emergency-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: var(--urgent); color: #fff;
  font-size: 13px; font-weight: 500;
}
.emergency-banner button {
  color: var(--urgent); background: #fff;
  padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 12px;
}

/* ---------- Detalle ---------- */
.detail-scrim {
  position: fixed; inset: 0; background: rgba(24,33,31,0.4);
  z-index: 900;
}
.detail {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  max-height: 88vh; overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px 28px;
  box-shadow: var(--shadow);
}
.detail-grip {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--line); margin: 6px auto 4px;
}
.detail-close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-warm); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.d-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; padding-right: 36px; display: flex; align-items: center; gap: 7px; }
.d-verified { color: var(--brand); width: 19px; height: 19px; }
.d-cat { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.d-stats { display: flex; gap: 16px; margin: 12px 0; font-size: 13px; align-items: center; }
.d-stats .i { width: 15px; height: 15px; }
.d-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.d-open .dot { width: 8px; height: 8px; border-radius: 50%; }
.d-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink); background: var(--bg-warm);
  border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}
.badge .i { width: 14px; height: 14px; color: var(--brand); }
.d-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 6px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink);
  background: #fff;
}
.act .i { width: 19px; height: 19px; }
.act.wa { background: var(--brand); color: #fff; border-color: var(--brand); }
.act.wa .i { color: #fff; }
.d-section-title { font-size: 13px; font-weight: 700; margin: 18px 0 9px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.svc { font-size: 12px; background: var(--brand-soft); color: var(--brand-dark); padding: 5px 11px; border-radius: 999px; font-weight: 500; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.review {
  background: var(--bg-warm); border-radius: 12px; padding: 12px; margin-bottom: 9px;
}
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.review-av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.review-stars { color: var(--star); font-size: 12px; }
.review-text { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.empty { padding: 30px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- Selector de app de mapas ---------- */
.map-scrim { position: fixed; inset: 0; background: rgba(24,33,31,0.45); z-index: 1100; }
.map-chooser {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 8px 18px 24px;
  box-shadow: var(--shadow);
}
.mc-title { font-size: 16px; font-weight: 700; text-align: center; margin: 10px 0 16px; }
.map-opt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 13px 14px; margin-bottom: 9px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 600;
}
.map-opt:hover { border-color: var(--brand); }
.mo-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mo-ic .i { color: #fff; width: 22px; height: 22px; }
.mo-chev { margin-left: auto; color: var(--ink-soft); }
.mc-cancel {
  width: 100%; margin-top: 6px; padding: 13px;
  border-radius: 14px; background: var(--bg-warm); color: var(--ink);
  font-size: 15px; font-weight: 600;
}
@media (min-width: 820px) {
  .map-chooser { left: auto; right: 24px; bottom: 24px; width: 360px; border-radius: 22px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 820px) {
  .layout { flex-direction: row; }
  .map-wrap { order: 1; height: auto; flex: 1; }
  .panel { width: 400px; border-right: 1px solid var(--line); }
  .list { padding-bottom: 40px; }
  .detail {
    left: auto; right: 24px; bottom: 24px; top: 24px;
    width: 400px; max-height: none;
    border-radius: 22px;
  }
  .detail-scrim { background: transparent; pointer-events: none; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   MVP 2 — Cuenta y mascotas
   ============================================================ */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.account-btn {
  display: flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand-dark);
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.account-btn .i { width: 17px; height: 17px; }
.account-btn.logueado { background: var(--brand-dark); color: #fff; }
.account-btn.logueado .i { color: #fff; }

/* Modales genéricos */
.modal-scrim { position: fixed; inset: 0; background: rgba(24,33,31,0.45); z-index: 1300; }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 1400; width: calc(100% - 32px); max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 24px 22px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-warm); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.modal h3 { font-size: 19px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }

/* Pestañas del modal de cuenta */
.auth-tabs { display: flex; gap: 6px; background: var(--bg-warm); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; padding: 9px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.auth-tab.activa { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Formularios */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand); }
.auth-error { color: var(--urgent); font-size: 13px; margin: 0; padding: 9px 12px; background: var(--urgent-soft); border-radius: 9px; }

.btn-primary {
  background: var(--brand); color: #fff;
  padding: 13px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  margin-top: 4px;
}
.btn-primary:disabled { opacity: 0.6; cursor: default; }

/* Vista completa: Mis mascotas */
.fullview {
  position: fixed; inset: 0; z-index: 1250;
  background: var(--bg-warm);
  display: flex; flex-direction: column;
}
.fullview-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--brand); color: #fff;
}
.fullview-head h2 { flex: 1; font-size: 18px; font-weight: 700; margin: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.fullview-body { flex: 1; overflow-y: auto; padding: 18px 16px 30px; max-width: 640px; width: 100%; margin: 0 auto; }
.welcome { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }

/* Tarjeta de mascota */
.pet-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  cursor: pointer; transition: border-color .15s;
}
.pet-card:hover { border-color: var(--brand); }
.pet-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pet-avatar .i { width: 28px; height: 28px; }
.pet-card-body { flex: 1; min-width: 0; }
.pet-card-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.pet-card-meta { font-size: 13px; color: var(--ink-soft); }
.pet-card .chev { color: var(--ink-soft); }

.btn-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 8px;
  border: 1.5px dashed var(--brand); border-radius: var(--radius);
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 15px; font-weight: 700;
}
.btn-add .i { color: var(--brand-dark); }

.pet-empty { text-align: center; padding: 30px 16px; color: var(--ink-soft); font-size: 14px; }

/* Ficha de mascota (detalle) */
.pd-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 30px; }
.pd-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.pd-sub { font-size: 13px; color: var(--ink-soft); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pd-item { background: var(--bg-warm); border-radius: 12px; padding: 11px 13px; }
.pd-item .k { font-size: 11px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pd-item .v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.pd-section { font-size: 13px; font-weight: 700; margin: 16px 0 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pd-tag { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; font-weight: 500; }
.pd-tag.alergia { background: var(--urgent-soft); color: var(--urgent); }
.pd-tag.cond { background: #FEF3C7; color: #92400E; }
.pd-tag.med { background: var(--brand-soft); color: var(--brand-dark); }
.pd-future {
  margin-top: 18px; padding: 14px; border-radius: 12px;
  background: var(--bg-warm); border: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-soft); text-align: center;
}

/* ============================================================
   MVP 2 — Historial médico
   ============================================================ */
.field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; background: #fff; width: 100%; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--brand); }

.pd-hist-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.pd-hist-head .pd-section { margin: 0; }
.btn-hist-add {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.btn-hist-add .i { width: 15px; height: 15px; }

.hist-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px; margin-bottom: 9px;
  position: relative;
}
.hist-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.hist-fecha { font-size: 13px; font-weight: 700; color: var(--ink); }
.hist-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .02em;
}
.hist-badge.consulta { background: var(--brand-soft); color: var(--brand-dark); }
.hist-badge.control  { background: #E0F2FE; color: #075985; }
.hist-badge.vacuna   { background: #DCFCE7; color: #166534; }
.hist-badge.urgencia { background: var(--urgent-soft); color: var(--urgent); }
.hist-badge.cirugia  { background: #FEF3C7; color: #92400E; }
.hist-badge.otro     { background: var(--bg-warm); color: var(--ink-soft); }
.hist-vet { font-size: 12px; color: var(--ink-soft); margin-left: auto; padding-right: 22px; }
.hist-row { font-size: 13.5px; color: var(--ink); margin: 3px 0; line-height: 1.4; }
.hist-row b { color: var(--ink-soft); font-weight: 600; }
.hist-del {
  position: absolute; right: 10px; bottom: 10px;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg-warm); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.hist-del .i { width: 15px; height: 15px; }
.hist-del:hover { background: var(--urgent-soft); color: var(--urgent); }
.hist-empty { font-size: 13px; color: var(--ink-soft); padding: 14px; text-align: center; background: var(--bg-warm); border-radius: 12px; }

/* ============================================================
   MVP 2 — Adjuntar foto / documento
   ============================================================ */
.adjuntar { display: flex; flex-direction: column; gap: 8px; }
.btn-adjuntar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  border: 1.5px dashed var(--brand); border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 14px; font-weight: 600;
}
.btn-adjuntar .i { width: 18px; height: 18px; color: var(--brand-dark); }
.adjuntar-nota { font-size: 11.5px; color: var(--ink-soft); margin: 0; text-align: center; }

.adjunto-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-warm); border-radius: 12px; padding: 10px;
}
#adjuntoImg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.adjunto-pdf {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background: var(--urgent-soft); color: var(--urgent);
  display: flex; align-items: center; justify-content: center;
}
.adjunto-pdf .i { width: 26px; height: 26px; }
.adjunto-nombre { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adjunto-quitar {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: #fff; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.adjunto-quitar .i { width: 16px; height: 16px; }
.adjunto-quitar:hover { color: var(--urgent); }

/* Botón "Ver receta" dentro de una tarjeta del historial */
.hist-ver {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.hist-ver .i { width: 14px; height: 14px; }

/* Visor (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox iframe { width: 100%; height: 88vh; border: 0; border-radius: 8px; background: #fff; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close .i { width: 22px; height: 22px; }

/* ============================================================
   MVP 3 — Mi negocio (lado prestador)
   ============================================================ */
.negocio-entry {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.negocio-entry-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.negocio-entry-ico .i { width: 24px; height: 24px; }
.negocio-entry-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.negocio-entry-txt strong { font-size: 14px; color: var(--ink); }
.negocio-entry-txt span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.btn-negocio {
  flex-shrink: 0; background: var(--brand); color: #fff;
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
}

/* Estado de registro de negocio (vacío) */
.neg-vacio { text-align: center; padding: 24px 16px; }
.neg-vacio .neg-ico {
  width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 16px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.neg-vacio .neg-ico .i { width: 38px; height: 38px; }
.neg-vacio h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.neg-vacio p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0 auto 20px; max-width: 360px; }

/* Panel del negocio registrado */
.neg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.neg-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.neg-card-ico {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.neg-card-ico .i { width: 26px; height: 26px; }
.neg-card-info { flex: 1; min-width: 0; }
.neg-card-nombre { font-size: 18px; font-weight: 700; margin: 0 0 3px; letter-spacing: -0.01em; }
.neg-card-cat { font-size: 13px; color: var(--ink-soft); }
.neg-plan {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  text-transform: uppercase; letter-spacing: .03em; margin-top: 6px;
}
.neg-datos { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; }
.neg-dato { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink); align-items: center; }
.neg-dato .i { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }

.neg-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 6px; }
.neg-stat { background: var(--bg-warm); border-radius: 12px; padding: 12px 8px; text-align: center; }
.neg-stat .n { font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.neg-stat .l { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

.neg-estado-aviso {
  font-size: 12.5px; color: #92400E; background: #FEF3C7;
  border-radius: 10px; padding: 9px 12px; margin-top: 10px;
}

/* Indicador de validación del RUT en vivo */
.rut-estado { font-size: 12px; font-weight: 600; margin-top: 4px; min-height: 15px; }
.rut-estado.ok  { color: #166534; }
.rut-estado.mal { color: var(--urgent); }

/* ============================================================
   MVP 3 — Importador de comercios (admin)
   ============================================================ */
.admin-entry { margin-top: 12px; }
.btn-admin-import {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  border: 1.5px dashed var(--ink-soft); border-radius: var(--radius);
  background: var(--bg-warm); color: var(--ink-soft);
  font-size: 13.5px; font-weight: 700;
}
.btn-admin-import .i { width: 17px; height: 17px; }

/* Selector de archivo */
.imp-drop {
  text-align: center; padding: 30px 18px;
  border: 2px dashed var(--brand); border-radius: var(--radius);
  background: var(--brand-soft);
}
.imp-drop .imp-ico {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px;
  background: #fff; color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.imp-drop .imp-ico .i { width: 32px; height: 32px; }
.imp-drop h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.imp-drop p { font-size: 13px; color: var(--ink-soft); margin: 0 auto 16px; max-width: 340px; line-height: 1.5; }
.imp-archivo-nombre { font-size: 13px; color: var(--brand-dark); font-weight: 600; margin-top: 12px; }

/* Resumen (tarjetas de semáforo) */
.imp-resumen { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 4px 0 18px; }
.imp-stat { border-radius: 14px; padding: 14px 8px; text-align: center; }
.imp-stat .n { font-size: 26px; font-weight: 800; line-height: 1; }
.imp-stat .l { font-size: 11.5px; margin-top: 5px; font-weight: 600; }
.imp-stat.ok  { background: #DCFCE7; } .imp-stat.ok .n,  .imp-stat.ok .l  { color: #166534; }
.imp-stat.dup { background: #FEF3C7; } .imp-stat.dup .n, .imp-stat.dup .l { color: #92400E; }
.imp-stat.err { background: var(--urgent-soft); } .imp-stat.err .n, .imp-stat.err .l { color: var(--urgent); }

/* Lista de filas con problema */
.imp-seccion-tit { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--ink); }
.imp-fila {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; margin-bottom: 7px;
}
.imp-fila-badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; flex-shrink: 0; margin-top: 1px;
}
.imp-fila-badge.dup { background: #FEF3C7; color: #92400E; }
.imp-fila-badge.err { background: var(--urgent-soft); color: var(--urgent); }
.imp-fila-info { flex: 1; min-width: 0; }
.imp-fila-nombre { font-size: 14px; font-weight: 600; color: var(--ink); }
.imp-fila-motivo { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.imp-fila-num { font-size: 11px; color: var(--ink-soft); }

.imp-ok-nota {
  font-size: 13px; color: #166534; background: #DCFCE7;
  border-radius: 10px; padding: 10px 13px; margin-top: 10px; text-align: center; font-weight: 600;
}
.imp-exito {
  text-align: center; padding: 30px 18px;
}
.imp-exito .imp-ico {
  width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 16px;
  background: #DCFCE7; color: #166534;
  display: flex; align-items: center; justify-content: center;
}
.imp-exito .imp-ico .i { width: 38px; height: 38px; }
.imp-exito h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.imp-exito p { font-size: 14px; color: var(--ink-soft); margin: 0 auto; max-width: 320px; line-height: 1.5; }

/* Sección plegable de filas válidas en el importador */
.imp-validas { margin-top: 12px; }
.imp-validas summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: #166534;
  background: #DCFCE7; border-radius: 10px; padding: 10px 13px; list-style: none;
}
.imp-validas summary::-webkit-details-marker { display: none; }
.imp-validas summary::before { content: "▸ "; }
.imp-validas[open] summary::before { content: "▾ "; }

/* Botones de editar ficha (pieza 3) */
.d-editar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 12px; font-size: 14px; font-weight: 700;
}
.d-editar .i { width: 17px; height: 17px; }
.btn-editar-ficha {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 12px;
  background: var(--brand); color: #fff;
  border-radius: 12px; font-size: 14px; font-weight: 700;
}
.btn-editar-ficha .i { width: 17px; height: 17px; }

/* ============================================================
   MVP 3 — Reclamo de ficha
   ============================================================ */
.d-reclamar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 12px;
  background: #EEF2FF; color: #3730A3;
  border-radius: 12px; font-size: 14px; font-weight: 700;
}
.d-reclamar .i { width: 17px; height: 17px; }
.rec-intro { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.rec-nota { font-size: 12px; color: #92400E; background: #FEF3C7; border-radius: 8px; padding: 8px 11px; margin: 2px 0 4px; }

/* Sección de solicitudes en Mi negocio */
.neg-seccion-tit { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 10px; }
.rec-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 9px; }
.rec-card-top { display: flex; align-items: center; gap: 9px; }
.rec-card-nombre { font-size: 14.5px; font-weight: 600; }
.rec-card-info { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.rec-card-nota { font-size: 12.5px; color: var(--ink); background: var(--bg-warm); border-radius: 8px; padding: 7px 10px; margin-top: 8px; }
.rec-badge { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.rec-badge.pend { background: #FEF3C7; color: #92400E; }
.rec-badge.rech { background: var(--urgent-soft); color: var(--urgent); }

/* Cola de reclamos del admin */
.rec-admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.rec-admin-nombre { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.rec-admin-fila { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.rec-admin-fila b { color: var(--ink-soft); font-weight: 600; }
.rec-cruce { display: block; font-size: 12.5px; font-weight: 600; margin: 8px 0; padding: 8px 11px; border-radius: 8px; }
.rec-cruce.ok { background: #DCFCE7; color: #166534; }
.rec-cruce.mal { background: var(--urgent-soft); color: var(--urgent); }
.rec-cruce.neutro { background: var(--bg-warm); color: var(--ink-soft); }
.rec-admin-msg { font-size: 13px; color: var(--ink); font-style: italic; background: var(--bg-warm); border-radius: 8px; padding: 9px 12px; margin: 8px 0; }
.rec-admin-acciones { display: flex; gap: 9px; margin-top: 12px; }
.rec-admin-acciones button { flex: 1; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.btn-aprobar { background: var(--brand); color: #fff; }
.btn-rechazar { background: #fff; color: var(--urgent); border: 1.5px solid var(--urgent); }

/* ============================================================
   Botón "Mi ubicación" + punto azul del usuario
   ============================================================ */
.fab-ubicacion {
  position: absolute; right: 16px; bottom: 74px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-dark);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.fab-ubicacion .i { width: 22px; height: 22px; }
.fab-ubicacion:active { transform: scale(0.94); }
/* Mientras busca la ubicación, el ícono gira */
.fab-ubicacion.buscando .i { animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Punto azul "estás aquí" en el mapa */
.user-loc-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #1A73E8; border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.35);
}

/* Dos botones: Tomar foto / Adjuntar archivo */
.adjuntar-botones { display: flex; gap: 8px; }
.adjuntar-botones .btn-adjuntar { flex: 1; margin: 0; }
@media (max-width: 360px) {
  .adjuntar-botones { flex-direction: column; }
}

/* ============================================================
   Filtros rápidos (Urgencias 24h / A domicilio / Exóticos)
   ============================================================ */
.filtros-rapidos {
  display: flex; gap: 8px; margin-top: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.filtros-rapidos::-webkit-scrollbar { display: none; }
.filtro-rapido {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all 0.15s;
}
.filtro-rapido .i { width: 15px; height: 15px; }
.filtro-rapido:active { transform: scale(0.96); }
/* Estado activo (encendido) */
.filtro-rapido.activo {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.filtro-rapido.activo .i { color: #fff; }

/* ============================================================
   Recuperación de contraseña
   ============================================================ */
.link-olvido {
  display: block; margin: 12px auto 0; padding: 4px;
  background: none; color: var(--brand-dark);
  font-size: 13px; font-weight: 600; text-decoration: underline;
}
.recup-ok {
  font-size: 13.5px; color: #166534; background: #DCFCE7;
  border-radius: 10px; padding: 12px 14px; line-height: 1.5;
}
.recup-dev {
  font-size: 13px; color: var(--ink); background: #FEF3C7;
  border-radius: 10px; padding: 12px 14px; margin-top: 10px; line-height: 1.6;
}
.recup-dev a { color: var(--brand-dark); font-weight: 700; }

/* ============================================================
   Eliminar cuenta (zona de peligro)
   ============================================================ */
.cuenta-zona {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--line); text-align: center;
}
.link-eliminar-cuenta {
  background: none; color: #B91C1C;
  font-size: 13px; font-weight: 600; text-decoration: underline;
  padding: 6px 10px;
}
.del-title { color: #B91C1C; }
.del-aviso {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px;
  padding: 13px 15px; margin-bottom: 16px;
}
.del-aviso p { font-size: 13.5px; color: #7F1D1D; line-height: 1.5; margin: 0 0 8px; }
.del-aviso p:last-child { margin-bottom: 0; }
.btn-peligro {
  width: 100%; padding: 13px; border-radius: 12px;
  background: #DC2626; color: #fff; font-weight: 700; font-size: 15px;
  transition: background 0.15s;
}
.btn-peligro:hover { background: #B91C1C; }
.btn-peligro:active { transform: scale(0.99); }
.btn-cancelar {
  width: 100%; padding: 11px; margin-top: 8px; border-radius: 12px;
  background: none; color: var(--ink-soft); font-weight: 600; font-size: 14px;
}

/* ============================================================
   Enlaces a la política de privacidad
   ============================================================ */
.check-politica {
  font-size: 12.5px; color: var(--ink-soft);
  margin: 4px 0 0 28px;
}
.check-politica a { color: var(--brand-dark); font-weight: 600; }
.link-politica-cuenta {
  display: block; margin-bottom: 12px;
  color: var(--brand-dark); font-size: 13px; font-weight: 600;
  text-decoration: underline;
}

/* Botón de compartir comercio (verde WhatsApp suave) */
.act.compartir { color: #128C7E; }
.act.compartir .i { color: #128C7E; }

/* Filas ignoradas del importador (gris neutro) */
.imp-fila-badge.ign { background: #E5E7EB; color: #4B5563; }
.imp-stat.ign .n { color: #6B7280; }

/* ---------- Confianza clickeable + ventanita de información ---------- */
.score-info { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.q-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 3px;
  font-size: 10px; font-weight: 800; color: #fff;
  background: var(--brand); border-radius: 50%;
}
.info-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(4, 33, 41, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.info-card {
  background: #fff; border-radius: 16px; max-width: 380px; width: 100%;
  padding: 22px; box-shadow: var(--shadow); animation: info-aparece 0.15s ease;
}
@keyframes info-aparece { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.info-title { margin: 0 0 8px; color: var(--brand-dark); font-size: 18px; }
.info-body { color: var(--ink); font-size: 14px; line-height: 1.55; }
.info-body p { margin: 8px 0; }
.info-body ul { margin: 8px 0; padding-left: 20px; }
.info-body li { margin: 3px 0; }
.info-close {
  margin-top: 16px; width: 100%; padding: 11px;
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.info-close:hover { background: var(--brand-dark); }

/* ---------- Errores de importación por fila ---------- */
.imp-errores {
  margin-top: 16px; background: #FFF4F3; border: 1px solid #FFD5D1;
  border-radius: 12px; padding: 14px 16px;
}
.imp-err-titulo { margin: 0 0 8px; font-weight: 800; color: var(--urgent); font-size: 14px; }
.imp-err-lista { margin: 0; padding-left: 18px; max-height: 260px; overflow-y: auto; }
.imp-err-lista li { margin: 8px 0; font-size: 13.5px; color: var(--ink); }
.imp-motivo { color: var(--urgent); font-size: 12.5px; }
.imp-err-ayuda { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Botón de moderación: eliminar reseña (solo admin) ---------- */
.review-del {
  margin-left: auto; background: transparent; border: 1px solid var(--urgent);
  color: var(--urgent); font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 8px; cursor: pointer;
}
.review-del:hover { background: var(--urgent); color: #fff; }

/* ---------- Pregunta rápida de tipo de mascota en la urgencia ---------- */
.urg-tipo-card {
  background: #fff; border-radius: 18px; max-width: 340px; width: 100%;
  padding: 22px; box-shadow: var(--shadow); text-align: center;
  animation: info-aparece 0.15s ease;
}
.urg-tipo-titulo { margin: 0 0 4px; color: var(--urgent); font-size: 19px; font-weight: 800; }
.urg-tipo-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; }
.urg-tipo-btn {
  display: block; width: 100%; margin: 8px 0; padding: 16px;
  border: 2px solid var(--brand); border-radius: 14px; background: #fff;
  color: var(--brand-dark); font-size: 16px; font-weight: 700; cursor: pointer;
  line-height: 1.3; transition: background 0.12s;
}
.urg-tipo-btn span { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.urg-tipo-btn:hover { background: var(--brand-soft); }
.urg-tipo-btn.exo { border-color: var(--accent-dark); color: var(--accent-dark); }
.urg-tipo-btn.exo:hover { background: #F3FBD6; }
.urg-tipo-cancelar {
  margin-top: 10px; background: transparent; border: none;
  color: var(--ink-soft); font-size: 13px; cursor: pointer; text-decoration: underline;
}

/* ============================================================
   COMUNIDAD
   ============================================================ */
.comunidad-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent);
  color: var(--brand-dark); border: none; border-radius: 12px; padding: 8px 14px;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.comunidad-btn .i { width: 18px; height: 18px; }
.comunidad-modal {
  max-width: 560px; width: 94%; max-height: 88vh; overflow-y: auto;
  padding: 22px; border-radius: 18px;
}
.com-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.com-head h2 { margin: 0; color: var(--brand-dark); font-size: 22px; }
.com-sub { color: var(--ink-soft); font-size: 13px; margin: 6px 0 14px; }
.com-nuevo { padding: 9px 14px; font-size: 14px; }
.com-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.com-chip { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.com-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.com-bandeja-link { background: none; border: none; color: var(--brand-dark); font-weight: 700;
  font-size: 13px; cursor: pointer; margin-bottom: 12px; padding: 0; text-decoration: underline; }
.com-lista { display: flex; flex-direction: column; gap: 10px; }
.com-card { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; cursor: pointer;
  transition: box-shadow .12s; background: #fff; }
.com-card:hover { box-shadow: var(--shadow); }
.com-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.com-badge { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.com-badge.perdida { background: #FFE5E3; color: #C62828; }
.com-badge.adopcion { background: #E7F6E7; color: #2E7D32; }
.com-badge.encontrada { background: #E3F0FF; color: #1565C0; }
.com-especie { font-size: 12px; color: var(--ink-soft); text-transform: capitalize; }
.com-card-titulo { font-weight: 700; font-size: 15px; color: var(--ink); }
.com-card-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.com-vacio, .com-cargando { text-align: center; color: var(--ink-soft); padding: 30px 0; font-size: 14px; }
.com-reglas { background: #FFF4E5; border: 1px solid #FFE0B2; border-radius: 10px; padding: 10px 13px;
  font-size: 12.5px; color: #8a5a00; margin: 8px 0 14px; }
.com-form { display: flex; flex-direction: column; }
.com-form label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 10px 0 3px; }
.com-form input, .com-form select, .com-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; background: #fff; }
.com-form-btns { display: flex; gap: 10px; margin-top: 16px; }
.com-form-btns button { flex: 1; }
.com-error { color: var(--urgent); font-size: 13px; margin-top: 8px; }
.com-volver { background: none; border: none; color: var(--brand-dark); font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 0; margin-bottom: 10px; }
.com-det-titulo { margin: 8px 0 4px; color: var(--brand-dark); font-size: 20px; }
.com-det-meta { font-size: 13px; color: var(--ink-soft); text-transform: capitalize; margin-bottom: 12px; }
.com-det-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.com-det-autor { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0; }
.com-contacto { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.com-aviso { background: var(--brand-soft); border-radius: 10px; padding: 10px 13px; font-size: 12.5px; color: var(--brand-dark); }
.com-contacto textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.com-denunciar { background: none; border: none; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.com-del { background: none; border: 1px solid var(--urgent); color: var(--urgent); border-radius: 10px;
  padding: 9px; font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 8px; }
.com-msgs { display: flex; flex-direction: column; gap: 10px; }
.com-msg { border-radius: 12px; padding: 10px 13px; font-size: 14px; }
.com-msg.mio { background: var(--brand-soft); }
.com-msg.recibido { background: var(--bg-warm); border: 1px solid var(--line); }
.com-msg-cab { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.com-msg-txt { color: var(--ink); }

/* Aviso de responsabilidad en Comunidad */
.com-responsabilidad {
  background: var(--brand-soft); border: 1px solid var(--brand);
  border-radius: 10px; padding: 10px 13px; font-size: 12px;
  color: var(--brand-dark); margin: 0 0 14px; line-height: 1.5;
}

/* Escribir reseña */
.review-vacio { color: var(--ink-soft); font-size: 13.5px; padding: 8px 0; }
.btn-resena { display: block; width: 100%; margin-top: 12px; padding: 11px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand);
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-resena:hover { background: var(--brand); color: #fff; }
.resena-form { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.resena-estrellas { font-size: 30px; letter-spacing: 4px; margin-bottom: 8px; text-align: center; }
.estrella-sel { cursor: pointer; color: #F5B301; user-select: none; }
.resena-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.resena-btns { display: flex; gap: 10px; margin-top: 10px; }
.resena-btns button { flex: 1; }

/* Credencial QR de mascota */
.qr-caja { background: var(--bg-warm); border-radius: 12px; padding: 14px; margin-top: 8px; }
.qr-ayuda { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.5; }
.qr-switch { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.qr-switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.qr-render { margin-top: 12px; display: flex; flex-direction: column; align-items: center; }
.qr-img { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qr-off { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 14px; }
.qr-acciones { text-align: center; margin-top: 10px; width: 100%; }
.qr-acciones button { padding: 9px 16px; }
.qr-link { font-size: 10.5px; color: var(--ink-soft); word-break: break-all; margin-top: 8px; }

/* Respuesta del comercio a una reseña */
.review-respuesta { background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 8px; padding: 8px 11px; margin-top: 8px; font-size: 13px; color: var(--brand-dark); line-height: 1.5; }

/* Vacunas y recordatorios */
.pd-section-accion { display: flex; align-items: center; justify-content: space-between; }
.pd-add { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand);
  border-radius: 8px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pd-add:hover { background: var(--brand); color: #fff; }
.salud-lista { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.salud-item { display: flex; align-items: center; gap: 8px; background: var(--bg-warm);
  border-radius: 10px; padding: 10px 12px; }
.salud-item.hecho { opacity: .6; }
.salud-item-cuerpo { flex: 1; min-width: 0; }
.salud-item-tit { font-size: 14px; font-weight: 700; color: var(--ink); }
.salud-item-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.salud-check { background: var(--accent); color: var(--brand-dark); border: none; border-radius: 8px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.salud-del { background: none; border: none; color: var(--ink-soft); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.salud-del:hover { color: var(--urgent); }
.salud-vacio, .salud-cargando { font-size: 13px; color: var(--ink-soft); padding: 6px 2px; }
.salud-form { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.salud-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.salud-form input, .salud-form select { border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 14px; font-family: inherit; }
.salud-form-btns { display: flex; gap: 8px; margin-top: 4px; }
.salud-form-btns button { flex: 1; }

/* Botón eliminar (negocio / mascota) */
.btn-eliminar { display: block; width: 100%; margin-top: 14px; padding: 11px;
  background: #fff; color: var(--urgent); border: 1px solid var(--urgent);
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-eliminar:hover { background: var(--urgent); color: #fff; }

/* Exportar respaldo (admin) */
.exp-intro { font-size: 14px; color: #5B6664; margin-bottom: 14px; }
.exp-lista { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.exp-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--borde, #D9E1E3); border-radius: 10px; cursor: pointer; font-size: 14px; }
.exp-item input { width: 18px; height: 18px; accent-color: var(--brand, #043B4A); }
.exp-sensible { font-size: 11px; color: var(--urgent, #FF3B30); border: 1px solid currentColor;
  border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.exp-aviso { font-size: 12px; color: #8A6D00; background: #FFF9E6;
  border: 1px solid #F0D98A; border-radius: 8px; padding: 10px; margin-bottom: 12px; }
