/* Collarito · estilo tienda de mascotas con diseño (referencia: Wild One) + la placa como objeto protagonista (referencia: AirTag).
   Bloques partidos foto | color pastel plano, botones navy en píldora, objetos tipo sticker, mucho blanco. */
:root {
  --white: #ffffff;
  --paper: #faf8f5;
  --navy: #1f2a5c;
  --navy-deep: #151d42;
  --pink: #f8d9e6;
  --pink-deep: #e9a9c4;
  --lilac: #dcd8f6;
  --lilac-deep: #b9b2ec;
  --butter: #fbe9a9;
  --mint: #cfeadf;
  --orange: #f0643c;
  --ink: #1d2036;
  --ink-soft: #565a74;
  --line: #e6e2dc;
  --alarm: #c2401f;
  --alarm-deep: #8f2c12;

  --sans: "Figtree", system-ui, sans-serif;
  --logo: "Young Serif", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
a { color: var(--navy); text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Top bars ---------- */
.announce { background: var(--navy); color: var(--white); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 9px 16px; }
.announce a { color: var(--white); }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 60px; padding: 0 clamp(16px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-links { display: flex; gap: 22px; font-size: 0.92rem; font-weight: 600; }
.nav-links a, .nav-cta { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--orange); }
.logo { font-family: var(--logo); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-cta { justify-self: end; font-size: 0.92rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav-cta:hover { background: var(--ink); color: var(--white); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-inner { grid-template-columns: auto 1fr; } .logo { justify-self: start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  font: 700 1rem/1.15 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-navy:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Split blocks ---------- */
.split { display: grid; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; min-height: 560px; } .split.flip > :first-child { order: 2; } }
.panel { display: grid; place-content: center; justify-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden; }
.panel h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.panel h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.panel > p, .panel .lede { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); max-width: 38ch; }
.panel .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bg-pink { background: var(--pink); }
.bg-lilac { background: var(--lilac); }
.bg-butter { background: var(--butter); }
.bg-mint { background: var(--mint); }
.stripes { background: repeating-linear-gradient(0deg, var(--lilac) 0 14px, #eeecfb 14px 28px); }
.photo { position: relative; min-height: 380px; background: var(--paper); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* stickers scattered on panels */
@media (max-width: 859px) { .sticker-low { display: none; } .sticker { width: 38px !important; } }
.sticker { position: absolute; width: clamp(44px, 6vw, 72px); height: auto; filter: drop-shadow(0 6px 8px rgba(31, 42, 92, 0.18)); pointer-events: none; }

/* ---------- Hero: collar + tag ---------- */
.hero-tag { min-height: 520px; padding: 0; display: block; }
.collar {
  position: absolute; left: -5%; right: -5%; top: 70px; height: 34px;
  background: var(--navy); border-radius: 6px; transform: rotate(-3deg);
  box-shadow: 0 8px 14px -8px rgba(21, 29, 66, 0.6);
}
.collar::before { content: ""; position: absolute; inset: 6px 0; border-top: 2px dashed rgba(255, 255, 255, 0.45); border-bottom: 2px dashed rgba(255, 255, 255, 0.45); }
.dring {
  position: absolute; left: 50%; top: 82px; width: 46px; height: 40px; margin-left: -23px;
  border: 6px solid #b9bccb; border-top-color: #e4e6ee; border-radius: 6px 6px 24px 24px; z-index: 2;
}
.swing {
  position: absolute; left: 50%; top: 106px; width: 0; height: 0; z-index: 3;
  transform-origin: 0 0; touch-action: none; cursor: grab;
}
.swing.dragging { cursor: grabbing; }
.split-ring { position: absolute; left: -17px; top: -6px; width: 34px; height: 34px; border-radius: 50%; border: 5px solid #c7cad6; border-bottom-color: #9a9db0; }
.tag3d {
  position: absolute; left: calc(var(--tag) / -2); top: 18px; width: var(--tag); height: var(--tag);
  --tag: clamp(200px, 24vw, 270px);
  perspective: 900px; background: none; border: 0; padding: 0; cursor: inherit;
}
.tag-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.tag3d.is-flipped .tag-flip { transform: rotateY(180deg); }
.tag-side {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  /* plástico impreso en 3D: color mate con líneas de capa */
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    var(--orange);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14), inset 0 4px 8px rgba(255, 255, 255, 0.3), 0 30px 40px -24px rgba(21, 29, 66, 0.7);
  color: var(--white);
}
.tag-side::before { content: ""; position: absolute; top: 12px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--stripe-bg, #e7e4fa); box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.35); }
.tag-back { transform: rotateY(180deg); }
.tag-name { font-weight: 800; font-size: calc(var(--tag) * 0.13); letter-spacing: -0.03em; line-height: 1; }
.tag-paw { width: calc(var(--tag) * 0.16); height: auto; color: var(--white); opacity: 0.95; }
.tag-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.tag-qr { width: calc(var(--tag) * 0.48); aspect-ratio: 1; background: var(--white); border-radius: 12px; padding: 8px; color: var(--ink); }
.tag-qr svg { width: 100%; height: 100%; display: block; }
.tag-hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---------- Navy band ---------- */
.band { background: var(--navy); color: var(--white); text-align: center; padding: 22px 20px; font-weight: 600; font-size: clamp(1rem, 2vw, 1.2rem); }

/* ---------- Steps inside a panel ---------- */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; text-align: left; max-width: 400px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; }
.steps strong { display: block; font-size: 1.12rem; }
.steps span { color: var(--ink-soft); }

/* ---------- Phone ---------- */
.phone { width: min(290px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; background: var(--ink); padding: 9px; box-shadow: 0 40px 60px -36px rgba(21, 29, 66, 0.8); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; display: block; background: var(--white); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.checks svg { width: 22px; height: 22px; color: var(--navy); margin-top: 2px; }

/* ---------- Order ---------- */
.price { margin-top: 18px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price b { font-size: clamp(3rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { font-weight: 700; }
.pill-tag { display: inline-block; margin-top: 12px; background: var(--orange); color: var(--white); font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.order-form { width: min(440px, 100%); text-align: left; }
.order-form h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; }
.order-form > p { margin-top: 10px; text-align: center; color: var(--ink-soft); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field input[type="text"] { min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: 500 1.05rem var(--sans); caret-color: var(--orange); }
.field input[type="text"]::placeholder { color: #7b7f96; }
.field input[type="text"]:focus { outline: none; box-shadow: 0 0 0 3px var(--lilac-deep); }
.field input[aria-invalid="true"] { border-color: var(--alarm); }
.field-error { color: var(--alarm-deep); font-size: 0.9rem; font-weight: 600; min-height: 1.2em; padding-left: 18px; }
fieldset.field { border: 0; margin: 14px 0 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }
.order-form .btn { width: 100%; margin-top: 20px; }
.swatches { gap: 12px; }
.swatches .choice span { width: 44px; min-height: 44px; padding: 0; justify-content: center; box-shadow: none; }
.swatches .choice input:checked + span { background: none; box-shadow: 0 0 0 2px var(--ink); }
.swatches i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.12); }

.panel > .checks { max-width: 400px; }
#quiero .panel { padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px); }
@media (min-width: 860px) { #quiero.split { min-height: 0; } }
#quiero .price b { font-size: clamp(2.6rem, 5vw, 3.4rem); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error:empty { min-height: 0; margin-top: -6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-foot { margin-top: 10px; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px) 28px; overflow: hidden; }
.footer a { color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; max-width: 1200px; margin-inline: auto; }
.footer-line { font-family: var(--logo); font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05; color: var(--white); letter-spacing: -0.02em; max-width: 14ch; }
.footer-line em { font-style: normal; color: var(--pink); }
.footer .btn-white { background: var(--white); color: var(--navy); }
.footer .btn-white:hover { background: var(--pink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 1200px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--pink); }
.footer-mark { position: relative; max-width: 1200px; margin: clamp(40px, 6vw, 72px) auto 0; font-family: var(--logo); font-size: clamp(4.2rem, 19vw, 15.5rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--pink); text-align: center; user-select: none; }
.footer-mark .sticker { width: clamp(40px, 6vw, 80px) !important; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; max-width: 1200px; margin: clamp(28px, 4vw, 44px) auto 0; font-size: 0.88rem; }
.footer-base a { font-weight: 600; text-underline-offset: 3px; }
.footer-base a:hover { color: var(--pink); }

/* =========== Profile page (/perfil) =========== */
.profile-body { background: var(--pink); min-height: 100svh; transition: background-color 0.5s var(--ease); }
.demo-ribbon { background: var(--navy); color: var(--white); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 9px 16px; }
.demo-ribbon a { color: var(--white); }
.profile { width: min(480px, 100% - 28px); margin-inline: auto; padding: 18px 0 44px; }
.pet-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--lilac); box-shadow: 0 24px 40px -28px rgba(21, 29, 66, 0.6); }
.pet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.pet-head { text-align: center; margin-top: 16px; }
.pet-head h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; }
.pet-head .meta { margin-top: 4px; font-weight: 600; color: var(--ink-soft); }
.pet-message { margin-top: 10px; font-size: 1.05rem; text-align: center; }
.pet-head .meta b { color: var(--ink); }
.pet-photo { position: relative; }
.gallery { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; scroll-snap-align: start; }
/* Modo perdido: la foto manda, de borde a borde */
.is-lost .profile { padding-top: 0; padding-bottom: 120px; }
.is-lost .pet-photo { aspect-ratio: 1 / 1; margin-inline: -14px; border-radius: 0; box-shadow: none; }
.btn-alarm { background: var(--alarm); color: var(--white); }
.btn-alarm:hover { background: var(--alarm-deep); }
.lost-bar-sheet { width: min(400px, 100% - 28px); display: grid; gap: 10px; text-align: center; padding: 18px; border-radius: 24px; background: var(--white); box-shadow: 0 20px 40px -16px rgba(60, 20, 8, 0.45); }
.lost-bar-sheet p { font-weight: 700; }
.lost-bar-sheet .btn { min-height: 50px; }
.bar-status { font-weight: 600 !important; font-size: 0.9rem; color: var(--alarm-deep); min-height: 0; }
.link-btn { background: none; border: 0; padding: 8px; font: 600 0.95rem var(--sans); color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
/* Modo perdido: mismo mundo cálido, el rojo solo como acento */
.is-lost { background: var(--white); }
.photo-btn { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.photo-btn svg { width: 19px; height: 19px; }
.photo-btn:hover { background: var(--white); }
.counter { position: absolute; right: 14px; bottom: 36px; padding: 3px 10px; border-radius: 8px; background: rgba(29, 32, 54, 0.6); color: var(--white); font-size: 0.8rem; font-weight: 600; }
.lost-head { position: relative; margin: -24px -14px 0; padding: 26px 22px 22px; background: var(--white); border-radius: 24px 24px 0 0; }
.lost-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #fde6dc; color: var(--alarm-deep); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lost-head h1 { margin-top: 12px; font-size: clamp(2rem, 9vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.lost-call { margin-top: 6px; color: var(--ink-soft); font-size: 1.05rem; }
.lost-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lost-facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lost-facts svg { width: 20px; height: 20px; flex: none; color: var(--alarm); }
.is-lost .info { margin: 0; padding: 22px 8px 14px; background: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.is-lost .info + .info { margin-top: 0; }
.is-lost .status { display: none; }
.is-lost .status + .info { margin-top: 0; }
.lost-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.lost-bar > * { pointer-events: auto; }
.bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px max(24px, calc(10px + env(safe-area-inset-bottom))); background: var(--white); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px -8px rgba(29, 32, 54, 0.18), 0 -1px 0 rgba(29, 32, 54, 0.06); }
.bar-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bar-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--butter); color: var(--ink); flex: none; }
.bar-icon svg { width: 22px; height: 22px; }
.bar-text { display: grid; line-height: 1.25; }
.bar-text b { font-size: 0.95rem; }
.bar-text small { font-size: 0.85rem; color: var(--ink-soft); }
.bar .btn { min-height: 48px; padding: 0 22px; border-radius: 12px; flex: none; }
.profile-actions { display: grid; gap: 6px; margin-top: 18px; }
.profile-actions .btn { width: 100%; min-height: 58px; font-size: 1.05rem; }
.profile-actions .btn-outline { background: var(--white); }
.profile-actions .btn-outline:hover { background: var(--ink); }
.loc-link { justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); }
.loc-link svg { width: 18px; height: 18px; }
.loc-link:disabled { opacity: 0.6; cursor: wait; }
.alt-contact { display: flex; justify-content: center; gap: 0 22px; margin-top: -6px; }
.alt-contact a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.alt-contact a:hover { color: var(--ink); }
.alt-contact svg { width: 17px; height: 17px; }
.safe-lead { margin-top: 6px; color: var(--ink-soft); }
.safe-place { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.safe-place b { display: block; }
.safe-place small { display: block; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }
.safe-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--navy); }
.safe-icon svg { width: 22px; height: 22px; }
.safe .btn { width: 100%; min-height: 48px; margin: 16px 0 16px; font-size: 0.95rem; }
.status { margin-top: 10px; font-size: 0.95rem; font-weight: 600; color: var(--navy); min-height: 1.4em; text-align: center; }
.status.is-error { color: var(--alarm-deep); }
.info { margin-top: 16px; background: var(--white); border-radius: 22px; padding: 20px 22px 6px; }
.info h2 { font-size: 1.25rem; font-weight: 700; }
.info dl { margin: 8px 0 0; }
.info dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.info dl div:first-child { border-top: 0; }
.info dt { color: var(--ink-soft); }
.info dd { margin: 0; font-weight: 700; text-align: right; }
.note-text { padding: 6px 0 16px; }
.care { margin: 10px 0 0; padding: 0 0 14px 0; list-style: none; display: grid; gap: 10px; }
.care li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.care li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--orange); }
.privacy { margin-top: 18px; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.demo-switch { margin-top: 22px; display: flex; justify-content: center; }
.demo-switch .btn { min-height: 46px; font-size: 0.95rem; background: var(--white); }
.demo-switch .btn:hover { background: var(--ink); color: var(--white); }
.profile-footer { margin-top: 24px; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.profile-footer a { font-weight: 700; }
@media (max-width: 300px) { .profile-actions .btn { font-size: 0.95rem; padding: 0 14px; gap: 8px; } }

.is-lost .pet-photo { animation: settle 0.6s var(--ease); }
@keyframes settle {
  from { transform: translateY(8px); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .is-lost .pet-photo { animation: none; } }

/* Visor de fotos */
.gallery img { cursor: zoom-in; }
.all-photos { display: none; }
.viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 15, 28, 0.94); color: var(--white); }
.viewer::backdrop { background: rgba(13, 15, 28, 0.94); }
.viewer[open] { display: grid; place-items: center; }
.viewer img { max-width: min(92vw, 900px); max-height: 84svh; width: auto; height: auto; border-radius: 14px; object-fit: contain; }
.viewer-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); cursor: pointer; }
.viewer-btn:hover { background: rgba(255, 255, 255, 0.26); }
.viewer-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { left: 16px; top: 50%; translate: 0 -50%; }
.viewer-next { right: 16px; top: 50%; translate: 0 -50%; }
.viewer.is-single .viewer-prev, .viewer.is-single .viewer-next { display: none; }
.viewer-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 0.95rem; font-weight: 600; opacity: 0.8; }
@media (max-width: 600px) { .viewer-prev, .viewer-next { top: auto; bottom: 8px; translate: none; } .viewer-prev { left: 24px; } .viewer-next { right: 24px; } .viewer-count { bottom: 22px; } }

/* Modo normal en desktop: foto grande fija a la izquierda, todo lo demás a la derecha */
@media (min-width: 900px) {
  body:not(.is-lost) .profile { width: min(1040px, 100% - 64px); padding: 40px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  body:not(.is-lost) .profile > * { grid-column: 2; }
  body:not(.is-lost) .pet-photo { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 40px; aspect-ratio: 4 / 5; }
  body:not(.is-lost) .pet-head { margin-top: 8px; text-align: left; }
  body:not(.is-lost) .pet-head h1 { font-size: 4rem; line-height: 1; }
  body:not(.is-lost) .pet-head .meta { margin-top: 10px; }
  body:not(.is-lost) .pet-message { text-align: left; font-size: 1.15rem; }
  body:not(.is-lost) .profile-actions { margin-top: 24px; }
  body:not(.is-lost) .loc-link { justify-self: start; }
  body:not(.is-lost) .alt-contact { justify-content: flex-start; }
  body:not(.is-lost) .status { text-align: left; }
  body:not(.is-lost) .privacy, body:not(.is-lost) .profile-footer { text-align: left; }
  body:not(.is-lost) .demo-switch { justify-content: flex-start; }
}

/* Modo perdido en desktop: como un aviso tipo anuncio. Fotos en mosaico arriba,
   la info a la izquierda y la recompensa con "La vi" fija a la derecha. */
@media (min-width: 900px) {
  .is-lost .profile { width: min(1080px, 100% - 64px); padding: 32px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: start; }
  .is-lost .profile > * { grid-column: 1; }
  .is-lost .pet-photo { grid-column: 1 / -1; margin: 0 0 8px; aspect-ratio: auto; height: min(460px, 58vh); border-radius: 24px; animation: none; }
  .is-lost .gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; overflow: visible; }
  .is-lost .gallery img:first-child { grid-row: 1 / -1; }
  .is-lost .gallery img { min-height: 0; }
  .is-lost .counter { display: none; }
  .is-lost .all-photos:not([hidden]) { display: block; position: absolute; right: 16px; bottom: 16px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--white); font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
  .is-lost .all-photos:hover { background: var(--paper); }
  .is-lost .lost-head { margin: 0; padding: 24px 8px 22px; border-radius: 0; }
  .is-lost .lost-head h1 { font-size: 3rem; }
  .is-lost .lost-bar { grid-column: 2; grid-row: 2 / span 30; position: sticky; top: 32px; z-index: 1; display: flex; flex-direction: column; gap: 0; margin-top: 24px; background: var(--white); border-radius: 22px; box-shadow: 0 1px 0 rgba(29, 32, 54, 0.06), 0 18px 40px -18px rgba(29, 32, 54, 0.35); border: 1px solid var(--line); overflow: hidden; }
  .is-lost .bar { order: 1; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; border-radius: 0; box-shadow: none; }
  .is-lost .bar-icon { width: 48px; height: 48px; }
  .is-lost .bar-text b { font-size: 1.15rem; }
  .is-lost .bar-text small { font-size: 0.95rem; }
  .is-lost .bar .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .is-lost .lost-bar-sheet { order: 2; width: auto; padding: 0 24px 24px; margin-top: -6px; border-radius: 0; box-shadow: none; }
  .is-lost .lost-bar-sheet > p:first-child { text-align: left; }
  .is-lost .safe .btn { width: auto; padding: 0 28px; }
}
