/* Security Pet · "Cerca de ti, siempre"
   Paleta tomada del diseño de la marca: azul, rojo, gris cálido, blanco y negro.
   Un solo archivo. Tarjetas blancas con borde negro, bloques de color planos, placa redonda como motivo. */
:root {
  --blue: #164e92;
  --blue-dark: #103c72;
  --blue-tint: #dce8f6;
  --red: #8e0e12;
  --red-tint: #f6dcdc;
  --bg: #e4dcd8;
  --bg-deep: #d6ccc6;
  --surface: #ffffff;
  --surface-2: #f2eeeb;
  --ink: #0b0b0b;
  --muted: #55504c;
  --accent: var(--blue);
  --accent-ink: #ffffff;
  --r: 22px;
  --gap: 12px;
  --margin: clamp(16px, 3.2vw, 40px);
  --maxw: 1080px;
  --bd: 2px solid var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5;
}
h1, h2, h3 { font-family: 'Syne', 'DM Sans', sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Botones: píldora con borde ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border: var(--bd); border-radius: 999px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--surface); color: var(--ink);
  transition: translate .18s ease, scale .15s ease, background-color .15s ease;
}
.btn:hover { translate: 0 -2px; }
.btn:active { scale: .97; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; translate: none; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 0.9375rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.125rem; }
.on-blue .btn-primary { background: #fff; color: var(--ink); }
.on-blue .btn-primary:hover { background: var(--bg); }

/* ---------- Campos ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--surface); color: var(--ink);
  border: var(--bd); border-radius: 16px; font: inherit;
}
input::placeholder, textarea::placeholder { color: #7a746f; }
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.grid-2 { display: grid; gap: 0 var(--gap); grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; border: 2px solid; font-weight: 500; }
.alert-err { background: var(--red-tint); color: var(--red); border-color: var(--red); }
.alert-ok { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 36px; flex: none; }
.brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

/* ---------- Placa (el motivo): disco blanco con borde negro y su perforación ---------- */
.tag {
  position: relative; border-radius: 50%; aspect-ratio: 1;
  background: #fff; color: var(--ink); border: 3px solid var(--ink);
}
.tag::before {
  content: ''; position: absolute; top: 5.5%; left: 50%; width: 5.5%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: var(--hole, var(--bg)); border: 2px solid var(--ink);
}

/* ---------- Barra superior ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(var(--margin), calc((100% - var(--maxw)) / 2)); background: #fff; border-bottom: 3px solid var(--ink); }
.navlinks { display: flex; gap: 4px; flex: 1; margin-left: 12px; }
.navlinks a { padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; transition: background-color .15s ease, translate .15s ease; }
.navlinks a:hover { background: var(--bg); translate: 0 -1px; }
.navlinks a[aria-current='page'] { background: var(--blue); color: #fff; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; border: var(--bd); }
.who-name { font-weight: 600; }
.wrap { width: min(100% - 2 * var(--margin), var(--maxw)); margin: 0 auto; padding: 28px 0 96px; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .navlinks { order: 3; flex: 1 0 100%; margin-left: 0; overflow-x: auto; }
  .who-name { display: none; }
}

/* ---------- Login ---------- */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); overflow: hidden; }
.auth-left { display: flex; flex-direction: column; background: var(--blue); color: #fff; border-right: 3px solid var(--ink); min-height: 100svh; }
.auth-left .top { padding: var(--margin); }
.auth-left .brand { color: #fff; }
.auth-left .brand-mark path, .auth-left .brand-mark circle { stroke: #fff; }
.auth-left .hero-copy { padding: 0 var(--margin); margin: auto 0; }
.auth h1 { font-size: clamp(3rem, 7vw, 7rem); margin-bottom: 14px; color: #fff; }
.auth .tagline { font-family: 'Syne', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); margin: 0 0 18px; letter-spacing: -0.02em; }
.auth .lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); max-width: 30ch; margin: 0; line-height: 1.35; }
.auth-left .demo { padding: 0 var(--margin) 22px; }
.demo h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; opacity: .9; }
.demo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.demo button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: #fff; color: var(--ink); border: var(--bd); border-radius: 999px; font: inherit; cursor: pointer; transition: translate .15s ease, background-color .15s ease; }
.demo button:hover { background: var(--bg); translate: 0 -2px; }
.demo .role { font-weight: 700; }
.paws { position: relative; height: 150px; background: var(--bg); border-top: 3px solid var(--ink); overflow: hidden; flex: none; }
.paws .credits { position: absolute; left: var(--margin); bottom: 10px; z-index: 1; color: var(--muted); font-size: 0.8125rem; margin: 0; max-width: 40ch; background: var(--bg); padding-right: 6px; }
.paws .credits a { color: var(--muted); }
.paw { position: absolute; fill: var(--red); width: 84px; height: 84px; }
.w1 { left: 4%; top: 6px; rotate: -14deg; width: 96px; height: 96px; } .w2 { left: 22%; top: 40px; rotate: 18deg; width: 70px; height: 70px; }
.w3 { left: 39%; top: -10px; rotate: -4deg; width: 110px; height: 110px; } .w4 { left: 60%; top: 34px; rotate: 24deg; width: 78px; height: 78px; }
.w5 { left: 76%; top: -6px; rotate: -20deg; width: 100px; height: 100px; } .w6 { left: 91%; top: 40px; rotate: 10deg; width: 66px; height: 66px; }
.auth-right { position: relative; display: grid; place-items: center; padding: var(--margin); }
.auth-tag { position: relative; width: min(100%, 640px, calc(100svh - 2 * var(--margin) - 40px)); }
.auth-tag > .tag { width: 100%; display: grid; place-items: center; }
.auth-tag > .tag > .inner { width: 66%; padding-top: 6%; }
.pets { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pet { position: absolute; border-radius: 50%; object-fit: cover; border: 10px solid var(--ring, var(--bg)); background: var(--surface-2); aspect-ratio: 1; height: auto; }
.p1 { width: 23%; left: -9%; top: 4%; object-position: 50% 38%; } .p2 { width: 21%; right: -3%; top: 14%; object-position: 18% 25%; }
.p3 { width: 26%; left: -11%; top: 64%; object-position: 50% 38%; } .p4 { width: 22%; right: -3%; top: 76%; object-position: 42% 22%; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); padding: 4px; border-radius: 999px; margin-bottom: 18px; border: var(--bd); }
.tabs button { border: 0; background: transparent; color: var(--ink); padding: 10px 8px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--blue); color: #fff; }
.auth .field { margin-bottom: 12px; }
.auth .field input { min-height: 46px; padding: 9px 14px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-left { min-height: 0; border-right: 0; border-bottom: 3px solid var(--ink); }
  .auth h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .auth-left .hero-copy { margin: 18px 0 26px; }
  .paws { display: none; }
  .auth-right { padding: 24px var(--margin) 40px; }
  .auth-tag { width: 100%; }
  .auth-tag .tag { aspect-ratio: auto; border-radius: 36px; padding: 64px 22px 28px; }
  .auth-tag .tag::before { top: 22px; width: 18px; }
  .pets { position: relative; display: flex; justify-content: center; padding-left: 14px; margin-bottom: -26px; }
  .pet { position: static; width: 76px; border-width: 6px; margin-left: -14px; }
  .pet:first-child { margin-left: 0; }
  .auth-tag > .tag > .inner { width: 100%; padding: 0; }
  .auth-tag > .tag { display: block; }
  .credits-m { display: block; }
}
.credits-m { display: none; color: var(--muted); font-size: 0.8125rem; margin: 14px 0 0; }
.credits-m a { color: var(--muted); }

