/* ============================================================
   VETZOO — PORTAL DEL CLIENTE
   Sistema de diseño propio, aislado del panel administrativo.

   Referencias: Apple Health, Wallet, y los neo-bancos (Revolut,
   N26). Lo que define ese lenguaje visual:
     - Jerarquía tipográfica agresiva (títulos extrabold enormes,
       cuerpo regular con mucho aire).
     - Sombras difusas y grandes, nunca duras.
     - Radios generosos (20-28px) que suavizan todo.
     - Color denso solo en las zonas "héroe"; el resto respira.
     - Nada de bordes de 1px grises por todas partes.

   TODO aquí vive bajo #vz-portal: cero colisión con el admin.
   ============================================================ */

#vz-portal, #vz-auth {
  /* ---- Tokens del portal ---- */
  --vz-green: #0E5349;
  --vz-green-600: #0A423A;
  --vz-green-400: #17756A;
  --vz-mint: #E6F2EF;
  --vz-amber: #D5853A;
  --vz-amber-soft: #FDF2E6;

  --vz-bg: #F7F8F8;
  --vz-surface: #FFFFFF;
  --vz-surface-2: #F1F3F3;

  --vz-ink: #101715;
  --vz-ink-2: #5C6B67;
  --vz-ink-3: #98A5A1;

  --vz-blue: #3A6FC4;
  --vz-blue-soft: #EBF1FA;
  --vz-red: #C4553A;
  --vz-red-soft: #FBEDE9;
  --vz-ok: #2E7D5B;
  --vz-ok-soft: #E7F3ED;

  /* Sombras difusas: la clave del look premium */
  --vz-sh-sm: 0 2px 8px rgba(16, 23, 21, .04);
  --vz-sh: 0 10px 30px rgba(16, 23, 21, .08);
  --vz-sh-lg: 0 20px 50px -12px rgba(16, 23, 21, .16);
  --vz-sh-green: 0 14px 34px -10px rgba(14, 83, 73, .45);

  --vz-r-sm: 14px;
  --vz-r: 20px;
  --vz-r-lg: 26px;
  --vz-r-xl: 32px;

  --vz-font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --vz-display: 'Bricolage Grotesque', var(--vz-font);
}

[data-theme="dark"] #vz-portal,
[data-theme="dark"] #vz-auth {
  --vz-bg: #0C1211;
  --vz-surface: #161E1C;
  --vz-surface-2: #1E2826;
  --vz-mint: #14332E;
  --vz-amber-soft: #2E2418;
  --vz-blue-soft: #1A2434;
  --vz-red-soft: #2E1D18;
  --vz-ok-soft: #14301F;

  --vz-ink: #ECF2F0;
  --vz-ink-2: #94A39E;
  --vz-ink-3: #6A7975;

  --vz-sh-sm: 0 2px 8px rgba(0,0,0,.3);
  --vz-sh: 0 10px 30px rgba(0,0,0,.4);
  --vz-sh-lg: 0 20px 50px -12px rgba(0,0,0,.6);
}

/* ============================================================
   AUTENTICACIÓN (login + creación de contraseña)
   ============================================================ */
#vz-auth {
  position: fixed; inset: 0; z-index: 150;
  background: var(--vz-bg);
  font-family: var(--vz-font);
  color: var(--vz-ink);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#vz-auth * { box-sizing: border-box; }

