/* Trufa — estilo inspirado en las guías de diseño de Apple:
   tipografía del sistema, mucho aire, superficies limpias, cristal esmerilado. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --fill: #f2f2f4;
  --fill-2: #e3e3e8;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --accent: #ff7a3d;
  --accent-ink: #d9531a;
  --link: #0066cc;
  --ok: #248a3d;
  --ok-soft: rgba(52, 199, 89, .14);
  --bad: #d70015;
  --bad-soft: rgba(255, 59, 48, .12);
  --star: #ff9f0a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .10);
  --glass: rgba(251, 251, 253, .72);
  --tabbar-h: 58px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fill: #2c2c2e;
    --fill-2: #3a3a3c;
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --muted: #98989d;
    --line: rgba(255, 255, 255, .1);
    --accent: #ff8a50;
    --accent-ink: #ff9f6e;
    --link: #2997ff;
    --ok: #30d158;
    --bad: #ff453a;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 40px rgba(0, 0, 0, .5);
    --glass: rgba(22, 22, 23, .72);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Lo que lleva el atributo hidden se oculta siempre, aunque su clase le dé otro display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "kern";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Titulares como apple.com: SF Pro Display semibold, tracking suave */
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.08; margin: 0 0 .45em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--fill); padding: 2px 6px; border-radius: 6px; }
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Iconos ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.tile { --c: #8e8e93; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tile .i { width: 24px; height: 24px; }
.tile.lg { width: 64px; height: 64px; border-radius: 18px; }
.tile.lg .i { width: 34px; height: 34px; }
.tile.sm { width: 28px; height: 28px; border-radius: 8px; }
.tile.sm .i { width: 16px; height: 16px; }
.tile.solid { color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.page { padding-top: 32px; padding-bottom: 72px; min-height: 60vh; }
.narrow { max-width: 720px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.4; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.center-text { text-align: center; }
.ml-auto { margin-left: auto; }
.big-emoji { font-size: 4rem; margin-top: 24px; }
.hero-logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 34px rgba(255, 122, 61, .35); margin: 16px auto 8px; display: block; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .92rem; margin: 0; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.stack-lg > section, .detail-grid section { margin-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border: 0; }
.danger-text { color: var(--bad); cursor: pointer; }
section { margin-bottom: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 8px 0 0; }
.section-title { margin: 0; }
.more { font-size: .95rem; display: inline-flex; align-items: center; gap: 2px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* ---------- Barra superior (cristal) ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 52px; }
.logo { display: flex; align-items: baseline; gap: 4px; color: var(--ink); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; align-self: center; margin-right: 5px; }
/* "Hola" en el naranja de marca, "Trufa" en el color del texto */
.logo-hola { color: var(--accent); font-weight: 800; }
.logo-trufa { color: var(--ink); font-weight: 650; }
.mainnav { display: flex; gap: 2px; margin-left: 18px; }
.mainnav a { color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: .84rem; }
.mainnav a:hover { color: var(--ink); text-decoration: none; }
.mainnav a.on { color: var(--ink); background: var(--fill); }
.account { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.adminbar { background: var(--ink); color: var(--bg); font-size: .78rem; padding: 5px 0; }
.adminbar a { color: var(--accent); }

/* ---------- Botones (píldora) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 980px; padding: 12px 22px; background: var(--accent); color: #fff; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), transform .12s var(--ease), opacity .2s; min-height: 44px; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.btn.light { background: #fff; color: #1d1d1f; }
.btn.light:hover { background: #e8e8ed; }
.btn.secondary { background: var(--ok-soft); color: var(--ok); }
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn.ghost:hover { background: var(--fill-2); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { padding: 6px 14px; font-size: .84rem; min-height: 32px; }
.btn.lg { padding: 15px 30px; font-size: 1.06rem; }
.btn.block { width: 100%; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.icon-btn .i { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--fill); text-decoration: none; }
.badge { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: .66rem; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }
.badge.static { position: static; display: inline-grid; }
form.inline { display: inline; }

/* ---------- Avatares / etiquetas ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg, #ffb35c, #ff7a3d); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.avatar:hover { text-decoration: none; }
.avatar.sm { width: 32px; height: 32px; font-size: .74rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: var(--fill); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.chip .i { width: 14px; height: 14px; }
.chip.small { font-size: .72rem; padding: 2px 9px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.tag.star { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 159, 10, .16); color: #b25e00; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.tag.star .i { width: 12px; height: 12px; fill: currentColor; }
.stars { color: var(--star); letter-spacing: 1px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.eyebrow { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; letter-spacing: -.005em; }
.eyebrow.accent { color: var(--accent-ink); }

/* ---------- Avisos ---------- */
.flash { padding: 13px 18px; border-radius: var(--radius-sm); margin: 0 0 18px; background: var(--surface); box-shadow: var(--shadow); font-size: .95rem; }
.flash-success { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.flash-error { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.flash-info { background: rgba(0, 122, 255, .1); color: var(--link); box-shadow: none; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; }
a.card { display: block; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.card.pad, .pad { padding: 26px; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { margin-bottom: 6px; }
.card h2 { font-size: 1.3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Negocio */
.biz-card { overflow: hidden; display: flex; flex-direction: column; }
/* El nombre y la categoría van siempre arriba (portada); la foto, debajo. */
.biz-head { --c: #8e8e93; display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; position: relative; }
.biz-head-ic { flex: none; }
.biz-head-txt { min-width: 0; flex: 1; }
.biz-head-txt h3 { margin: 2px 0 0; }
.biz-head .tag.star { position: absolute; top: 12px; right: 12px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.biz-cover { --c: #8e8e93; position: relative; height: 160px; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--c) 24%, var(--surface)), color-mix(in srgb, var(--c) 8%, var(--surface))); }
.biz-card .card-body { padding-top: 12px; flex: 1; }
.meta-row { display: flex; align-items: center; gap: 6px; font-size: .84rem; margin-top: 12px; color: var(--muted); }
.meta-row .pets { margin-left: auto; }

/* Quedada */
a.meetup-card { display: flex; align-items: stretch; overflow: hidden; }
.date-chip { flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--fill); }
.date-chip span { text-transform: uppercase; font-size: .7rem; font-weight: 600; color: #ff3b30; letter-spacing: .02em; }
.date-chip b { font-size: 2rem; line-height: 1.05; font-weight: 600; }

/* ---------- Portada ---------- */
.hero { text-align: center; padding: 20px 0 8px; margin-bottom: 40px; }
.hero h1 { font-size: clamp(2.7rem, 8.5vw, 5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 18px 0 16px; }
.hero h1 .grad { background: linear-gradient(90deg, #ff9f45, #ff5f6d 55%, #c86dd7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 620px; margin: 0 auto 32px; }
.search { display: flex; align-items: center; gap: 6px; max-width: 640px; margin: 0 auto; background: var(--surface); padding: 7px 7px 7px 20px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08); }
.search > .i { color: var(--muted); }
.search select { flex: 1; border: 0; background-color: transparent; min-width: 0; box-shadow: none !important; padding: 10px 30px 10px 6px; font-weight: 500; }
.search .sep { width: 1px; height: 26px; background: var(--line); }
.hero-foot { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stats > * { background: var(--surface); padding: 24px 12px; text-align: center; color: var(--ink); }
.stats b { display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; }
.stats span { font-size: .82rem; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px 16px; text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); font-weight: 500; font-size: .8rem; letter-spacing: -.01em; line-height: 1.2; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { padding: 44px 38px; border-radius: 28px; }
.promo h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 12px; }
.promo p { color: var(--muted); margin-bottom: 26px; }
.promo.dark { background: #1d1d1f; color: #f5f5f7; box-shadow: none; }
.promo.dark p { color: #a1a1a6; }
.promo.warm { background: linear-gradient(160deg, #fff3e6, #ffe0cc); box-shadow: none; color: #1d1d1f; }
.promo.warm p { color: #6e5a4a; }

/* ---------- Formularios ---------- */
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background-color: var(--surface); border: 1px solid var(--fill-2); border-radius: 12px; padding: 11px 14px; width: 100%; min-height: 46px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent); }
input[type=checkbox], input[type=radio] { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; }
.form label, .form fieldset { display: block; margin-bottom: 16px; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; font-weight: 400; }
.form-section { margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.form .checks label.check, .checks label.check { display: inline-flex; align-items: center; gap: 8px; background: var(--fill); padding: 8px 14px; border-radius: 999px; margin: 0; }
.checks label.check > input { position: static; margin: 0; }
.form label.check, label.check { display: block; position: relative; padding-left: 30px; font-weight: 400; margin-bottom: 10px; cursor: pointer; color: var(--ink); font-size: .92rem; line-height: 1.45; }
label.check > input { position: absolute; left: 0; top: 1px; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--bad); }
.field-error { display: block; color: var(--bad); font-size: .8rem; font-weight: 400; margin-top: 5px; }
.consents { background: var(--fill); padding: 18px; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; }
.filters { display: flex; gap: 10px; padding: 10px; margin-bottom: 18px; flex-wrap: wrap; border-radius: 20px; }
.filters > * { flex: 1 1 180px; }
.filters input, .filters select { background-color: var(--fill); border-color: transparent; }
.filters .btn { flex: 0 0 auto; }
.auth { max-width: 440px; margin: 8px auto; }
.auth .card { padding: 36px 32px; }
.auth h1 { font-size: 1.9rem; text-align: center; }
.auth .muted { text-align: center; }
.auth-logo { width: 64px; height: 64px; border-radius: 16px; display: block; margin: 0 auto 18px; box-shadow: 0 8px 20px rgba(255, 122, 61, .3); }

/* ---------- Ficha de detalle ---------- */
.detail-hero { --c: #8e8e93; display: flex; align-items: center; gap: 22px; padding: 40px 36px; border-radius: 28px; margin-bottom: 22px; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 26%, var(--surface)), color-mix(in srgb, var(--c) 6%, var(--surface))); }
.detail-hero h1 { margin: 0 0 8px; }
.detail-hero p { margin: 0; color: var(--ink-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.detail-grid aside { position: sticky; top: 76px; }
.highlight h2 { display: flex; align-items: center; gap: 10px; }
.contact { list-style: none; padding: 0; margin: 16px 0; }
.contact li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .95rem; }
.contact li:last-child { border: 0; }
.contact .i { color: var(--muted); }
.aside-actions { display: grid; gap: 10px; }
.reviews { list-style: none; padding: 0; margin: 20px 0 0; }
.reviews > li { padding: 18px 0; border-top: 1px solid var(--line); }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review-form { background: var(--fill); padding: 18px; border-radius: var(--radius-sm); }
.review-form textarea { background-color: var(--surface); }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input legend { width: 100%; float: left; font-size: .9rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.9rem; color: var(--fill-2); cursor: pointer; line-height: 1; transition: color .15s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--star); }
.rating-input input:focus-visible + label { outline: 2px solid var(--link); border-radius: 4px; }
.report { margin-top: 8px; font-size: .78rem; }
.report summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.report summary::-webkit-details-marker { display: none; }
.report form { margin-top: 10px; max-width: 360px; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Perfil / comunidad ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.profile-head h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.profile-head p { margin: 0; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pet-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--fill); border-radius: 18px; }
.pet-card > div { flex: 1; }
.pet-card p { margin: 6px 0 0; }
.pet-emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); font-size: 1.7rem; flex: none; }
.add-pet summary { list-style: none; margin-bottom: 14px; }
.add-pet summary::-webkit-details-marker { display: none; }
a.member-card { display: flex; gap: 16px; padding: 20px; align-items: center; }
.member-card h3, .member-card p { margin: 0; }
.pets-line { font-size: .88rem; margin-top: 6px !important; color: var(--ink-2); }
/* Pestañas de la comunidad (Toda la comunidad / Mis favoritos) */
.comm-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.comm-tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 20px; border-radius: 999px; background: var(--fill); font-weight: 600; color: var(--ink-2); font-size: 1rem; }
.comm-tab:hover { background: var(--fill-2, var(--fill)); text-decoration: none; }
.comm-tab.on { background: var(--accent); color: #fff; }
.comm-tab .count { background: rgba(0,0,0,.12); border-radius: 999px; padding: 1px 9px; font-size: .82rem; }
.comm-tab.on .count { background: rgba(255,255,255,.3); }
/* Me gusta entre perros */
.like-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.like-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1; transition: transform .08s ease, background .15s ease; }
.like-btn:hover { background: var(--fill); }
.like-btn:active { transform: scale(.92); }
.like-btn.on { background: var(--bad-soft); border-color: transparent; }
.like-btn.static { cursor: default; border: 0; background: transparent; padding-left: 0; }
.like-count { font-variant-numeric: tabular-nums; }
.friend-card { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; }
.friend-card .member-link { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; color: inherit; }
.friend-card .member-link h3, .friend-card .member-link p { margin: 0; }
.friend-card .btn { flex: none; }
.liked-list { list-style: none; padding: 0; margin: 8px 0 0; }
.liked-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.liked-list li:last-child { border: 0; }
/* Quedadas favoritas */
.fav-quick { margin-bottom: 16px; }
.fav-quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fav-tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fav-tpl-list li:last-child { border: 0; }
.fav-tpl-info { min-width: 0; flex: 1; }
.fav-tpl-actions { display: flex; align-items: center; gap: 8px; }
/* Panel de analítica */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-lbl { font-weight: 600; font-size: .9rem; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 180px; margin-top: 10px; padding-bottom: 20px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; min-width: 0; }
.chart-bar { width: 72%; min-height: 2px; background: var(--brand, var(--ok)); border-radius: 4px 4px 0 0; transition: height .2s ease; }
.chart-col:hover .chart-bar { background: var(--ink); }
.chart-x { position: absolute; bottom: -18px; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.bar-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.bar-list .bar-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.bar-list .bar-row a, .bar-list .bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 6px; background: var(--fill); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.bar-track span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
/* Mascotas que llevas a una quedada */
.pet-pick { display: grid; gap: 4px; margin: 4px 0 10px; }
.pet-bring { margin-top: 10px; }
.pet-bring summary { cursor: pointer; color: var(--ink-2); }
.pet-bring .pet-pick { margin-top: 8px; }
/* Responsables de una mascota y compartir */
.guardians { margin-top: 6px; }
.pet-share { margin-top: 8px; }
.pet-share summary { cursor: pointer; font-size: .85rem; color: var(--ink-2); }
.pet-share form { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pet-share input[type=email] { flex: 1; min-width: 160px; }
.share-invite { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--ok-soft); border-radius: 12px; margin-bottom: 8px; }
/* Página de compartir */
.share-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.share-qr img { border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.share-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.share-link code { background: var(--fill); padding: 6px 12px; border-radius: 8px; font-size: .95rem; }
.share-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.share-buttons .btn { color: #fff; border: 0; }
.share-wa { background: #25D366; } .share-tg { background: #229ED9; } .share-fb { background: #1877F2; } .share-tw { background: #111; }
.share-buttons .btn.ghost { background: var(--fill); color: var(--ink); }
.feedback-new { box-shadow: inset 3px 0 0 var(--ok); }
/* Tarjeta de "comparte" en la portada */
.share-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--ok-soft); box-shadow: none; }
.share-cta-text { flex: 1; min-width: 240px; }
.share-cta-text h2 { margin: 0 0 4px; }
.share-cta-text p { margin: 0; }
.share-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-cta-btns .share-wa { color: #fff; border: 0; }
.share-patitas { background: var(--ok-soft); box-shadow: none; margin: 16px 0; }
.share-patitas p { margin: 0; }
.share-cta-text .share-cta-patitas { margin-top: 8px; }
.share-reward-msg, .share-cta-text .share-reward-msg, .share-patitas .share-reward-msg { margin: 8px 0 0; font-weight: 600; color: var(--ok); }
/* Botón verde (editar perfil) */
.btn.green { background: var(--ok); color: #fff; border: 0; }
.btn.green:hover { filter: brightness(1.06); }
.profile-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Aviso flotante para instalar la app (PWA) */
.install-banner { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 70px); z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; background: #1d1d1f; color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.install-banner-txt { font-weight: 600; font-size: .95rem; }
.install-banner-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.install-banner-x { background: transparent; border: 0; color: rgba(255,255,255,.7); font-size: 1.05rem; cursor: pointer; padding: 4px 8px; line-height: 1; }
@media (min-width: 821px) { .install-banner { left: auto; right: 20px; bottom: 20px; max-width: 380px; } }
/* Página instalar */
.install-steps { padding-left: 1.2em; display: grid; gap: 8px; margin: 6px 0 0; }
.install-steps li { line-height: 1.5; }
/* Tiempo previsto en las quedadas */
.weather { margin-top: 14px; }
.weather-box { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ok-soft); border-radius: 14px; }
.weather-emoji { font-size: 2rem; line-height: 1; flex: none; }
.weather-line { margin-top: 2px; }
.attendees { list-style: none; padding: 0; margin: 0; }
.attendees li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attendees li:last-child { border: 0; }

/* ---------- Mensajes ---------- */
.convos { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.convos li + li a { border-top: 1px solid var(--line); }
.convos a { display: flex; gap: 14px; align-items: center; padding: 14px 20px; color: var(--ink); }
.convos a:hover { background: var(--fill); text-decoration: none; }
.convos a.unread b { font-weight: 700; }
.convo-text { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 440px; max-width: 760px; margin: 0 auto; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-head a { color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 75%; padding: 8px 14px; border-radius: 20px; font-size: .97rem; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .time { display: block; font-size: .66rem; opacity: .6; margin-top: 2px; }
.msg.mine { align-self: flex-end; background: linear-gradient(160deg, #ff9f45, #ff7a3d); color: #fff; border-bottom-right-radius: 6px; }
.msg.theirs { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { min-height: 40px; max-height: 140px; border-radius: 20px; padding: 9px 16px; background-color: var(--fill); border-color: transparent; }
.chat-form .btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.chat-form .btn .i { width: 20px; height: 20px; stroke-width: 2.4; }

/* ---------- Admin ---------- */
.tabs, .subtabs { display: flex; gap: 4px; margin: 24px 0 18px; overflow-x: auto; background: var(--fill); padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs a, .subtabs a { padding: 7px 14px; color: var(--ink-2); font-weight: 500; font-size: .85rem; white-space: nowrap; border-radius: 9px; }
.tabs a.on, .subtabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tabs a:hover, .subtabs a:hover { text-decoration: none; }
.subtabs { margin-top: -6px; }
.admin-stats a:hover { text-decoration: none; background: var(--fill); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border: 0; }
.table th { font-size: .74rem; font-weight: 600; color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dimmed { opacity: .5; }
.demo-box { margin-top: 40px; }
.legal h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal .table { font-size: .84rem; }

/* ---------- Pie / barra de pestañas ---------- */
.footer { padding: 36px 0 44px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer b { color: var(--ink); font-size: .9rem; }
.footer p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); }
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid aside { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .mainnav, .hide-mobile { display: none; }
  .page { padding-top: 20px; padding-bottom: calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
  section { margin-bottom: 40px; }
  .row2, .row3, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 4px; margin-bottom: 28px; }
  .search { flex-direction: column; border-radius: 24px; padding: 10px; align-items: stretch; }
  .search > .i, .search .sep { display: none; }
  .search select { background-color: var(--fill); border-radius: 14px; padding: 12px 36px 12px 14px; }
  .search .btn { width: 100%; }
  .cat-grid { grid-auto-flow: column; grid-auto-columns: 108px; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { scroll-snap-align: start; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card.pad, .pad { padding: 20px; }
  .promo { padding: 32px 24px; }
  .detail-hero { padding: 26px 22px; gap: 16px; border-radius: 24px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .auth .card { padding: 28px 20px; }
  .chat { height: calc(100dvh - 52px - var(--tabbar-h) - 44px - env(safe-area-inset-bottom)); border-radius: 18px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .64rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .tabbar a span { position: relative; line-height: 0; }
  .tabbar .i { width: 25px; height: 25px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on .i { stroke-width: 2.2; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .dot { position: absolute; top: -1px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; border: 2px solid var(--surface); }
}

@media (prefers-color-scheme: dark) {
  .tag.star { color: #ffb340; }
  .promo.dark { background: #1c1c1e; }
  .promo.warm { background: linear-gradient(160deg, #3a2515, #24170e); color: #f5f5f7; }
  .promo.warm p { color: #c7b3a3; }
  .msg.theirs { background: var(--fill); }
}


/* ---------- Fotos de Trufa y su manada (recortadas en círculo) ---------- */
.photo { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: #f3e6d6; aspect-ratio: 1; box-shadow: 0 10px 30px rgba(120, 70, 30, .18); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.photo.sm { width: 88px; }
.photo.md { width: 132px; }
.photo.lg { width: 220px; }
.photo.xl { width: min(320px, 72vw); }
.photo.center { display: block; margin: 16px auto 8px; }
.hero-photo { box-shadow: 0 24px 60px rgba(160, 90, 40, .28); animation: pop .8s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.auth-photo { display: block; margin: 0 auto 18px; }
.promo .photo { margin-bottom: 20px; }
.feature { display: flex; align-items: center; gap: 40px; padding: 40px; border-radius: 28px; }
.feature h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.page-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 6px; }
.page-head .lead { margin: 0; }
@media (max-width: 760px) {
  .feature { flex-direction: column; text-align: center; padding: 30px 22px; gap: 20px; }
  .photo.lg { width: 180px; }
  .photo.md { width: 104px; }
  .page-head { gap: 16px; }
}

/* ---------- Página para negocios / planes ---------- */
.biz-hero .actions { margin-top: 4px; }
.benefits .tile { margin-bottom: 16px; }
.benefits h3 { font-size: 1.2rem; }
.billing { display: inline-flex; background: var(--fill); padding: 4px; border-radius: 999px; gap: 2px; }
.billing button { font: inherit; font-size: .88rem; font-weight: 500; border: 0; background: transparent; color: var(--ink-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.billing .save { color: var(--ok); font-size: .75rem; font-weight: 600; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan.popular { box-shadow: 0 0 0 2px var(--accent), var(--shadow-hover); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price { margin: 18px 0 22px; }
.price b { font-size: 3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price > span { font-size: 1rem; color: var(--muted); }
.billing-note { margin-top: 6px; }
.plan-features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: .93rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .i { color: var(--ok); margin-top: 3px; stroke-width: 2.4; }
.radio-pack { display: flex; gap: 28px; align-items: center; }
.radio-pack h3 { color: #f5f5f7; }
.faq { overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 18px; margin: 0; color: var(--muted); }
.offer { display: flex; gap: 16px; align-items: center; background: linear-gradient(160deg, #fff3e6, #ffe6d5); box-shadow: none; }
@media (prefers-color-scheme: dark) { .offer { background: linear-gradient(160deg, #3a2515, #24170e); } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.popular { order: -1; } }
@media (max-width: 760px) { .radio-pack { flex-direction: column; align-items: flex-start; gap: 16px; } .price b { font-size: 2.6rem; } }

.launch { padding: 44px 40px; border-radius: 28px; text-align: left; }
.launch h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.launch-list { max-width: 620px; font-size: 1rem; }
@media (max-width: 760px) { .launch { padding: 30px 22px; } }

.phase-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.verifybar { background: linear-gradient(90deg, #ff9f45, #ff7a3d); color: #fff; font-size: .88rem; padding: 8px 0; }
.verifybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verifybar .btn { min-height: 30px; }

/* ---------- Bitcoin friendly ---------- */
.btc-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(247, 147, 26, .15); color: #f7931a; }
.btc-badge .i { width: 16px; height: 16px; }
.btc-line { color: #c46f00; font-weight: 500; }
.btc-line .i { color: #f7931a !important; }
.btc-field legend .i, .btc-filter .i { color: #f7931a; }
.filters .btc-filter > input { position: static; }
.filters .btc-filter { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; margin: 0; padding: 0 14px; border-radius: 12px; background: var(--fill); min-height: 46px; }
@media (prefers-color-scheme: dark) { .btc-line { color: #ffb14d; } }

/* ---------- Contraseñas: ojo y comprobador ---------- */
.pw-wrap { position: relative; display: block; }
.form label > .pw-wrap { margin-top: 6px; }
.pw-wrap input { padding-right: 50px; margin-top: 0 !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--fill); }
.pw-toggle:focus-visible { outline: 2px solid var(--link); }
.pw-toggle svg { width: 21px; height: 21px; }
.pw-match { display: block; font-size: .8rem; font-weight: 500; margin-top: 5px; min-height: 1em; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--bad); }

/* ---------- Razas y orientador ---------- */
a.breed-card, .breed-card { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.breed-card > div { min-width: 0; }
.breed-card h3 { margin: 0 0 2px; }
.breed-emoji { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--fill); font-size: 1.8rem; }
.breed-emoji.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 3.2rem; background: var(--surface); }
.mini-traits { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); margin: 8px 0 6px; }
.species-tabs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.species-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; transition: transform .15s var(--ease), border-color .15s; }
.species-tabs a:hover { transform: translateY(-2px); border-color: var(--accent); }
.species-tabs a.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.species-tabs span { font-size: 1.7rem; line-height: 1.1; }
.species-tabs b { font-size: .8rem; line-height: 1.15; }
.species-tabs small { font-size: .72rem; color: var(--muted); }
@media (max-width: 560px) { .species-tabs { grid-template-columns: repeat(5, 1fr); gap: 6px; } .species-tabs a { padding: 8px 2px; } .species-tabs span { font-size: 1.4rem; } .species-tabs b { font-size: .68rem; } }
.species-group { margin: 22px 0 8px; }
@media (max-width: 760px) {
  .breed-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .breed-row::-webkit-scrollbar { display: none; }
  .breed-row > .breed-card { flex: 0 0 78%; scroll-snap-align: start; padding: 14px; }
}
.species-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; font-size: 1.5rem; }
.traits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.traits li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .92rem; }
.bar { display: inline-flex; gap: 4px; }
.bar i { width: 26px; height: 8px; border-radius: 4px; background: var(--fill-2); }
.bar i.on { background: linear-gradient(90deg, #ff9f45, #ff7a3d); }
.tips li { align-items: flex-start; }
.tip-dot { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 159, 10, .18); color: #b25e00; font-size: .75rem; font-weight: 700; margin-top: 1px; }
.dl.compact { grid-template-columns: 1fr auto; }
.question { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.question:last-of-type { border: 0; margin-bottom: 16px !important; }
.question legend { font-size: 1rem; color: var(--ink); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.q-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; flex: none; }
.advisor .checks label.check:has(input:checked) { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.advisor.collapsed { margin-top: 30px; }
.match-head { display: flex; gap: 14px; align-items: center; }
.match-score { font-size: 1.6rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.adopt-note { margin-top: 16px; background: linear-gradient(160deg, #fff3e6, #ffe6d5); box-shadow: none; }
@media (prefers-color-scheme: dark) { .adopt-note { background: linear-gradient(160deg, #3a2515, #24170e); } }

/* ---------- Fotos de mascotas ---------- */
.photo-field { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.photo-pick { cursor: pointer; margin: 0 !important; }
.photo-pick .photo.lg { width: 120px; }
.photo-empty { display: grid; place-items: center; height: 100%; text-align: center; font-size: .78rem; color: var(--muted); font-weight: 500; line-height: 1.3; }
.photo-empty .i { width: 26px; height: 26px; }
.photo-preview img { transform: none; }
/* Recortador de fotos */
body.cropper-open { overflow: hidden; }
.cropper { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cropper-box { background: var(--surface); border-radius: 20px; padding: 18px; width: min(420px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center; }
.cropper-title { margin: 0 0 12px; font-weight: 700; }
.cropper-frame { position: relative; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #000; touch-action: none; cursor: grab; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.cropper-frame:active { cursor: grabbing; }
.cropper-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cropper-zoom-row { display: flex; align-items: center; gap: 10px; margin: 14px 2px 4px; }
.cropper-zoom { flex: 1; }
.cropper-hint { margin: 4px 0 0; }
.cropper-actions { display: flex; gap: 10px; margin-top: 14px; }
.cropper-actions .btn { flex: 1; }
.pet-photo { width: 64px; flex: none; }
.pet-photo img { transform: none; }

/* ---------- Perdidos y encontrados ---------- */
.btn.danger-solid { background: #d70015; color: #fff; }
.btn.danger-solid:hover { background: #b00012; }
.lost-card { overflow: hidden; }
.lost-photo { position: relative; aspect-ratio: 4 / 3; background: var(--fill); display: grid; place-items: center; overflow: hidden; }
.lost-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lost-photo.big { aspect-ratio: 16 / 11; border-radius: var(--radius) var(--radius) 0 0; }
.lost-tag { position: absolute; top: 12px; left: 12px; background: #d70015; color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.encontrado .lost-tag, .lost-card.encontrado .lost-tag { background: #248a3d; }
.lost-detail { overflow: hidden; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.lost-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.lost-strip .lost-card { flex: 0 0 220px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
@media (min-width: 1100px) { .quick { grid-template-columns: repeat(6, 1fr); } }
a.quick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; }
.quick-tile .tile { margin-bottom: 8px; font-size: 1.3rem; }
.quick-tile b { font-size: 1rem; }
.quick-tile span:last-child { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Fotos de la comunidad ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.gallery figcaption { font-size: .78rem; margin-top: 5px; line-height: 1.35; }
.biz-cover.has-photo { padding: 0; }
.biz-cover.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-cat { position: absolute; bottom: 10px; right: 10px; }
.mod-photo { overflow: hidden; }
.mod-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mod-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; margin: 8px 8px 0 0; }

/* ---------- Selector de municipio ---------- */
.muni-field { position: relative; display: block; flex: 1 1 200px; }
.form label > .muni-field { margin-top: 6px; }
.muni-field input[data-muni-input] { padding-right: 46px; margin-top: 0 !important; }
.muni-field input.muni-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--fill-2)); }
.muni-locate { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--link); cursor: pointer; display: grid; place-items: center; }
.muni-locate:hover { background: var(--fill); }
.muni-locate.busy { opacity: .4; }
.muni-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.16); padding: 6px; display: grid; max-height: 320px; overflow-y: auto; }
.muni-opt { text-align: left; font: inherit; font-size: .95rem; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; }
.muni-opt.on, .muni-opt:hover { background: var(--fill); }
.filters .muni-field input[data-muni-input] { background-color: var(--fill); border-color: transparent; }
.search .muni-field { flex: 1; min-width: 0; }
.search .muni-field input[data-muni-input] { border: 0; background: transparent; box-shadow: none; font-weight: 500; padding-left: 6px; }
@media (max-width: 760px) { .search .muni-field input[data-muni-input] { background-color: var(--fill); border-radius: 14px; padding-left: 14px; } }

/* ---------- Trufis ---------- */
.trufi-coin { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f4c677, #b8741f); color: #fff; font-weight: 800; font-size: .8em; line-height: 1; box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); vertical-align: -.15em; }
.trufi-coin.xl { width: 84px; height: 84px; font-size: 2.6rem; box-shadow: 0 14px 34px rgba(184, 116, 31, .35), inset 0 -3px 0 rgba(0,0,0,.15); }
.trufi-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--ink); font-weight: 600; font-size: .85rem; }
.trufi-pill:hover { text-decoration: none; background: var(--fill-2); }
.trufi-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 520px; margin: 10px auto 0; overflow: hidden; text-align: center; }
.trufi-balance > div { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.trufi-balance b { font-size: 1.4rem; }
.trufi-table td { vertical-align: middle; }
.trufi-icon { display: inline-block; width: 30px; }
.trufi-amount { text-align: right; font-weight: 700; color: #b8741f; font-size: 1.05rem; white-space: nowrap; }
.levels .card, .catalog .card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.levels .card.current { box-shadow: 0 0 0 2px #c8862e; }
.level-icon { font-size: 1.8rem; margin-bottom: 4px; }
.trufi-cost { margin-top: 8px; font-weight: 700; color: #b8741f; }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Ranking de tiendas ---------- */
.ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ranking li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.rank-pos { width: 36px; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.rank-body { flex: 1; display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.rank-body:hover { text-decoration: none; }
.rank-fans { display: flex; flex-direction: column; align-items: center; }
.rank-fans b { font-size: 1.3rem; color: var(--accent); }

/* ---------- Blog y podcast ---------- */
.post-card { overflow: hidden; }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--fill); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .lead-post { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; } .lead-post .post-cover { aspect-ratio: auto; min-height: 280px; } .lead-post h3 { font-size: 1.7rem; } }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 8px; }
.article-cover { width: 100%; border-radius: 22px; margin: 20px 0 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { font-size: 1.08rem; line-height: 1.7; }
.article-body h2 { margin-top: 1.6em; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin: 18px 0; padding: 14px 18px; background: var(--fill); border-radius: 14px; font-weight: 500; }
.episode-row { display: flex; gap: 16px; align-items: center; }
.ep-num { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #ff9f45, #ff7a3d); color: #fff; font-weight: 700; }
.play-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--accent); }
.player { margin: 18px 0; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }

/* ---------- Mapa en vivo ---------- */
.map-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.map-toggles .chip { cursor: pointer; }
.map-toggles input { width: 14px; height: 14px; }
#map { height: min(68vh, 640px); min-height: 380px; overflow: hidden; z-index: 1; }
/* Controles flotando sobre el mapa (estilo Waze) */
.map-wrap { position: relative; }
.map-fabs { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 900; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 10px; pointer-events: none; }
.map-fabs > * { pointer-events: auto; }
.map-fabs .btn { box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.map-sheet { position: absolute; left: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); z-index: 1000; max-height: calc(100% - 20px); overflow-y: auto; margin: 0 !important; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.map-actions { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.map-pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); font-size: 18px; border: 2px solid #fff; }
.map-pin.danger { background: #ffe5e5; border-color: #d70015; }
.map-pin.place { width: 30px; height: 30px; font-size: 15px; }
.map-pin.lost { background: #fff0f0; }
.map-pin.draft { background: var(--accent); color: #fff; font-weight: 700; }
.alert-sheet { margin-bottom: 14px; }
.alert-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.alert-type { display: flex !important; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fill); cursor: pointer; font-size: .85rem !important; margin: 0 !important; }
.alert-type input { position: absolute; opacity: 0; }
.alert-type span { font-size: 1.3rem; }
.alert-type:has(input:checked) { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.alert-type.danger:has(input:checked) { background: rgba(215, 0, 21, .1); box-shadow: inset 0 0 0 2px #d70015; }
.leaflet-popup-content { font-family: inherit; font-size: .9rem; }
.leaflet-popup-content .btn { min-height: 30px; padding: 4px 10px; font-size: .8rem; margin-top: 4px; }

/* ---------- Menú “Más” y accesos rápidos en móvil ---------- */
.navmore { position: relative; }
.navmore summary { list-style: none; cursor: pointer; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: .84rem; }
.navmore summary::-webkit-details-marker { display: none; }
.navmore summary::after { content: " ▾"; font-size: .7em; }
.navmore[open] summary { background: var(--fill); color: var(--ink); }
.navmore-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 6px; display: grid; z-index: 50; box-shadow: 0 12px 40px rgba(0,0,0,.16); }
.navmore-menu a { padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .9rem; }
.navmore-menu a:hover { background: var(--fill); text-decoration: none; }
@media (max-width: 760px) {
  .quick { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  a.quick-tile { padding: 12px 8px; align-items: center; text-align: center; }
  .quick-tile .tile { width: 40px; height: 40px; margin-bottom: 4px; }
  .quick-tile b { font-size: .8rem; }
  .quick-tile span:last-child { display: none; }
}

/* ---------- Viajar ---------- */
.travel-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 4px 0; }
.checklist label.check:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.travel-dest { margin-bottom: 16px; background: var(--ok-soft); box-shadow: none; }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(4, 1fr) !important; } .quick-tile b { font-size: .72rem; } .quick-tile .tile { width: 36px; height: 36px; font-size: 1.1rem; } }
@media print { .topbar, .tabbar, .footer, .travel-form, .hero, .actions, .adminbar, .verifybar { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ddd; } }

/* ---------- Rutas ---------- */
.route-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); margin: 6px 0 4px; }
.route-stats.big { font-size: 1.05rem; margin: 10px 0; }
.route-stats b { font-size: 1.15em; color: var(--accent); }
#routes-map, #route-map, #draw-map { z-index: 1; }

/* ---------- Ahora mismo ---------- */
.now-here { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin: 12px 0 4px; background: var(--ok-soft); border-radius: 12px; font-size: .9rem; }
.map-pin.now { background: #e5f5ea; border-color: #34c759; }
.now-banner { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 18px; color: var(--ink); font-size: .95rem; }
.now-banner:hover { text-decoration: none; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

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

/* Condiciones de estancia */
.peso-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.inline-input { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; white-space: nowrap; }
.inline-input input { width: 84px; margin: 0; text-align: center; }
.estancia-fields + [data-lodging-only] { margin-top: 4px; }
.stay-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.stay-facts li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fill, rgba(120,120,128,.12)); font-weight: 500; font-size: 15px; }
.stay-facts li.warn { opacity: .85; }
.stay-ask { margin-top: 12px; }
.weight-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,122,61,.14); color: var(--accent, #ff7a3d); white-space: nowrap; }
.peso-filter input { width: 70px; }

/* Avisos al móvil */
.push-box { padding: 14px; border-radius: 14px; background: var(--fill); }
.push-box .actions { margin-top: 8px; }
.push-status { margin: 0; font-weight: 500; }

/* Redes sociales en el pie */
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fill, rgba(120,120,128,.12)); color: var(--ink); transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--accent, #ff7a3d); color: #fff; text-decoration: none; }

/* Autocompletado de razas (ficha de mascota) */
.breed-ac { position: relative; display: block; }
.breed-ac-list { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--card, #fff); border: 1px solid var(--line, rgba(120,120,128,.25)); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18); max-height: 260px; overflow-y: auto; }
.breed-ac-list li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.breed-ac-list li:hover, .breed-ac-list li.on { background: var(--fill, rgba(120,120,128,.14)); }

/* Mapa: botón "centrar en mí" y aviso de ubicación */
.map-locate-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #fff; color: #1d1d1f;
  font-size: 20px; line-height: 40px; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.map-locate-btn:hover { background: #f2f2f4; }
.map-locate-btn.loading { opacity: .6; pointer-events: none; }
.map-geo-notice { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 10px; max-width: 92%; padding: 8px 12px; border-radius: 12px;
  background: rgba(20,20,22,.92); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.map-geo-notice .btn { white-space: nowrap; }

/* Añadir sitio: vista previa del mapa y estado del enlace */
.place-preview { margin: 4px 0 10px; }
#place-map { height: 220px; border-radius: 12px; border: 1px solid var(--line, rgba(120,120,128,.25)); }
.resolve-status { margin: 2px 0 8px; min-height: 1em; }
.resolve-status.ok { color: var(--ok, #248a3d); }
.resolve-status.err { color: var(--bad, #d70015); }

/* Avatar por defecto de la mascota (emoji tintado por especie) */
.pet-emoji { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:50%;
  background:#f0ece7; font-size:1.8rem; line-height:1; flex-shrink:0; }

/* ---------- Protectoras y asociaciones ---------- */
.type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-weight: 600; }
.type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 8px; }
.form label.type-option { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--fill-2); border-radius: 14px; cursor: pointer; color: var(--ink); }
.form label.type-option:has(input:checked) { border-color: var(--accent); background: rgba(255, 122, 61, .08); }
.type-option input { margin-top: 3px; }
.type-option span { display: grid; gap: 2px; }
.type-option small { color: var(--muted); font-weight: 400; font-size: .8rem; line-height: 1.35; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-bottom: 6px; }
.form label.check-chip { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--ink); font-weight: 400; font-size: .9rem; line-height: 1.35; cursor: pointer; }
.form label.check-chip:has(input:checked) { background: rgba(255, 122, 61, .12); }
.check-chip input { margin-top: 1px; }
.needs-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.need-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--fill); }
.need-row:has(.need-urgent input:checked) { background: var(--bad-soft); }
.form .need-row label { margin: 0; color: var(--ink); font-weight: 400; }
.need-check { display: flex; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; cursor: pointer; }
.need-urgent { display: inline-flex; gap: 5px; align-items: center; flex: none; font-size: .76rem !important; color: var(--bad) !important; font-weight: 600 !important; cursor: pointer; }
.need-urgent input { width: 15px; height: 15px; accent-color: var(--bad); }
.chip.need-chip { background: rgba(255, 122, 61, .12); color: var(--ink); }
.chip.need-chip.urgent { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.needs-box { border: 1px solid rgba(255, 122, 61, .35); }
.needs-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--fill); }
.entity-head h1 { margin: 6px 0 8px; }
.entity-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: 18px; align-items: start; }
.entity-main, .entity-side { display: grid; gap: 18px; min-width: 0; }
.entity-main > section, .entity-side > section { margin: 0; }
.donate-box { border: 1px solid var(--ok-soft); }
.donate-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--fill); font-size: .9rem; }
.donate-line span { min-width: 0; overflow-wrap: anywhere; }
.btn.teaming-btn { background: #e6007e; color: #fff; }
code.break { word-break: break-all; }
.help-menu { position: relative; }
.help-menu summary { list-style: none; }
.help-menu summary::-webkit-details-marker { display: none; }
.help-menu-list { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 6px; display: grid; z-index: 50; box-shadow: 0 12px 40px rgba(0,0,0,.16); }
.help-menu-list a { padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .92rem; }
.help-menu-list a:hover { background: var(--fill); text-decoration: none; }
.help-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.help-way { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--ink); font-weight: 600; font-size: .92rem; }
.help-way span { font-size: 1.3rem; }
.help-way:hover { text-decoration: none; background: var(--fill-2); }
.help-way.on { background: var(--accent); color: #fff; }
.help-finder { margin-bottom: 14px; }
.help-section { margin-top: 32px; }
.entity-card h3 { margin: 6px 0 4px; }
.entity-card:hover { text-decoration: none; }
@media (max-width: 900px) { .entity-grid { grid-template-columns: 1fr; } }
.form .need-row .need-check { display: flex; }
.form .need-row .need-urgent { display: inline-flex; }
.form .need-row label > input, .form label.check-chip > input { margin-top: 0; }
.form label.check-chip { align-items: center; }
.form label.type-option > input { margin-top: 3px; }

/* ---------- Menú del móvil ---------- */
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .topbar-inner { gap: 8px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: var(--fill); }
  .mobile-menu-panel { position: fixed; left: 10px; right: 10px; top: calc(52px + env(safe-area-inset-top) + 6px); z-index: 60; max-height: calc(100dvh - 52px - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px); overflow-y: auto; padding: 6px 10px 12px; box-shadow: 0 16px 50px rgba(0, 0, 0, .28); }
  .mm-title { margin: 12px 4px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mm-grid a { display: flex; align-items: center; min-height: 46px; padding: 8px 10px; border-radius: 12px; background: var(--fill); color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.25; }
  .mm-grid a:hover { text-decoration: none; background: var(--fill-2); }
}
.map-pin.entity { background: #fff4ec; border-color: var(--accent); }
.map-needs { margin-top: 4px; font-size: .8rem; line-height: 1.45; }
.map-needs.urgent { color: #d70015; font-weight: 600; }

/* ---------- Radio y vídeos recomendados ---------- */
.media-cover, .video-thumb { position: relative; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; font-size: 2.6rem; background: linear-gradient(135deg, #ff9a5a, #e8672a); color: #fff; text-align: center; padding: 10px; }
.media-placeholder small { font-size: .85rem; font-weight: 600; max-width: 90%; line-height: 1.3; }
.video-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; padding-left: 3px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { overflow: hidden; }
.video-card:hover { text-decoration: none; }
.video-thumb { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-dur { position: absolute; left: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; font-weight: 600; }
.video-card h3 { font-size: 1rem; margin: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-embed { aspect-ratio: 560 / 315; }

/* ---------- Página de podcast, radio y vídeos ---------- */
.listen-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.listen-hero h1 { margin-bottom: 6px; }
.media-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.media-tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 110px; padding: 20px 22px; border-radius: var(--radius); color: #fff; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.media-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.media-tile::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.tile-podcast { background: linear-gradient(135deg, #ffa25c, #e8612a); }
.tile-radio { background: linear-gradient(135deg, #2bc4b4, #0f766e); }
.tile-video { background: linear-gradient(135deg, #fb6f8a, #c0264b); }
.mt-icon { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .2); font-size: 1.9rem; }
.mt-text { display: grid; gap: 2px; position: relative; z-index: 1; }
.mt-text b { font-size: 1.12rem; letter-spacing: -.01em; }
.mt-text small { font-size: .86rem; opacity: .9; }
.mt-arrow { margin-left: auto; font-size: 1.3rem; position: relative; z-index: 1; }
.soon-card { display: flex; align-items: center; gap: 18px; }
.soon-icon { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(160deg, #ff9f45, #ff7a3d); font-size: 2rem; }
@media (max-width: 760px) {
  .media-tiles { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .media-tile { min-height: 84px; padding: 16px 18px; }
  .mt-icon { width: 50px; height: 50px; font-size: 1.6rem; }
  .listen-hero { gap: 16px; }
}
@media (max-width: 760px) {
  .teaser-row { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .teaser-row::-webkit-scrollbar { display: none; }
  .teaser-row > * { scroll-snap-align: start; }
}

/* ---------- Publicidad (banners, robapáginas, doble robapáginas) ---------- */
.ad { position: relative; margin: 0 auto 22px; width: 100%; }
.ad > a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.ad img { display: block; width: 100%; height: auto; object-fit: cover; }
.ad-label { display: block; margin: 0 4px 3px; text-align: right; font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.ad-banner { max-width: 728px; }
.ad-banner img { aspect-ratio: 728 / 90; }
@media (max-width: 640px) { .ad-banner.ad-has-mobile img { aspect-ratio: 32 / 10; } }
.ad-robapaginas { max-width: 300px; }
.ad-robapaginas img { aspect-ratio: 6 / 5; }
.ad-doble { max-width: 300px; }
.ad-doble img { aspect-ratio: 1 / 2; }
/* Dentro de un listado ocupa una celda (el doble, el alto de dos fichas). */
.grid > .ad { margin: 0; max-width: 300px; justify-self: center; align-self: start; }
.grid > .ad-doble { grid-row: span 2; }
.ad-bottom { display: flex; justify-content: center; margin-top: 30px; }
.ad-bottom .ad { margin: 0; }
/* Hueco libre: invita a anunciarse, sin molestar. */
.ad-empty > a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; min-height: 68px; border: 1.5px dashed var(--fill-2); background: var(--fill); box-shadow: none; color: var(--muted); text-decoration: none; transition: border-color .2s var(--ease); }
.ad-empty > a:hover { border-color: var(--accent); text-decoration: none; }
.ad-empty.ad-robapaginas > a, .ad-empty.ad-doble > a { aspect-ratio: 6 / 5; flex-direction: column; text-align: center; }
.ad-empty b { display: block; color: var(--ink); }
.ad-empty-sub { display: block; font-size: .85rem; color: var(--accent-ink); }
.ad-empty-icon { font-size: 1.5rem; }
/* Destacados de Tiendas */
.featured-ads { margin: 6px auto 26px; max-width: 728px; }
.featured-ads-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.featured-ads-head h2 { margin: 0; font-size: 1.15rem; }
.ad-featured { display: grid; gap: 12px; }
.ad-featured .ad { margin: 0; }
.ad-carousel { grid-auto-flow: column; grid-auto-columns: 100%; align-items: start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; transition: height .3s var(--ease); }
.ad-carousel::-webkit-scrollbar { display: none; }
.ad-carousel .ad { scroll-snap-align: start; }
.ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.ad-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--fill-2); cursor: pointer; }
.ad-dots button.on { background: var(--accent); }

/* Página para anunciantes */
.ads-hero { text-align: center; max-width: 760px; margin: 10px auto 40px; }
.ads-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -.025em; margin: 6px 0 12px; }
.ads-stats { margin-top: 28px; }
.ads-formats-grid, .ads-sections-grid { margin-bottom: 36px; }
.ad-format-card h3 { margin: 14px 0 6px; }
.ad-mock { display: grid; place-items: center; margin: 0 auto; border: 1.5px dashed var(--accent); border-radius: 10px; background: linear-gradient(135deg, rgba(255, 122, 61, .12), rgba(255, 122, 61, .04)); color: var(--accent-ink); font-weight: 600; font-size: .8rem; }
.ad-mock-banner { width: 100%; aspect-ratio: 728 / 90; margin-top: 52px; margin-bottom: 52px; }
.ad-mock-robapaginas { width: 62%; aspect-ratio: 6 / 5; margin-top: 18px; margin-bottom: 18px; }
.ad-mock-doble { width: 30%; aspect-ratio: 1 / 2; }
.ad-section-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.ad-section-card p { margin: 0; }
.ad-section-card.is-selected { box-shadow: 0 0 0 2px var(--accent) inset; }
.ads-why { margin-top: 8px; }

/* Panel: formulario y lista de anuncios */
.ad-form .ad-picks { display: grid; gap: 18px; margin-bottom: 18px; }
.ad-form .photo-field { display: block; margin: 0; }
.ad-form .photo-pick { display: block; }
.ad-form .photo-field p { margin: 6px 0 0; }
.ad-form > .photo-field { margin-bottom: 18px; }
.ad-preview { display: grid; place-items: center; width: 100%; max-width: 560px; border-radius: 12px; overflow: hidden; background: var(--fill); border: 1.5px dashed var(--fill-2); cursor: pointer; }
.ad-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-form .ad-formats .check { align-items: baseline; }
.ad-provinces { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--fill); max-height: 260px; overflow: auto; }
.ad-provinces .checks, .ad-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.ad-thumb { display: block; border-radius: 6px; object-fit: cover; }
.ad-thumb-banner { width: 120px; aspect-ratio: 728 / 90; }
.ad-thumb-robapaginas { width: 60px; aspect-ratio: 6 / 5; }
.ad-thumb-doble { width: 36px; aspect-ratio: 1 / 2; }
.ad-table td { vertical-align: middle; }
.ad-table td:first-child { min-width: 132px; }
.ad-table .ad-thumb { max-width: none; }
.ad-table td:nth-last-child(2) { white-space: nowrap; }

/* ---------- El diario de Trufa (blog y pie) ---------- */
.diario-card { display: flex; gap: 18px; align-items: center; padding: 18px 22px; margin: 4px 0 24px; background: linear-gradient(135deg, #fff4ec, #fde8f2); box-shadow: none; }
.diario-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff; }
.diario-body h2 { margin: 0 0 4px; font-size: 1.2rem; }
.diario-body p { margin: 0 0 12px; color: #6e5a4a; }
.diario-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.diario-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.diario-actions .btn span { opacity: .75; font-weight: 400; }
.diario-tiktok { background: #000; color: #fff; }
.diario-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); color: #fff; }
.diario-tiktok:hover, .diario-instagram:hover { color: #fff; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) {
  .diario-card { background: linear-gradient(135deg, #3a2515, #3a1730); }
  .diario-body p { color: #c9b8ad; }
  .diario-photo { box-shadow: 0 0 0 3px #2c2c2e; }
}
@media (max-width: 560px) {
  .diario-card { flex-direction: column; text-align: center; }
  .diario-actions { justify-content: center; }
  .diario-actions .btn span { display: none; }
}
.footer-diario { margin-top: 14px; }
.footer-diario > span { display: block; margin-bottom: 6px; color: var(--muted); }

/* ---------- Chollos de la manada ---------- */
.chollos-hero { text-align: center; max-width: 760px; margin: 8px auto 22px; }
.chollos-hero h1 { margin: 6px 0 10px; }
.chollo-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; }
.chollo-stores .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chollo-stores .chip img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.chollo-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.chollo { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.chollo.is-featured { box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.chollo h3 { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.3; }
.chollo p { margin: 0; }
.chollo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chollo-valor { flex: none; min-width: 74px; padding: 10px 12px; border-radius: 14px; text-align: center; font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: #fff; background: linear-gradient(135deg, #ff7a3d, #ff4f6d); }
.chollo-store { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.chollo-store img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; background: #fff; }
.chollo-store > div { display: flex; flex-direction: column; min-width: 0; }
.chollo-store a { color: inherit; }
.chollo { position: relative; }
.chollo-star { position: absolute; top: -9px; right: 14px; padding: 2px 10px; border-radius: 980px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--accent); }
.chollo-grid { margin-top: 10px; row-gap: 22px; }
.chollo-valid { color: var(--muted); }
.chollo-cond summary { cursor: pointer; color: var(--link); }
.chollo-cond p { margin-top: 6px; white-space: pre-line; }
.chollo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.chollo-code { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1.5px dashed var(--accent); border-radius: 12px; background: var(--fill); transition: background .2s var(--ease); }
.chollo-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 1rem; letter-spacing: .04em; user-select: all; }
.chollo-code.is-copied { background: rgba(52, 199, 89, .15); border-color: #34c759; }
.chollo-nocode { flex: 1 1 100%; }
.chollo-aff { font-size: .72rem; margin-top: 2px !important; }
.chollos-how { margin-top: 26px; }
.chollos-how h3 { margin: 0 0 6px; font-size: 1rem; }
.chollos-soon { text-align: center; max-width: 640px; margin: 10px auto 0; }
.chollos-soon-icon { font-size: 2.6rem; }
.chollos-soon h2 { margin: 6px 0 8px; }
.chollos-legal { margin-top: 18px; }
.chollos-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 22px; text-decoration: none; color: inherit; }
.chollos-strip > span:first-child { font-size: 1.6rem; }
.chollos-strip-go { margin-left: auto; color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.chollos-strip:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.chollo-store-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.chollo-store-head h1 { margin: 0 0 4px; }
.chollo-store-head .btn { margin-left: auto; }
.chollo-store-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #fff; flex: none; }
.chollo-store-initial { display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff7a3d, #ff4f6d); }
.negocio-chollos code { font-weight: 700; }
.chollo-table td:nth-child(2) { min-width: 230px; }
.chollo-table td:first-child { min-width: 110px; }
.label-like { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
@media (max-width: 640px) {
  .chollo-store-head .btn { margin-left: 0; width: 100%; }
  .chollo-actions .btn.ghost { flex: 1; text-align: center; }
}

/* ---------- Guía de razas con fotos ---------- */
a.breed-card, .breed-card { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.breed-photo { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fill); }
.breed-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .3s var(--ease); }
a.breed-card:hover .breed-photo img { transform: scale(1.04); }
.breed-photo-emoji { display: grid; place-items: center; font-size: 3.4rem; }
.breed-card-body { padding: 14px 16px 16px; min-width: 0; }
.breed-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 760px) { .breed-row > .breed-card { flex: 0 0 66%; padding: 0; } }
@media (max-width: 560px) {
  .breed-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .breed-filters input[type=search], .breed-filters .btn, .breed-filters > a { grid-column: 1 / -1; }
  .breed-filters > a { text-align: center; }
  .breed-filters select { min-width: 0; }
  .breed-filters select:last-of-type:nth-of-type(odd) + .btn { grid-column: auto; }
  .breed-grid:not(.breed-row) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .breed-grid:not(.breed-row) .breed-card-body { padding: 10px 12px 12px; }
  .breed-grid:not(.breed-row) .breed-card h3 { font-size: 1rem; }
  .breed-grid:not(.breed-row) .mini-traits { flex-wrap: wrap; gap: 4px 8px; font-size: .75rem; }
}
@media (min-width: 761px) { .breed-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .breed-row > .breed-card:nth-child(n+5) { display: none; } }
.breed-collections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.breed-collections .chip { text-decoration: none; }
.breed-collections .chip.on { background: var(--accent); color: #fff; }
.breed-filters { flex-wrap: wrap; }
.breed-hero.has-photo { align-items: stretch; }
.breed-hero-photo { flex: 0 0 42%; max-width: 440px; margin: 0; }
.breed-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; box-shadow: var(--shadow); }
.breed-hero-photo + div { align-self: center; }
.photo-credit { margin: 6px 2px 0 !important; font-size: .7rem; color: var(--muted) !important; line-height: 1.35; }
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--fill-2); }
.breed-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.breed-gallery figure { margin: 0; }
.breed-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.breed-thumb { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.credits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.credits-item h3 { margin: 0 0 6px; }
.credits-item li { margin: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .breed-hero.has-photo { flex-direction: column; padding: 18px; }
  .breed-hero-photo { flex: none; max-width: none; width: 100%; }
}