/* ---------- Portada del cliente ---------- */
.dash-hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; border: 3px solid var(--ink); border-radius: 32px; padding: clamp(28px, 5vw, 64px); min-height: 420px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; --ring: var(--blue); --hole: var(--blue); }
.dash-hero .hello { font-size: 1.25rem; margin: 0 0 14px; font-weight: 600; opacity: .9; }
.dash-hero h1 { font-size: clamp(2.1rem, 1rem + 3.3vw, 4rem); margin-bottom: 22px; max-width: 13ch; color: #fff; }
.dash-hero .lead-h { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); max-width: 34ch; margin: 0 0 30px; line-height: 1.35; }
.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-left: auto; }
.hero-art .tag { position: absolute; inset: 0; }
.hero-art .tag svg { position: absolute; left: 26%; top: 28%; width: 48%; height: 48%; }
.hero-art .pa { width: 30%; left: -12%; top: 56%; object-position: 50% 38%; }
.hero-art .pb { width: 26%; right: -4%; top: 6%; object-position: 42% 22%; }
@media (max-width: 860px) {
  .dash-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; border-radius: 26px; }
  .hero-art { order: -1; width: 230px; margin: 0 0 8px; }
  .hero-art .pa { left: -10%; }
}
.stats { display: flex; flex-wrap: wrap; gap: 14px 56px; margin: 36px 4px 0; }
.stat b { display: block; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.875rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 500; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 52px 0 18px; flex-wrap: wrap; }
.section-title { margin: 56px 0 18px; font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); }
.section-head .section-title { margin: 0; }