/* Cabecera verde curva: da identidad sin ocupar toda la pantalla */
.vz-auth-top {
  position: relative; flex: none;
  padding: 56px 26px 46px;
  background: linear-gradient(165deg, #17756A 0%, #0E5349 55%, #08322C 100%);
  color: #fff;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
}
.vz-auth-top::before {
  content: ''; position: absolute; right: -60px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(213, 133, 58, .16);
}
.vz-auth-top::after {
  content: ''; position: absolute; left: -50px; bottom: -80px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.vz-auth-mark {
  position: relative; width: 58px; height: 58px; border-radius: 19px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.vz-auth-title {
  position: relative;
  font-family: var(--vz-display);
  font-weight: 800; font-size: 30px; line-height: 1.12;
  letter-spacing: -.03em;
}
.vz-auth-sub {
  position: relative;
  margin-top: 10px; font-size: 15px; line-height: 1.55;
  color: rgba(255,255,255,.72); max-width: 300px;
}

.vz-auth-body { flex: 1; padding: 30px 26px 40px; }

/* Campos: grandes, con etiqueta flotante conceptual */
.vz-field { margin-bottom: 18px; }
.vz-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--vz-ink-2); margin-bottom: 9px;
  letter-spacing: .01em;
}
.vz-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: var(--vz-surface);
  border: 1.5px solid transparent;
  border-radius: var(--vz-r);
  box-shadow: var(--vz-sh-sm);
  transition: border-color .22s ease, box-shadow .22s ease, transform .12s ease;
}
.vz-input-wrap:focus-within {
  border-color: var(--vz-green);
  box-shadow: 0 0 0 4px rgba(14, 83, 73, .09), var(--vz-sh-sm);
}
.vz-input-wrap svg { flex: none; margin-left: 17px; color: var(--vz-ink-3); }
.vz-input-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 17px 17px 17px 13px;
  font-size: 16px;   /* 16px: menos hace que iOS haga zoom al enfocar */
  font-family: inherit; color: var(--vz-ink);
  min-width: 0;
}
.vz-input-wrap input::placeholder { color: var(--vz-ink-3); }

/* Campo de PIN: monoespaciado, letras separadas, mayúsculas */
.vz-input-wrap.pin input {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 22px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase;
  text-align: center; padding-left: 17px;
}
.vz-input-wrap.pin { justify-content: center; }
.vz-input-wrap.pin svg { display: none; }