/* Pedidos del cliente */
.orders { display: grid; gap: 12px; }
.cards { gap: 12px; }
.ocard { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; background: var(--surface); border: var(--bd); border-radius: 28px; padding: 18px 28px 18px 18px; }
.ocard .photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: var(--bd); }
.ocard h3 { font-size: 1.625rem; margin-bottom: 6px; }
.ocard h3 .muted { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 1.0625rem; letter-spacing: 0; }
.ocard .sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin: 0 0 16px; align-items: center; }
.ocard .sub span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid var(--ink); }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tracker li { position: relative; padding-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.tracker li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 999px; background: var(--bg-deep); }
.tracker li.done, .tracker li.now { color: var(--ink); }
.tracker li.done::before, .tracker li.now::before { background: var(--blue); }
.tracker li.now { font-weight: 700; }
.tracker li.now::after { content: ''; position: absolute; right: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (max-width: 560px) {
  .ocard { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .ocard .photo { width: 64px; height: 64px; }
  .ocard h3 { font-size: 1.375rem; }
  .tracker { grid-column: 1 / -1; }
  .ocard .body { display: contents; }
  .ocard .sub { grid-column: 2; margin-bottom: 0; }
}
.empty { padding: 36px; text-align: center; color: var(--muted); background: var(--surface); border: var(--bd); border-radius: var(--r); }
.empty-card { background: var(--surface); border: var(--bd); border-radius: 24px; padding: 28px 24px; display: grid; justify-items: center; text-align: center; gap: 12px; --hole: #fff; }
.empty-card .tag { width: 96px; }
.empty-card h3 { font-size: 1.375rem; }
.empty-card p { margin: 0; color: var(--muted); max-width: 36ch; }
.credits-foot { margin: 56px 0 0; color: var(--muted); font-size: 0.875rem; }
.credits-foot a { color: var(--muted); }
.badge { padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; background: var(--blue); color: #fff; white-space: nowrap; border: 2px solid var(--ink); }
.badge.s-nuevo { background: var(--red); color: #fff; }
.badge.s-en_produccion { background: var(--blue-tint); color: var(--blue-dark); }
.badge.s-enviado { background: var(--bg-deep); color: var(--ink); }

/* ---------- Compra ---------- */
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 28px; padding: 0; list-style: none; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: #fff; border: var(--bd); color: var(--muted); font-weight: 600; }
.stepper li.done { background: var(--blue-tint); color: var(--ink); }
.stepper li.done::before { content: '✓'; font-weight: 800; }
.stepper li.active { background: var(--blue); color: #fff; font-weight: 700; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.form-card { padding: clamp(22px, 3vw, 40px); background: var(--surface); border: var(--bd); border-radius: 28px; }
.form-card h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 8px; }
.form-card .lead { color: var(--muted); margin: 0 0 26px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; min-height: 0; height: 1px; }
.choices span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; border: var(--bd); font-weight: 600; }
.choices input:checked + span { background: var(--blue); color: #fff; font-weight: 700; }
.choices input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.photo-drop { display: grid; place-items: center; gap: 10px; min-height: 150px; padding: 18px; text-align: center; border-radius: var(--r); background: var(--surface-2); border: 2px dashed var(--ink); cursor: pointer; color: var(--muted); }
.photo-drop:hover { background: var(--blue-tint); }
.photo-drop img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: var(--bd); }
.summary { display: grid; gap: 22px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary h3 { font-size: 1.25rem; margin-bottom: 10px; }

.preview { position: sticky; top: 24px; display: grid; gap: 16px; justify-items: center; }
.preview .cap { color: var(--muted); text-align: center; margin: 0; max-width: 28ch; font-size: 0.9375rem; }
.rig { --strap: #164e92; --scale: .82; position: relative; width: 100%; max-width: 380px; display: grid; justify-items: center; }
.rig .strap { position: absolute; left: -2%; right: -2%; top: calc(8.25% - 14px); height: 28px; border-radius: 999px; background: var(--strap); border: var(--bd); transition: background-color .35s ease; z-index: 0; }
.rig .strap::after { content: ''; position: absolute; left: 16px; right: 16px; top: 50%; translate: 0 -50%; border-top: 3px dashed rgba(255, 255, 255, .4); }
.rig .tag { z-index: 1; width: calc(var(--scale) * 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14% 12% 6%; gap: 6px; transition: width .35s cubic-bezier(.3,1.3,.5,1); --hole: var(--strap); }
.rig .tag::before { background: var(--strap); transition: background-color .35s ease; }
.rig .tag::after { content: ''; position: absolute; top: 3.2%; left: 50%; width: 9.4%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 5px solid #6b6b6b; z-index: 2; }
.pp { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); overflow: hidden; display: grid; place-items: center; border: 2px solid var(--ink); }
.pp img { width: 100%; height: 100%; object-fit: cover; }
.pn { font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; max-width: 100%; overflow-wrap: anywhere; }
.ps { font-size: 0.9375rem; line-height: 1.2; }
.pq { width: 24%; aspect-ratio: 1; margin-top: 4px; }
.po { font-weight: 700; font-size: 0.9375rem; }
@media (max-width: 900px) {
  .buy { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .rig { max-width: 320px; }
}

.placeholder { text-align: center; padding: 88px 24px; background: var(--surface); border: var(--bd); border-radius: var(--r); }
.placeholder h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin-bottom: 14px; }
.placeholder p { color: var(--muted); margin: 0; }

/* ---------- Vendedor ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.page-head .sum { font-size: 1.125rem; margin: 8px 0 0; }
.search { position: relative; min-width: min(100%, 320px); }
.search input { padding-left: 48px; border-radius: 999px; min-height: 52px; }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink); pointer-events: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.kpi { font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--ink); border: var(--bd); border-radius: 24px; padding: 18px 20px 16px; display: grid; gap: 6px; min-height: 104px; align-content: space-between; transition: translate .18s ease, background-color .15s ease; }
.kpi b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-weight: 600; }
.kpi:hover { background: var(--surface-2); translate: 0 -3px; }
.kpi[aria-selected='true'] { background: var(--blue); color: #fff; }
.kpi[aria-selected='true'] span { color: #fff; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi { min-height: 96px; padding: 16px 18px; } }
.orow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: #fff; border: var(--bd); border-radius: 24px; padding: 12px 16px 12px 12px; transition: background-color .15s ease; }
.orow-main { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; color: inherit; text-decoration: none; min-width: 0; border-radius: 16px; }
.orow-main img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: var(--bd); }
.orow-main .meta strong { display: block; font-family: 'Syne', sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.orow-main .meta span { color: var(--muted); }
.orow-main .col { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.orow-side { display: flex; align-items: center; gap: 12px; }
.orow:hover { background: var(--surface-2); }
@media (max-width: 860px) {
  .orow { grid-template-columns: 1fr; padding: 14px; }
  .orow-main { grid-template-columns: 56px 1fr; }
  .orow-main img { width: 56px; height: 56px; }
  .orow-main .col { display: none; }
  .orow-side { justify-content: space-between; }
}
.back { color: var(--ink); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pet-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.pet-head img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--ink); }
.pet-head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); margin-bottom: 6px; }
.pet-head p { margin: 0; }
.panel { background: #fff; border: var(--bd); border-radius: 24px; padding: 22px 24px; margin-bottom: 10px; }
.panel h2 { font-size: 1.375rem; margin-bottom: 14px; }
.panel .hint { margin: 12px 0 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.btn-copy { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.facts { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.ship-label { background: var(--bg); border: 2px dashed var(--ink); border-radius: 18px; padding: 16px 18px; margin: 0 0 14px; line-height: 1.45; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps label { cursor: pointer; display: grid; }
.steps input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.steps span { height: 100%; display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #fff; border: var(--bd); font-weight: 700; min-height: 76px; align-content: center; transition: background-color .15s ease, scale .15s ease; }
.steps span small { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.steps label.before span { background: var(--blue-tint); }
.steps input:checked + span { background: var(--blue); color: #fff; }
.steps input:checked + span small { color: #fff; }
.steps input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.steps label:hover span { scale: 1.02; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps span { min-height: 0; } }
.detail-side { position: sticky; top: 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.detail-side .cap { margin: 0; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.detail-side .cap a { color: var(--blue); }
.plate { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16% 12% 8%; }
.plate .qr { width: 54%; }
.plate .qr svg { width: 100%; height: auto; display: block; }
.plate .qr path:first-child { fill: transparent; }
.plate .qr path[stroke] { stroke: #000; }
.plate-name { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; order: -1; }
  .plate { max-width: 300px; }
}

/* ---------- Perfil público ---------- */
.profile { max-width: 760px; }
.found { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; margin: 12px 0 28px; }
.found-tag { width: 100%; overflow: hidden; }
.found-tag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.found-tag::before { z-index: 1; }
.found-text h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem); margin-bottom: 14px; }
.lead-found { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); line-height: 1.3; margin: 0 0 22px; max-width: 24ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cta .btn { min-height: 56px; font-size: 1.125rem; }
.important { background: var(--red); color: #fff; border-color: var(--ink); }
.important h2 { color: #fff; }
.important p { margin: 0; font-size: 1.125rem; font-weight: 600; }
.foot { text-align: center; margin-top: 36px; }
@media (max-width: 680px) {
  .found { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
  .found-tag { max-width: 240px; }
  .cta { width: 100%; }
  .cta .btn { flex: 1 1 100%; }
}

/* ---------- Impresión: solo la placa, en blanco y negro y a 50 mm ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .topbar, .back, .detail-main, .detail-side .btn, .detail-side .cap { display: none !important; }
  .wrap { padding: 0; width: auto; }
  .detail { display: block; }
  .detail-side { position: static; justify-items: start; }
  .plate { width: 50mm; max-width: none; background: #fff; color: #000; border: 0.5mm solid #000; padding: 9mm 5mm 4mm; gap: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plate::before { background: #fff; border: 0.5mm solid #000; }
  .plate-name { font-size: 4.5mm; color: #000; }
}

/* ---------- Movimiento: solo transform/opacity, y nada si el sistema pide reducirlo ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tag, .found-tag { transform-origin: 50% 6%; }
  @keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
  @keyframes pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
  @keyframes swing-in { 0% { rotate: -10deg; opacity: 0; } 22% { rotate: 6deg; opacity: 1; } 46% { rotate: -3.5deg; } 68% { rotate: 1.8deg; } 86% { rotate: -.7deg; } 100% { rotate: 0deg; } }
  @keyframes sway { 0%, 100% { rotate: 0deg; } 25% { rotate: 2.2deg; } 75% { rotate: -2.2deg; } }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
  @keyframes stamp { 0% { scale: 1.18; rotate: -7deg; opacity: 0; } 55% { scale: .97; rotate: 2deg; opacity: 1; } 100% { scale: 1; rotate: 0deg; } }
  @keyframes chip { 0% { scale: .92; } 60% { scale: 1.06; } 100% { scale: 1; } }
  @keyframes stepin { from { opacity: 0; translate: 22px 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes dropin { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
  @keyframes photo-pop { 0% { scale: .6; opacity: 0; } 70% { scale: 1.06; opacity: 1; } 100% { scale: 1; } }
  @keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
  @keyframes pulse-dot { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.9; opacity: .35; } }
  @keyframes paw-in { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }

  .auth-left .top, .auth-left .hero-copy > *, .auth-left .demo { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .auth-left h1 { animation-delay: .06s; } .auth-left .tagline { animation-delay: .12s; } .auth-left .lead { animation-delay: .18s; }
  .auth-tag .tag { animation: pop .6s cubic-bezier(.2,.7,.2,1) .1s both, swing-in 2s ease-out .1s both; }
  .pet { animation: pop .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both, float var(--fl, 6s) ease-in-out calc(var(--d, 0s) + .7s) infinite; }
  .p1 { --d: .35s; --fl: 5.6s; } .p2 { --d: .45s; --fl: 6.8s; } .p3 { --d: .55s; --fl: 6.2s; } .p4 { --d: .65s; --fl: 7.4s; }
  .paw { animation: paw-in .5s cubic-bezier(.3,1.4,.5,1) both; }
  .w2 { animation-delay: .08s; } .w3 { animation-delay: .16s; } .w4 { animation-delay: .24s; } .w5 { animation-delay: .32s; } .w6 { animation-delay: .4s; }

  .dash-hero, .ocard, .orow, .kpi, .empty-card, .stat, .panel { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .orders > :nth-child(1) { animation-delay: .05s; } .orders > :nth-child(2) { animation-delay: .12s; } .orders > :nth-child(3) { animation-delay: .19s; }
  .orders > :nth-child(4) { animation-delay: .26s; } .orders > :nth-child(5) { animation-delay: .33s; } .orders > :nth-child(n+6) { animation-delay: .4s; }
  .kpis > :nth-child(2) { animation-delay: .06s; } .kpis > :nth-child(3) { animation-delay: .12s; } .kpis > :nth-child(4) { animation-delay: .18s; }
  .stats > :nth-child(2) { animation-delay: .1s; } .stats > :nth-child(3) { animation-delay: .2s; }
  .hero-art .tag { animation: swing-in 2s ease-out .25s both, sway 8s ease-in-out 2.3s infinite; }
  .tracker li::before { transform-origin: 0 50%; animation: grow .7s cubic-bezier(.2,.7,.2,1) .3s both; }
  .tracker li.now::after { animation: pulse-dot 1.8s ease-in-out 1s infinite; }
  .ocard, .orow { transition: translate .18s ease, background-color .15s ease; }
  .ocard:hover { translate: 0 -3px; }
  a.orow-main:hover { translate: 4px 0; }

  section[data-step] { animation: stepin .4s cubic-bezier(.2,.7,.2,1) both; }
  .choices input:checked + span, .stepper li.active, .kpi[aria-selected='true'] { animation: chip .3s cubic-bezier(.3,1.5,.5,1); }
  .rig .tag { animation: swing-in 1.8s ease-out .2s both, sway 9s ease-in-out 2s infinite; }
  .pp img, .photo-drop img { animation: photo-pop .5s cubic-bezier(.3,1.4,.5,1) both; }
  .alert-ok:not([hidden]) { animation: dropin .5s cubic-bezier(.2,.7,.2,1) both; }
  .plate { animation: stamp .7s cubic-bezier(.2,.8,.3,1) .15s both; }
  .found-tag { animation: swing-in 2s ease-out .1s both, sway 8s ease-in-out 2.1s infinite; }
  .found-text > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .found-text > :nth-child(2) { animation-delay: .1s; } .found-text > :nth-child(3) { animation-delay: .2s; } .found-text > :nth-child(4) { animation-delay: .3s; }
  .steps span { transition: background-color .15s ease, scale .15s ease; }
}