/* Botón principal */
.vz-btn {
  width: 100%; border: none; cursor: pointer;
  padding: 18px; border-radius: var(--vz-r);
  background: var(--vz-green); color: #fff;
  font-family: var(--vz-display);
  font-weight: 700; font-size: 16.5px; letter-spacing: -.01em;
  box-shadow: var(--vz-sh-green);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.vz-btn:hover { background: var(--vz-green-600); }
.vz-btn:active { transform: scale(.975); box-shadow: 0 6px 18px -8px rgba(14,83,73,.5); }
.vz-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.vz-btn.ghost {
  background: transparent; color: var(--vz-ink-2);
  box-shadow: none; font-weight: 600; font-size: 14.5px;
  padding: 14px; margin-top: 6px;
}
.vz-btn.ghost:hover { background: var(--vz-surface-2); }

/* Spinner del botón */
.vz-spin {
  width: 17px; height: 17px; flex: none;
  border: 2.4px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: vzSpin .65s linear infinite;
}
@keyframes vzSpin { to { transform: rotate(360deg); } }

/* Mensaje de error */
.vz-error {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--vz-red-soft); color: var(--vz-red);
  border-radius: var(--vz-r-sm); padding: 14px 16px;
  font-size: 14px; line-height: 1.5; margin-bottom: 18px;
  animation: vzShake .4s cubic-bezier(.36,.07,.19,.97);
}
.vz-error svg { flex: none; margin-top: 1px; }
@keyframes vzShake {
  0%,100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Nota informativa */
.vz-note {
  background: var(--vz-mint);
  border-radius: var(--vz-r); padding: 16px 18px;
  margin-top: 22px;
  font-size: 13.5px; line-height: 1.65; color: var(--vz-green);
  display: flex; gap: 12px; align-items: flex-start;
}
[data-theme="dark"] .vz-note { color: #8FD0C1; }
.vz-note svg { flex: none; margin-top: 2px; }
.vz-note code {
  font-family: ui-monospace, Menlo, monospace;
  background: rgba(255,255,255,.75); padding: 2px 7px;
  border-radius: 6px; font-size: 12.5px; font-weight: 700;
}
[data-theme="dark"] .vz-note code { background: rgba(0,0,0,.28); }

/* Requisitos de contraseña en vivo */
.vz-reqs { margin-top: 4px; display: flex; flex-direction: column; gap: 7px; }
.vz-req {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--vz-ink-3);
  transition: color .25s ease;
}
.vz-req .tick {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 1.8px solid var(--vz-ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.vz-req .tick svg { opacity: 0; transform: scale(.5); transition: all .25s cubic-bezier(.2,.8,.2,1); }
.vz-req.done { color: var(--vz-ok); }
.vz-req.done .tick {
  background: var(--vz-ok); border-color: var(--vz-ok);
}
.vz-req.done .tick svg { opacity: 1; transform: scale(1); color: #fff; }

.vz-switch {
  text-align: center; margin-top: 28px;
  font-size: 13.5px; color: var(--vz-ink-3);
}
.vz-switch button {
  border: none; background: none; cursor: pointer;
  color: var(--vz-green); font-weight: 700; font-size: 13.5px;
  font-family: inherit; padding: 4px;
}
[data-theme="dark"] .vz-switch button { color: #7FC8B9; }

/* ============================================================
   APP DEL PORTAL
   ============================================================ */
#vz-portal {
  position: fixed; inset: 0; z-index: 145;
  background: var(--vz-bg);
  font-family: var(--vz-font);
  color: var(--vz-ink);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#vz-portal * { box-sizing: border-box; }

.vz-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  /* Espacio para que la barra de cristal no tape el último elemento */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.vz-screen { display: none; }
.vz-screen.on {
  display: block;
  animation: vzIn .38s cubic-bezier(.16,.84,.34,1) both;
}
@keyframes vzIn {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to   { opacity: 1; transform: none; }
}

/* ---------- HERO HEADER (verde, curvo) ---------- */
.vz-hero {
  position: relative;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 34px;
  background: linear-gradient(160deg, #17756A 0%, #0E5349 50%, #093B34 100%);
  color: #fff;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  box-shadow: var(--vz-sh-green);
}
.vz-hero::before {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(213,133,58,.15);
}
.vz-hero::after {
  content: ''; position: absolute; left: -40px; bottom: -70px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.vz-hero-bar {
  position: relative;
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.vz-hero-clinic {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.62);
}
.vz-hero-btn {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .12s ease;
}
.vz-hero-btn:hover { background: rgba(255,255,255,.18); }
.vz-hero-btn:active { transform: scale(.92); }

.vz-hello {
  position: relative;
  font-family: var(--vz-display);
  font-weight: 800; font-size: 32px; line-height: 1.1;
  letter-spacing: -.035em;
}
.vz-hello .light { color: rgba(255,255,255,.55); font-weight: 500; }

/* Resumen: "Tienes 1 cita próxima" */
.vz-summary {
  position: relative;
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border-radius: var(--vz-r);
  padding: 14px 16px;
}
.vz-summary-ico {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.vz-summary-txt { flex: 1; min-width: 0; }
.vz-summary-main {
  font-size: 14.5px; font-weight: 700; line-height: 1.3;
}
.vz-summary-sub {
  font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 2px;
}
.vz-summary-go {
  flex: none; color: rgba(255,255,255,.6);
}

/* ---------- CONTENIDO ---------- */
.vz-content { padding: 26px 22px 20px; }

.vz-sec {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.vz-sec h2 {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 20px; letter-spacing: -.025em;
  margin: 0;
}
.vz-sec .n {
  font-size: 13px; font-weight: 600; color: var(--vz-ink-3);
}

/* ---------- TARJETA DE MASCOTA (estilo Wallet) ---------- */
.vz-cards { display: flex; flex-direction: column; gap: 16px; }

.vz-pet {
  position: relative;
  background: var(--vz-surface);
  border-radius: var(--vz-r-lg);
  padding: 20px;
  box-shadow: var(--vz-sh);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
  animation: vzUp2 .5s cubic-bezier(.16,.84,.34,1) both;
}
@keyframes vzUp2 {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.vz-pet:active { transform: scale(.982); }
.vz-pet:hover { box-shadow: var(--vz-sh-lg); }

/* Gradiente sutil de fondo, distinto por especie */
.vz-pet::before {
  content: ''; position: absolute; inset: 0;
  background: var(--pg, linear-gradient(135deg, rgba(14,83,73,.05), rgba(14,83,73,0) 62%));
  pointer-events: none;
}
.vz-pet.sp-domestico { --pg: linear-gradient(135deg, rgba(14,83,73,.07), rgba(14,83,73,0) 60%); --pc: var(--vz-green); --pb: var(--vz-mint); }
.vz-pet.sp-exotico   { --pg: linear-gradient(135deg, rgba(213,133,58,.09), rgba(213,133,58,0) 60%); --pc: var(--vz-amber); --pb: var(--vz-amber-soft); }
.vz-pet.sp-salvaje   { --pg: linear-gradient(135deg, rgba(196,85,58,.08), rgba(196,85,58,0) 60%); --pc: var(--vz-red); --pb: var(--vz-red-soft); }
.vz-pet.sp-otro      { --pg: linear-gradient(135deg, rgba(58,111,196,.07), rgba(58,111,196,0) 60%); --pc: var(--vz-blue); --pb: var(--vz-blue-soft); }

.vz-pet-top {
  position: relative;
  display: flex; align-items: center; gap: 15px; margin-bottom: 18px;
}

/* El avatar "flota": sombra proyectada del color de la especie */
.vz-pet-av {
  width: 58px; height: 58px; flex: none; border-radius: 19px;
  background: var(--pb); color: var(--pc);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--pc) 34%, transparent);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.vz-pet:hover .vz-pet-av { transform: translateY(-2px) scale(1.03); }

.vz-pet-name {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 21px; letter-spacing: -.025em;
  line-height: 1.15;
}
.vz-pet-species {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 5px;
  font-size: 12px; font-weight: 700;
  color: var(--pc); background: var(--pb);
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .01em;
}
.vz-pet-go {
  margin-left: auto; flex: none;
  width: 32px; height: 32px; border-radius: 11px;
  background: var(--vz-surface-2); color: var(--vz-ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.vz-pet:hover .vz-pet-go {
  background: var(--pc); color: #fff; transform: translateX(2px);
}

/* Cuadrícula de datos clave */
.vz-pet-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--vz-surface-2);
  border-radius: var(--vz-r-sm); overflow: hidden;
}
.vz-pet-cell {
  background: var(--vz-surface);
  padding: 12px 8px; text-align: center;
}
.vz-pet-cell .k {
  font-size: 10px; font-weight: 700; color: var(--vz-ink-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 5px;
}
.vz-pet-cell .v {
  font-family: var(--vz-display);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  color: var(--vz-ink);
}
.vz-pet-cell .v small {
  font-size: 11px; font-weight: 500; color: var(--vz-ink-3);
}

/* ---------- CARNET (detalle de la mascota) ---------- */
.vz-back {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; background: none; cursor: pointer;
  color: var(--vz-ink-2); font-family: inherit;
  font-size: 14.5px; font-weight: 600;
  padding: 8px 12px 8px 0;
  transition: color .16s ease, transform .16s ease;
}
.vz-back:hover { color: var(--vz-ink); }
.vz-back:active { transform: translateX(-2px); }

/* Tarjeta grande del carnet */
.vz-carnet {
  position: relative;
  background: linear-gradient(155deg, #17756A 0%, #0E5349 52%, #093B34 100%);
  border-radius: var(--vz-r-xl);
  padding: 26px 24px;
  color: #fff;
  box-shadow: var(--vz-sh-green);
  overflow: hidden;
  margin-bottom: 22px;
  animation: vzUp2 .5s cubic-bezier(.16,.84,.34,1) both;
}
.vz-carnet::before {
  content: ''; position: absolute; right: -50px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(213,133,58,.17);
}
.vz-carnet::after {
  content: ''; position: absolute; left: -30px; bottom: -70px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.vz-carnet-head {
  position: relative;
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.vz-carnet-av {
  width: 64px; height: 64px; flex: none; border-radius: 21px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
}
.vz-carnet-name {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 26px; letter-spacing: -.03em;
  line-height: 1.1;
}
.vz-carnet-breed {
  font-size: 13.5px; color: rgba(255,255,255,.66); margin-top: 5px;
}
.vz-carnet-chip {
  margin-left: auto; flex: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  padding: 5px 9px; border-radius: 8px;
}

.vz-carnet-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px;
}
.vz-carnet-cell {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border-radius: var(--vz-r-sm);
  padding: 13px 8px; text-align: center;
}
.vz-carnet-cell .k {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.vz-carnet-cell .v {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.vz-carnet-cell .v small { font-size: 11px; font-weight: 500; opacity: .65; }

/* ---------- AVISOS ---------- */
.vz-alert {
  display: flex; gap: 13px; align-items: flex-start;
  border-radius: var(--vz-r); padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 14px; line-height: 1.55;
  box-shadow: var(--vz-sh-sm);
  animation: vzUp2 .45s cubic-bezier(.16,.84,.34,1) both;
}
.vz-alert.warn { background: var(--vz-amber-soft); color: #A0621F; }
.vz-alert.info { background: var(--vz-blue-soft); color: #2D5A9E; }
[data-theme="dark"] .vz-alert.warn { color: #E4A867; }
[data-theme="dark"] .vz-alert.info { color: #8AAEE4; }
.vz-alert-ico {
  width: 36px; height: 36px; flex: none; border-radius: 12px;
  background: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .vz-alert-ico { background: rgba(0,0,0,.22); }
.vz-alert b { font-weight: 700; }

/* ---------- LISTAS ---------- */
.vz-list { display: flex; flex-direction: column; gap: 12px; }

.vz-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--vz-surface);
  border-radius: var(--vz-r);
  padding: 15px 16px;
  box-shadow: var(--vz-sh-sm);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
  animation: vzUp2 .45s cubic-bezier(.16,.84,.34,1) both;
}
.vz-row.tap { cursor: pointer; }
.vz-row.tap:active { transform: scale(.985); }
.vz-row.tap:hover { box-shadow: var(--vz-sh); }

.vz-row-ico {
  width: 44px; height: 44px; flex: none; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
}
.vz-row-ico.green { background: var(--vz-mint); color: var(--vz-green); }
.vz-row-ico.amber { background: var(--vz-amber-soft); color: var(--vz-amber); }
.vz-row-ico.blue  { background: var(--vz-blue-soft); color: var(--vz-blue); }
[data-theme="dark"] .vz-row-ico.green { color: #7FC8B9; }

.vz-row-body { flex: 1; min-width: 0; }
.vz-row-title {
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vz-row-sub {
  font-size: 13px; color: var(--vz-ink-2); margin-top: 3px;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vz-row-meta {
  font-size: 12px; color: var(--vz-ink-3); margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* Botón de descarga (recetas) */
.vz-dl {
  width: 44px; height: 44px; flex: none; border-radius: 15px;
  border: none; background: var(--vz-green); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(14,83,73,.6);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), background .18s ease;
}
.vz-dl:active { transform: scale(.9); }
.vz-dl:hover { background: var(--vz-green-600); }

/* ---------- CITAS ---------- */
.vz-appt {
  position: relative;
  background: var(--vz-surface);
  border-radius: var(--vz-r-lg);
  padding: 18px;
  box-shadow: var(--vz-sh-sm);
  margin-bottom: 13px;
  display: flex; align-items: center; gap: 15px;
  overflow: hidden;
  animation: vzUp2 .45s cubic-bezier(.16,.84,.34,1) both;
  transition: box-shadow .2s ease;
}
.vz-appt:hover { box-shadow: var(--vz-sh); }
/* Barra de color a la izquierda, según estado */
.vz-appt::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--sc, var(--vz-green));
}
.vz-appt.st-pendiente  { --sc: var(--vz-amber); }
.vz-appt.st-confirmada { --sc: var(--vz-blue); }
.vz-appt.st-completada { --sc: var(--vz-ok); }
.vz-appt.st-cancelada  { --sc: var(--vz-red); }

.vz-appt-date {
  width: 58px; flex: none; text-align: center;
  background: var(--vz-surface-2);
  border-radius: var(--vz-r-sm);
  padding: 10px 4px;
}
.vz-appt-d {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 22px; line-height: 1;
  letter-spacing: -.03em;
}
.vz-appt-m {
  font-size: 10.5px; font-weight: 700; color: var(--vz-ink-3);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 4px;
}
.vz-appt-main { flex: 1; min-width: 0; }
.vz-appt-pet {
  font-family: var(--vz-display);
  font-weight: 700; font-size: 17px; letter-spacing: -.02em;
}
.vz-appt-when {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--vz-ink-2); margin-top: 4px;
}
.vz-appt-reason {
  font-size: 12.5px; color: var(--vz-ink-3); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vz-appt-tag {
  flex: none; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.tag-pendiente  { background: var(--vz-amber-soft); color: #A0621F; }
.tag-confirmada { background: var(--vz-blue-soft); color: #2D5A9E; }
.tag-completada { background: var(--vz-ok-soft); color: var(--vz-ok); }
.tag-cancelada  { background: var(--vz-red-soft); color: var(--vz-red); }
[data-theme="dark"] .tag-pendiente  { color: #E4A867; }
[data-theme="dark"] .tag-confirmada { color: #8AAEE4; }
[data-theme="dark"] .tag-completada { color: #6BC49A; }
[data-theme="dark"] .tag-cancelada  { color: #E09277; }

.vz-group {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vz-ink-3);
  margin: 24px 0 13px;
}
.vz-group:first-child { margin-top: 0; }

/* ---------- ESTADOS VACÍOS ---------- */
.vz-empty {
  text-align: center; padding: 52px 26px;
}
.vz-empty-ico {
  width: 84px; height: 84px; margin: 0 auto 20px;
  border-radius: 28px;
  background: var(--vz-surface);
  color: var(--vz-ink-3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--vz-sh);
}
.vz-empty h3 {
  font-family: var(--vz-display);
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.vz-empty p {
  font-size: 14.5px; color: var(--vz-ink-2); line-height: 1.6;
  max-width: 270px; margin: 0 auto;
}

/* ---------- SKELETONS ---------- */
@keyframes vzShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.vz-sk {
  background: linear-gradient(
    90deg,
    var(--vz-surface-2) 25%,
    color-mix(in srgb, var(--vz-surface-2) 55%, var(--vz-surface)) 50%,
    var(--vz-surface-2) 75%
  );
  background-size: 200% 100%;
  animation: vzShimmer 1.4s ease-in-out infinite;
  border-radius: var(--vz-r);
}
.vz-sk-pet    { height: 156px; border-radius: var(--vz-r-lg); margin-bottom: 16px; }
.vz-sk-carnet { height: 208px; border-radius: var(--vz-r-xl); margin-bottom: 22px; }
.vz-sk-row    { height: 76px; margin-bottom: 12px; }

/* ---------- BARRA INFERIOR (cristal) ---------- */
.vz-tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));

  /* Efecto cristal: el contenido se ve difuminado detrás */
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(16, 23, 21, .06);
}
[data-theme="dark"] .vz-tabs {
  background: rgba(22, 30, 28, .8);
  border-top-color: rgba(255,255,255,.06);
}

.vz-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 4px 6px;
  color: var(--vz-ink-3);
  font-family: var(--vz-font);
  font-size: 11px; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--vz-r-sm);
  transition: color .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.vz-tab svg {
  transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.vz-tab.on { color: var(--vz-green); font-weight: 700; }
[data-theme="dark"] .vz-tab.on { color: #7FC8B9; }
.vz-tab.on svg { transform: translateY(-2px) scale(1.1); }

/* Punto indicador bajo la pestaña activa */
.vz-tab .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: transparent;
  transition: background .25s ease, transform .3s cubic-bezier(.34,1.4,.64,1);
  transform: scale(0);
}
.vz-tab.on .dot {
  background: var(--vz-green);
  transform: scale(1);
}
[data-theme="dark"] .vz-tab.on .dot { background: #7FC8B9; }

/* ---------- FAB: SOLICITAR CITA ---------- */
.vz-fab {
  position: absolute;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  height: 54px; padding: 0 22px;
  border: none; border-radius: 27px;
  background: var(--vz-green); color: #fff;
  font-family: var(--vz-display);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 14px 32px -8px rgba(14, 83, 73, .55);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
  animation: vzFabIn .45s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes vzFabIn {
  from { opacity: 0; transform: scale(.7) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.vz-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(14,83,73,.65);
}
.vz-fab:active { transform: scale(.94); }

/* ---------- BOTTOM SHEET ---------- */
.vz-sheet-back {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(10, 18, 16, .5);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.vz-sheet-back.on { opacity: 1; pointer-events: auto; }

.vz-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 165;
  background: var(--vz-surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 50px rgba(0,0,0,.22);
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.32,.72,.28,1);
  max-height: 92vh;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--vz-font);
  color: var(--vz-ink);
}
.vz-sheet.on { transform: translateY(0); }

/* En escritorio, el sheet se limita al ancho del "teléfono" */
@media (min-width: 620px) {
  .vz-sheet {
    max-width: 440px; left: 50%; transform: translate(-50%, 100%);
    border-radius: 28px 28px 0 0;
  }
  .vz-sheet.on { transform: translate(-50%, 0); }
}

/* Asa para arrastrar (afordancia iOS) */
.vz-grab {
  width: 38px; height: 5px; border-radius: 3px;
  background: var(--vz-surface-2);
  margin: 12px auto 6px; flex: none;
}
.vz-sheet-head {
  padding: 8px 24px 18px; flex: none;
  display: flex; align-items: flex-start; gap: 12px;
}
.vz-sheet-head h3 {
  font-family: var(--vz-display);
  font-weight: 800; font-size: 22px; letter-spacing: -.03em;
  margin: 0;
}
.vz-sheet-head p {
  margin: 5px 0 0; font-size: 13.5px; color: var(--vz-ink-2); line-height: 1.5;
}
.vz-sheet-x {
  margin-left: auto; flex: none;
  width: 34px; height: 34px; border-radius: 12px;
  border: none; background: var(--vz-surface-2);
  color: var(--vz-ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s ease;
}
.vz-sheet-x:hover { background: var(--vz-surface-2); filter: brightness(.94); }

.vz-sheet-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 24px 8px;
}
.vz-sheet-foot {
  flex: none; padding: 16px 24px 22px;
  border-top: 1px solid var(--vz-surface-2);
  background: var(--vz-surface);
}

/* Selector de mascota dentro del sheet */
.vz-pick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.vz-pick-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--vz-surface-2);
  border: 2px solid transparent;
  border-radius: var(--vz-r);
  padding: 13px 15px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.vz-pick-item:active { transform: scale(.985); }
.vz-pick-item.on {
  background: var(--vz-mint);
  border-color: var(--vz-green);
}
.vz-pick-av {
  width: 42px; height: 42px; flex: none; border-radius: 14px;
  background: var(--vz-surface); color: var(--vz-ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.vz-pick-item.on .vz-pick-av {
  background: var(--vz-green); color: #fff;
}
.vz-pick-body { flex: 1; min-width: 0; }
.vz-pick-name { font-weight: 700; font-size: 15px; }
.vz-pick-sub { font-size: 12.5px; color: var(--vz-ink-3); margin-top: 2px; }
.vz-pick-check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--vz-ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.vz-pick-check svg { opacity: 0; transform: scale(.5); transition: all .2s ease; }
.vz-pick-item.on .vz-pick-check {
  background: var(--vz-green); border-color: var(--vz-green);
}
.vz-pick-item.on .vz-pick-check svg { opacity: 1; transform: scale(1); color: #fff; }

/* Chips de motivo (atajos frecuentes) */
.vz-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.vz-chip {
  border: 1.5px solid var(--vz-surface-2);
  background: var(--vz-surface);
  color: var(--vz-ink-2);
  padding: 9px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .18s cubic-bezier(.2,.8,.2,1);
}
.vz-chip:active { transform: scale(.95); }
.vz-chip.on {
  background: var(--vz-green); border-color: var(--vz-green); color: #fff;
}

/* Selector de tipo (clínica / domicilio) */
.vz-seg {
  display: flex; gap: 4px; padding: 4px;
  background: var(--vz-surface-2);
  border-radius: var(--vz-r-sm);
  margin-bottom: 22px;
}
.vz-seg button {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 11px 8px; border-radius: 11px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--vz-ink-2);
  transition: all .2s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vz-seg button.on {
  background: var(--vz-surface); color: var(--vz-green);
  font-weight: 700; box-shadow: var(--vz-sh-sm);
}
[data-theme="dark"] .vz-seg button.on { color: #7FC8B9; }

/* Campo de fecha del sheet */
.vz-date {
  width: 100%; padding: 16px 18px;
  border: 1.5px solid transparent;
  background: var(--vz-surface-2);
  border-radius: var(--vz-r);
  font-family: inherit; font-size: 16px; color: var(--vz-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  margin-bottom: 22px;
}
.vz-date:focus {
  outline: none; border-color: var(--vz-green);
  box-shadow: 0 0 0 4px rgba(14,83,73,.09);
}
.vz-ta {
  width: 100%; padding: 15px 18px;
  border: 1.5px solid transparent;
  background: var(--vz-surface-2);
  border-radius: var(--vz-r);
  font-family: inherit; font-size: 15px; color: var(--vz-ink);
  resize: none; min-height: 84px; line-height: 1.55;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.vz-ta:focus {
  outline: none; border-color: var(--vz-green);
  box-shadow: 0 0 0 4px rgba(14,83,73,.09);
}
.vz-ta::placeholder { color: var(--vz-ink-3); }

.vz-sheet-label {
  font-size: 13px; font-weight: 700; color: var(--vz-ink);
  margin-bottom: 11px; display: block;
  letter-spacing: -.005em;
}

/* ---------- TOAST DEL PORTAL ---------- */
.vz-toast-zone {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  pointer-events: none; padding: 0 16px;
}
.vz-toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--vz-surface);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  box-shadow: var(--vz-sh-lg);
  font-size: 14px; font-weight: 600; color: var(--vz-ink);
  max-width: 92%;
  animation: vzToastIn .42s cubic-bezier(.34,1.4,.64,1) both;
}
.vz-toast.out { animation: vzToastOut .28s ease forwards; }
@keyframes vzToastIn {
  from { opacity: 0; transform: translateY(-22px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes vzToastOut {
  to { opacity: 0; transform: translateY(-14px) scale(.94); }
}
.vz-toast-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.vz-toast.ok  .vz-toast-ico { background: var(--vz-ok-soft); color: var(--vz-ok); }
.vz-toast.err .vz-toast-ico { background: var(--vz-red-soft); color: var(--vz-red); }

/* ============================================================
   ESCRITORIO: el portal se centra como un teléfono.
   Se diseñó para el celular; forzarlo a ancho completo lo
   arruinaría. Así se ve exactamente igual que en la mano.
   ============================================================ */
@media (min-width: 620px) {
  #vz-portal, #vz-auth {
    max-width: 440px;
    left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 80px rgba(16, 23, 21, .12);
  }
  #vz-auth { border-radius: 0; }
}

/* ============================================================
   AUTENTICACIÓN AVANZADA — PORTAL
   ============================================================ */

/* Google */
.vz-oauth {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 16px; margin-bottom: 16px;
  border: 1.5px solid var(--vz-surface-2);
  background: var(--vz-surface);
  border-radius: var(--vz-r); cursor: pointer;
  font-family: var(--vz-font); font-weight: 600; font-size: 15px;
  color: var(--vz-ink);
  box-shadow: var(--vz-sh-sm);
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.vz-oauth:hover { box-shadow: var(--vz-sh); transform: translateY(-1px); }
.vz-oauth:active { transform: scale(.98); }
.vz-oauth svg { flex: none; }

.vz-or {
  display: flex; align-items: center; gap: 13px;
  margin: 18px 0; font-size: 12.5px; color: var(--vz-ink-3);
}
.vz-or::before, .vz-or::after {
  content: ''; flex: 1; height: 1px; background: var(--vz-surface-2);
}

/* Olvidé mi contraseña */
.vz-forgot {
  display: block; width: 100%; text-align: right;
  border: none; background: none; cursor: pointer;
  font-family: var(--vz-font); font-size: 13.5px; font-weight: 600;
  color: var(--vz-green); padding: 4px 0 0;
  margin-top: -8px; margin-bottom: 20px;
}
.vz-forgot:hover { text-decoration: underline; }
[data-theme="dark"] .vz-forgot { color: #7FC8B9; }

/* Éxito */
.vz-success {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--vz-ok-soft); color: var(--vz-ok);
  border-radius: var(--vz-r-sm); padding: 15px 17px;
  font-size: 14px; line-height: 1.55; margin-bottom: 18px;
  animation: vzIn .35s ease both;
}
.vz-success svg { flex: none; margin-top: 1px; }

/* Banner de correo sin verificar */
.vz-verify {
  display: flex; align-items: center; gap: 12px;
  background: var(--vz-amber-soft);
  border-radius: var(--vz-r); padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13.5px; color: #A0621F; line-height: 1.5;
  box-shadow: var(--vz-sh-sm);
}
[data-theme="dark"] .vz-verify { color: #E4A867; }
.vz-verify svg { flex: none; }
.vz-verify .m { flex: 1; min-width: 0; }
.vz-verify button {
  flex: none; border: none;
  background: var(--vz-amber); color: #fff;
  padding: 8px 14px; border-radius: 10px;
  font-family: var(--vz-font); font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: filter .16s ease;
}
.vz-verify button:hover { filter: brightness(1.08); }
.vz-verify button:disabled { opacity: .6; }

/* Logo de Vetzoo en el portal: centrado y con márgenes iguales */
.vz-auth-mark img,
#vz-mark img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  padding: 14%;              /* margen igual por los cuatro lados */
}
.vz-auth-mark {
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
}
