:root {
  --cream: #fbf6ee;
  --sand: #f3e9d9;
  --sand-2: #ecdfca;
  --ink: #23201c;
  --muted: #6b6259;
  --forest: #1f3d34;
  --forest-2: #2d5a4c;
  --forest-3: #3f7563;
  --accent: #c24e18;
  --accent-dark: #a8410f;
  --gold: #f2b84b;
  --white: #fff;
  --line: #e7dccb;

  --radius: 22px;
  --elev-1: 0 1px 3px rgba(35, 32, 28, .08);
  --elev-2: 0 6px 16px rgba(35, 32, 28, .08);
  --elev-3: 0 14px 34px rgba(35, 32, 28, .12);
  --elev-4: 0 26px 60px rgba(35, 32, 28, .2);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 520ms;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--inline { vertical-align: -.2em; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 800;
  font-size: .78rem; color: var(--accent-dark); margin: 0 0 .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.hand { font-family: var(--font-hand); font-weight: 700; color: var(--accent-dark); line-height: 1; margin: 0; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-med), color var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.btn .i { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px -8px rgba(224, 102, 47, .7); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 12px 26px -8px rgba(185, 76, 24, .7); }
.btn--dark { background: var(--forest); color: var(--white); }
.btn--dark:hover { background: var(--forest-2); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--wa { background: #15803d; color: var(--white); }
.btn--wa:hover { background: #116632; }
.btn--light { background: var(--white); color: var(--accent-dark); }
.btn--light:hover { background: var(--cream); }
.link-btn { display: inline-flex; align-items: center; gap: .3em; background: none; border: 0; padding: .3em 0; min-height: 44px; color: var(--accent-dark); font-weight: 800; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--white); color: var(--ink); box-shadow: var(--elev-2);
  transition: transform var(--t-fast) var(--ease-back), box-shadow var(--t-med), background-color var(--t-med), color var(--t-med);
}
.round:hover { transform: translateY(-2px) scale(1.06); box-shadow: var(--elev-3); }
.round:active { transform: scale(.92); }

/* ---------- barra de progreso ---------- */

/* ---------- barra superior / cabecera ---------- */
.topbar { background: var(--ink); color: #e9e1d4; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; }
.topbar__msg { display: inline-flex; align-items: center; gap: .5em; }
.topbar__msg .i { color: var(--gold); }
.topbar__links { display: flex; gap: 1.1rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; font-weight: 700; transition: color var(--t-fast); }
.topbar a:hover { color: var(--gold); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(31, 61, 52, .96); color: var(--white); backdrop-filter: saturate(160%) blur(10px); transition: box-shadow var(--t-med); }
.header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; transition: min-height var(--t-med) var(--ease-out); }
.header.is-scrolled .header__inner { min-height: 62px; }
.logo img { height: 54px; width: auto; transition: height var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-back); }
.header.is-scrolled .logo img { height: 44px; }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > a:not(.btn) { position: relative; text-decoration: none; font-weight: 700; padding: .4em 0; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out); }
.nav > a:not(.btn):hover::after, .nav > a.is-current::after { transform: scaleX(1); transform-origin: left; }
.fav-pill { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; padding: 0 .9em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: var(--white); font-weight: 800; transition: background-color var(--t-med), border-color var(--t-med); }
.fav-pill:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.fav-pill.has-favs .i { fill: var(--accent); stroke: var(--accent); }
.fav-pill.bump { animation: bump .45s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.25); } }
.burger { display: none; background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; }
.burger__lines { position: relative; display: block; width: 22px; height: 16px; }
.burger__lines > span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--white); border-radius: 3px; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.burger__lines > span:nth-child(1) { top: 0; }
.burger__lines > span:nth-child(2) { top: 6.75px; }
.burger__lines > span:nth-child(3) { top: 13.5px; }
.burger[aria-expanded="true"] .burger__lines > span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines > span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines > span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5rem, 9vw, 7rem); background: var(--cream); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero__blob--1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #fcd2b6; }
.hero__blob--2 { width: 380px; height: 380px; left: -140px; bottom: -120px; background: #cfe5da; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; }
.hero__title em { position: relative; font-style: italic; color: var(--accent); white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .16em; background: var(--gold); opacity: .5; border-radius: 999px; z-index: -1; transform-origin: left; animation: underline 1s .9s var(--ease-out) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero__title .w { display: inline-block; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.hero__ctas .btn--ghost { color: var(--forest); }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero__stats li { display: grid; }
.hero__stats strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--forest); line-height: 1; font-variant-numeric: tabular-nums; }

/* baraja */
.deck-wrap { position: relative; display: grid; justify-items: center; gap: 1.4rem; }
.hand--deck { position: absolute; right: calc(50% + min(180px, 41vw) + 8px); top: 16%; width: max-content; font-size: 1.7rem; text-align: right; transform: rotate(-8deg); z-index: 5; display: flex; flex-direction: column; align-items: flex-end; }
.hand__arrow { width: 60px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(18deg); margin-right: -14px; }
.deck { position: relative; width: min(360px, 82vw); aspect-ratio: 3 / 4; perspective: 1200px; touch-action: pan-y; }
.deck__card {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--sand);
  box-shadow: var(--elev-4); user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow);
  will-change: transform;
}
.deck__card:active { cursor: grabbing; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__card[data-pos="1"] { transform: translateY(14px) scale(.95) rotate(3deg); }
.deck__card[data-pos="2"] { transform: translateY(28px) scale(.9) rotate(-4deg); }
.deck__card[data-pos="3"] { transform: translateY(40px) scale(.86); opacity: 0; }
.deck__card.is-dragging { transition: none; }
.deck__info { position: absolute; inset: auto 0 0 0; padding: 5rem 1.4rem 1.3rem; background: linear-gradient(transparent, rgba(20, 18, 15, .82)); color: var(--white); }
.deck__info strong { display: block; font-family: var(--font-head); font-size: 2.1rem; line-height: 1; }
.deck__info span { opacity: .9; font-weight: 700; }
.deck__tag { position: absolute; top: 16px; left: 16px; }
.deck__stamp { position: absolute; top: 28px; padding: .15em .5em; border: 4px solid; border-radius: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; opacity: 0; pointer-events: none; }
.deck__stamp--like { left: 22px; color: #3fbf7f; transform: rotate(-14deg); }
.deck__stamp--next { right: 22px; color: var(--white); transform: rotate(14deg); }
.deck__actions { display: flex; gap: 1rem; align-items: center; }
.round--x { color: var(--muted); }
.round--info { width: 42px; height: 42px; color: var(--forest); }
.round--heart { width: 58px; height: 58px; background: var(--accent); color: var(--white); }
.round--heart .i { width: 1.5em; height: 1.5em; }
.round--heart:hover { background: var(--accent-dark); }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--sand); }

/* ---------- accesos rápidos ---------- */
.quick-sec { background: var(--sand); padding: .5rem 0 0; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; transform: translateY(-1.5rem); }
.quick__card {
  position: relative; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .9rem; text-align: left; min-height: 84px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--elev-2); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.quick__card:hover { transform: translateY(-5px); box-shadow: var(--elev-3); border-color: var(--accent); }
.quick__card strong { display: block; line-height: 1.25; }
.quick__card small { color: var(--muted); font-size: .85rem; line-height: 1.3; display: block; }
.quick__icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--sand); color: var(--forest); transition: transform var(--t-med) var(--ease-back); }
.quick__icon .i { width: 1.45em; height: 1.45em; }
.quick__icon--y { background: #ffeab3; color: #8a5a00; }
.quick__icon--g { background: #d6ece3; color: var(--forest); }
.quick__icon--p { background: #eadcf5; color: #4b2a66; }
.quick__card:hover .quick__icon { transform: rotate(-8deg) scale(1.08); }
.quick__go { margin-left: auto; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
.quick__card:hover .quick__go { opacity: 1; transform: none; }
.quick__card--alt { background: var(--forest); color: var(--white); border-color: var(--forest); }
.quick__card--alt small { color: #cfe0d9; }
.quick__card--alt .quick__icon { background: var(--forest-2); color: var(--gold); }
.quick__card--alt .quick__go { color: var(--gold); }

/* ---------- listado ---------- */
.adopt { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--sand); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.2rem; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p:last-child { color: var(--muted); }

.filters { position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; box-shadow: var(--elev-1); }
.tabs { position: relative; display: flex; gap: .2rem; background: var(--sand); padding: .3rem; border-radius: 999px; }
.tabs__pill { position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0; border-radius: 999px; background: var(--forest); box-shadow: var(--elev-2); transition: transform var(--t-slow) var(--ease-back), width var(--t-slow) var(--ease-out); }
.tab { position: relative; z-index: 1; border: 0; background: none; min-height: 40px; padding: 0 1.15em; border-radius: 999px; font-weight: 800; color: var(--muted); transition: color var(--t-med); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--white); }
.chips { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; border: 1.5px solid var(--line); background: var(--white); padding: 0 1em; border-radius: 999px; font-weight: 700; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-back); }
.chip:hover { border-color: var(--muted); }
.chip:active { transform: scale(.95); }
.chip.is-active { border-color: var(--accent); background: #fdeee5; color: var(--accent-dark); }
.chip--fav[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.chip--fav[aria-pressed="true"] .i { fill: currentColor; }
.search { position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: .9em; color: var(--muted); pointer-events: none; }
.search input { border: 1.5px solid var(--line); border-radius: 999px; min-height: 42px; padding: 0 1.1em 0 2.6em; font: inherit; width: 230px; background: var(--cream); transition: border-color var(--t-fast), width var(--t-med) var(--ease-out); }
.search input:focus { outline: none; border-color: var(--accent); width: 260px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 .8rem; font-weight: 800; color: var(--muted); min-height: 44px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }

/* ----- tarjeta ----- */
.card { position: relative; perspective: 900px; }
.card__frame {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--white); border-radius: 26px; padding: 10px;
  box-shadow: var(--elev-2);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-med);
}
.card:hover .card__frame { box-shadow: var(--elev-4); }
.card.is-tilting .card__frame { transition: transform 80ms linear, box-shadow var(--t-med); }

.card__media { position: relative; display: block; text-decoration: none; color: inherit; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--sand-2); aspect-ratio: 3 / 4; }
.js .card__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%) var(--sand-2); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.card__media.is-loaded::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card__media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-slow), transform 900ms var(--ease-out); }
.js .card__media:not(.is-loaded) img { opacity: 0; transform: scale(1.06); }
.card:hover .card__media img { transform: scale(1.07); }
.card__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.35), transparent 55%); opacity: 0; transition: opacity var(--t-med); mix-blend-mode: soft-light; }
.card.is-tilting .card__glare { opacity: 1; }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 15, .55)); opacity: 0; transition: opacity var(--t-med); }
.card:hover .card__shade { opacity: 1; }
.card__peek { pointer-events: none; position: absolute; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 800; font-size: .9rem; white-space: nowrap; transform: translate(-50%, 14px); opacity: 0; transition: transform var(--t-med) var(--ease-back), opacity var(--t-med); box-shadow: var(--elev-3); }
.card:hover .card__peek { transform: translate(-50%, 0); opacity: 1; }
.card__mediawrap { position: relative; }
.card__mediawrap > .badge { position: absolute; top: 12px; left: 12px; transform: translateZ(30px); pointer-events: none; }
.card__peek, .card__mediawrap > .badge { z-index: 1; }

.fav {
  position: absolute; top: 20px; right: 20px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--elev-2);
  backdrop-filter: blur(6px); transform: translateZ(40px);
  transition: transform var(--t-fast) var(--ease-back), color var(--t-fast);
}
.fav:hover { transform: translateZ(40px) scale(1.1); color: var(--accent); }
.fav:active { transform: translateZ(40px) scale(.9); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] .i { fill: currentColor; }
.fav.pop .i { animation: heartpop .5s var(--ease-back); }
@keyframes heartpop { 0% { transform: scale(1); } 30% { transform: scale(.6); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.burst { position: fixed; z-index: 120; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.card__body { padding: .9rem .6rem .4rem; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .6rem; transform: translateZ(20px); }
.card__body h3 { font-size: 1.45rem; margin: 0; }
.card__meta { display: flex; align-items: center; gap: .35em; margin: .1rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.card__meta .i { width: 1em; height: 1em; }
.card__cta { text-decoration: none; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: var(--white); transition: background-color var(--t-fast), transform var(--t-med) var(--ease-back); }
.card__cta:hover { background: var(--accent-dark); transform: rotate(-45deg) scale(1.08); }

.badge { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 800; padding: .35em .85em; border-radius: 999px; background: var(--white); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--elev-1); }
.badge--cachorro { background: #ffe7a8; color: #6b4600; }
.badge--adulto { background: #d6ece3; color: var(--forest); }
.badge--senior { background: #eadcf5; color: #4b2a66; }
.badge--new { background: var(--gold); color: var(--ink); }
.badge--new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); animation: blink 1.6s ease-in-out 3; }
@keyframes blink { 50% { opacity: .2; } }
.badge--reserved { background: var(--ink); color: var(--white); }
.badge--urgent { background: #c62f2f; color: var(--white); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty__icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: .5rem; }
.more { text-align: center; margin-top: 2.4rem; }
#more-left { opacity: .7; font-weight: 700; }

/* ---------- banda veteranos ---------- */
.band { position: relative; overflow: hidden; background: var(--accent); color: var(--white); padding: 3rem 0; }
.band__paws { position: absolute; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='11' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='20' cy='16' r='2'/%3E%3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.05Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E"); background-size: 90px; transform: rotate(-12deg) scale(1.4); }
.band__inner { position: relative; display: flex; align-items: center; gap: 2rem; }
.band__text { flex: 1; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.band p { margin: 0; max-width: 58ch; opacity: .95; }
.band__faces { display: flex; flex: none; }
.band__faces img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); margin-left: -18px; box-shadow: var(--elev-2); transition: transform var(--t-med) var(--ease-back); }
.band__faces img:first-child { margin-left: 0; }
.band__faces:hover img { transform: translateY(-6px); }
.band__faces img:nth-child(2) { transition-delay: 40ms; }
.band__faces img:nth-child(3) { transition-delay: 80ms; }

/* ---------- misión ---------- */
.mission { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.mission__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.mission__text > p { color: #4b443c; font-size: 1.06rem; }
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: .35em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14C40 4 80 4 110 10s60 6 88-4' fill='none' stroke='%23e0662f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; clip-path: inset(0 var(--draw, 0%) 0 0); transition: clip-path 900ms var(--ease-out); }
.scribble.pre::after { --draw: 100%; }
.pillars { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillars li { display: flex; gap: .85rem; font-size: .95rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.pillars li:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.pillars__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fdeee5; color: var(--accent-dark); }
.pillars strong { display: block; color: var(--ink); line-height: 1.3; margin-bottom: .15rem; }

.steps-card { position: relative; background: var(--white); border-radius: 30px; padding: 2rem 1.8rem 1.8rem; box-shadow: var(--elev-3); }
.hand--steps { position: absolute; top: -1.1rem; right: 1.6rem; font-size: 1.8rem; background: var(--gold); color: var(--ink); padding: .1em .6em .2em; border-radius: 12px; transform: rotate(4deg); }
.steps { --fill: 0; position: relative; list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.4rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill)); }
.steps li { position: relative; z-index: 1; display: flex; gap: 1rem; color: var(--muted); }
.steps strong { display: block; color: var(--ink); font-size: 1.06rem; }
.steps__n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-family: var(--font-head); transition: background-color var(--t-med), border-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-back); }
.steps li.is-on .steps__n { background: var(--forest); border-color: var(--forest); color: var(--white); transform: scale(1.08); }

/* ---------- apadrinar ---------- */
.sponsor { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--forest); color: var(--white); overflow: hidden; }
.sponsor::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; left: -200px; top: -200px; background: radial-gradient(circle, var(--forest-3), transparent 65%); opacity: .6; }
.sponsor__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sponsor p { color: #d7e6e0; font-size: 1.06rem; margin-bottom: 1.8rem; }
.sponsor .eyebrow { color: var(--gold); }
.sponsor__photos { position: relative; height: 420px; }
.sponsor__photos img { position: absolute; width: 50%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; border: 7px solid var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.sponsor__photos img:nth-child(1) { left: 0; top: 40px; rotate: -7deg; }
.sponsor__photos img:nth-child(2) { left: 25%; top: 0; z-index: 2; rotate: 2deg; }
.sponsor__photos img:nth-child(3) { right: 0; top: 70px; rotate: 8deg; }
.sponsor__heart { position: absolute; z-index: 3; left: 56%; bottom: 12px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--white); box-shadow: var(--elev-4); }
.sponsor__heart .i { width: 32px; height: 32px; fill: currentColor; animation: beat 1.4s ease-in-out 4; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

.sponsor__how { list-style: none; padding: 0; margin: -.6rem 0 1.8rem; display: grid; gap: .5rem; color: #d7e6e0; font-weight: 700; }
.sponsor__how li { display: flex; align-items: center; gap: .5em; }
.sponsor__how .i { color: var(--gold); }
.godchildren { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.godchildren__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.godchildren__title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.godchildren__title span { color: var(--gold); }
.chip--dark { background: transparent; border-color: rgba(255,255,255,.3); color: var(--white); }
.chip--dark:hover { border-color: var(--white); }
.chip--dark.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.godchildren__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.godchild { background: var(--white); color: var(--ink); border-radius: 22px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform var(--t-med) var(--ease-out); }
.godchild:hover { transform: translateY(-5px) rotate(-.6deg); }
.godchild[hidden] { display: none; }
.godchild__media { position: relative; display: block; text-decoration: none; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand-2); }
.godchild__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.godchild:hover .godchild__media img { transform: scale(1.06); }
.godchild__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20,18,15,.75)); pointer-events: none; }
.godchild__name { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--white); }
.godchild__tag { position: absolute; z-index: 1; top: 10px; left: 10px; font-size: .62rem; }
.godchild__buy { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .6rem .3rem .2rem; }
.godchild__fee { font-weight: 800; font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* ---------- tienda ---------- */
.shop { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--sand); }
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.shop__head > div:first-child { max-width: 620px; }
.shop__head p:last-child { color: var(--muted); margin-bottom: 0; }
.shop__perks { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; font-weight: 700; color: var(--forest); }
.shop__perks li { display: inline-flex; align-items: center; gap: .45em; }
.shop__perks .i { color: var(--accent); }
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.product { background: var(--white); border-radius: 26px; overflow: hidden; box-shadow: var(--elev-2); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.product:hover { transform: translateY(-4px); box-shadow: var(--elev-4); }
.product[hidden] { display: none; }
.product form { display: flex; flex-direction: column; height: 100%; }
.product__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.product:hover .product__media img { transform: scale(1.06); }
.product__cat { position: absolute; top: 12px; left: 12px; }
.product__soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(35,32,28,.55); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.product__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.product__top h3 { font-size: 1.2rem; margin: 0; line-height: 1.2; }
.product__price { flex: none; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--accent-dark); }
.product__detail { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes legend { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; padding: 0; }
.sizes__opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 .7em; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 800; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-back); }
.size:hover span { border-color: var(--muted); }
.size input:checked + span { border-color: var(--forest); background: var(--forest); color: var(--white); transform: scale(1.05); }
.size input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sizes__info { display: flex; align-items: center; gap: .4em; margin: .5rem 0 0; font-size: .82rem; color: var(--muted); min-height: 1.3em; }
.sizes__info .i { width: 1em; height: 1em; color: var(--accent); }
.product__buy { display: flex; gap: .6rem; margin-top: auto; padding-top: .3rem; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); }
.qty__btn { width: 38px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.qty__btn:hover { color: var(--accent-dark); }
.qty__btn .i { width: 1em; height: 1em; }
.qty__n { width: 30px; border: 0; background: none; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
.qty__n::-webkit-outer-spin-button, .qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__cta { flex: 1; padding-inline: 1em; }
.product__cta:disabled { background: var(--sand-2); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }

.legal-note { margin: 1.6rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.legal-note a { color: var(--accent-dark); font-weight: 700; }
.legal-note--dark { color: #b9cfc6; }
.legal-note--dark a { color: var(--gold); }

/* ---------- colabora ---------- */
.help { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.help__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.help__card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med); }
.help__card:hover { transform: translateY(-5px); box-shadow: var(--elev-3); border-color: transparent; }
.help__card h3 { font-size: 1.35rem; margin: .4rem 0 0; }
.help__card p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.help__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--forest); transition: transform var(--t-med) var(--ease-back); }
.help__icon .i { width: 1.4em; height: 1.4em; }
.help__card:hover .help__icon { transform: rotate(-8deg) scale(1.08); }
.help__card--feature { background: var(--forest); color: var(--white); border-color: var(--forest); }
.help__card--feature p { color: #d7e6e0; }
.help__card--feature .help__icon { background: var(--forest-2); color: var(--gold); }
.help__card--feature::after { content: "1€"; position: absolute; right: -6px; bottom: -28px; font-family: var(--font-head); font-weight: 800; font-size: 6.5rem; color: rgba(255,255,255,.06); pointer-events: none; }
.help__card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.help__wide-text { flex: 1 1 300px; }
.help__wide-text h3 { margin-top: 0; }
.help__wide-text p { margin: 0; }
.help__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.iban { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: 100%; padding: .7rem; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--cream); text-align: left; transition: border-color var(--t-fast), background-color var(--t-fast); }
.iban:hover { border-color: var(--accent); background: #fdf2ea; }
.iban code { font-size: .88rem; font-weight: 800; letter-spacing: .02em; word-break: break-word; }
.iban__btn { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--accent-dark); font-size: .9rem; }
.iban.is-copied { border-color: #3f9a6d; background: #eaf6ef; }
.iban.is-copied .iban__btn { color: #2c7a54; }

/* ---------- pie ---------- */
.footer { position: relative; background: var(--ink); color: #d9d0c3; padding: 4.5rem 0 1.5rem; }
.wave--top { top: -1px; bottom: auto; fill: var(--cream); }
.footer__big { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid #3a352f; }
.footer__big p { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1; color: var(--white); letter-spacing: -.02em; }
.footer__big em { color: var(--accent); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 36ch; font-size: .95rem; }
.footer h4 { color: var(--white); margin: 0 0 .8rem; font-size: 1rem; }
.footer a:not(.btn) { display: block; width: fit-content; text-decoration: none; padding: .25rem 0; transition: color var(--t-fast), transform var(--t-fast); }
.footer a:not(.btn):hover { color: var(--gold); transform: translateX(3px); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; border-top: 1px solid #3a352f; margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; }
.footer__legal a:not(.btn) { display: inline; }

/* ---------- ficha ---------- */
.sheet { border: 0; padding: 0; border-radius: 30px; width: min(960px, 100% - 24px); max-height: calc(100vh - 24px); overflow: auto; background: var(--cream); color: var(--ink); box-shadow: var(--elev-4); }
.sheet::backdrop { background: rgba(20, 18, 15, .6); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in var(--t-slow) var(--ease-out); }
.sheet.is-closing { animation: sheet-out 220ms ease-in forwards; }
.sheet[open]::backdrop { animation: fade var(--t-med) ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.sheet__body { display: grid; grid-template-columns: 1fr 1fr; }
.sheet__photo { position: relative; overflow: hidden; background: var(--sand-2); }
.sheet__photo img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.sheet__photo img.swap { animation: swap var(--t-slow) var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: scale(1.06); } }
.sheet__nav { position: absolute; top: 50%; margin-top: -24px; background: rgba(255,255,255,.9); }
.sheet__nav--prev { left: 14px; }
.sheet__nav--next { right: 14px; }
.sheet__pos { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: .25em .8em; border-radius: 999px; background: rgba(20,18,15,.6); color: var(--white); font-size: .8rem; font-weight: 800; }
.sheet__info { padding: 2.4rem 2rem 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.sheet__info > * { animation: rise var(--t-slow) var(--ease-out) both; }
.sheet__info > :nth-child(2) { animation-delay: 60ms; }
.sheet__info > :nth-child(3) { animation-delay: 100ms; }
.sheet__info > :nth-child(4) { animation-delay: 140ms; }
.sheet__info > :nth-child(5) { animation-delay: 180ms; }
.sheet__info > :nth-child(6) { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sheet__top { display: flex; align-items: center; gap: .8rem; padding-right: 56px; }
.fav--sheet { position: static; transform: none; }
.fav--sheet:hover { transform: scale(1.1); }
.fav--sheet:active { transform: scale(.9); }
.sheet__info h2 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin: .6rem 0 0; }
.hand--sheet { font-size: 1.6rem; margin: .1rem 0 1rem; transform: rotate(-2deg); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; margin: 0 0 1.2rem; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.facts dd { display: flex; align-items: center; gap: .35em; margin: 0; font-weight: 800; }
.facts dd .i { color: var(--accent); width: 1em; height: 1em; }
.sheet__info > p#sheet-story { color: #4b443c; }
.sheet__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.sheet__ctas .btn--ghost { color: var(--forest); }
.sheet__sponsor { display: contents; }
.sheet__sponsor[hidden], .sheet__ctas [hidden] { display: none; }
.sheet__ctas .btn--ghost:hover { color: var(--white); }

/* ---------- aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; display: inline-flex; align-items: center; gap: .5em; transform: translate(-50%, 140%); background: var(--ink); color: var(--white); padding: .85em 1.4em; border-radius: 999px; font-weight: 800; transition: transform var(--t-slow) var(--ease-back); z-index: 130; box-shadow: var(--elev-4); }
.toast.is-on { transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- animaciones de entrada (CSS + IntersectionObserver en main.js) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms var(--ease-out); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }
.js-anim [data-reveal-stagger]:not(.is-revealed) { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity 600ms ease, transform 600ms var(--ease-back); }
.js-anim [data-reveal-stagger].is-in:not(.is-revealed) { opacity: 1; transform: none; }
.js-anim .hero__title .w { display: inline-block; animation: word 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes word { from { opacity: 0; transform: translateY(40px) rotateX(-50deg); } }
.js-anim .deck { animation: deck-in 1s 200ms var(--ease-back) both; }
@keyframes deck-in { from { opacity: 0; transform: translateY(60px) rotate(6deg); } }
.js-anim .deck__actions { animation: rise-in 600ms 700ms var(--ease-back) both; }
.js-anim .hand--deck { animation: fade-in 600ms 1s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade-in { from { opacity: 0; } }
.js-anim .band__faces.is-in img { animation: face-pop 600ms var(--ease-back) both; }
.js-anim .band__faces.is-in img:nth-child(2) { animation-delay: 100ms; }
.js-anim .band__faces.is-in img:nth-child(3) { animation-delay: 200ms; }
@keyframes face-pop { from { transform: scale(0) rotate(-30deg); } }


/* ---------- estructura multipágina ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: .7em 1.2em; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav > a[aria-current="page"] { color: var(--gold); }
.page-first { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }
.page-first h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.footer__h { font-family: var(--font-body); color: var(--white); margin: 0 0 .8rem; font-size: 1rem; letter-spacing: 0; }

/* portada: selección de perros */
.featured { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--sand); }
.featured__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.featured__head h2 { margin: 0; }

/* portada: misión resumida */
.mission--home .mission__inner { grid-template-columns: 1fr; max-width: 980px; }
.mission--home .pillars { grid-template-columns: repeat(4, 1fr); }
.mission__more { margin-top: 1.8rem; color: var(--forest); }

/* portada: caras del adelanto de apadrinar */
.sponsor__faces { display: flex; margin: -.4rem 0 1.6rem; }
.sponsor__faces img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--forest); margin-left: -12px; box-shadow: var(--elev-2); }
.sponsor__faces img:first-child { margin-left: 0; }

/* portada: adelanto de la tienda */
.shop-teaser { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--sand); }
.shop-teaser__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.shop-teaser__text p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.6rem; }
.shop-teaser__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.shop-teaser__item { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: var(--elev-2); text-decoration: none; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.shop-teaser__item:nth-child(2) { transform: translateY(24px); }
.shop-teaser__item:hover { transform: translateY(-4px); box-shadow: var(--elev-4); }
.shop-teaser__item:nth-child(2):hover { transform: translateY(18px); }
.shop-teaser__item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.shop-teaser__item span { display: grid; gap: .1rem; padding: .7rem .9rem .9rem; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.shop-teaser__item strong { color: var(--accent-dark); font-family: var(--font-head); font-size: 1.1rem; }

/* portada: otras formas de ayudar */
.help-teaser { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem); }
.help-teaser__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.help-teaser__card { display: grid; justify-items: start; gap: .35rem; padding: 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med); }
.help-teaser__card:hover { transform: translateY(-5px); box-shadow: var(--elev-3); border-color: transparent; }
.help-teaser__card strong { font-family: var(--font-head); font-size: 1.25rem; margin-top: .4rem; }
.help-teaser__card small { color: var(--muted); font-size: .9rem; }

/* ficha propia de cada perro */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dog__inner { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 30px; overflow: hidden; box-shadow: var(--elev-3); }
.dog__photo { background: var(--sand-2); }
.dog__photo img { width: 100%; height: 100%; max-height: 720px; object-fit: cover; }
.dog__info { padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-direction: column; align-items: flex-start; }
.dog__info h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); margin: .6rem 0 0; }
.dog__story { color: #4b443c; }
.dog__info .sheet__ctas { margin-top: .6rem; }
.dog__note { text-align: left; margin-top: 1.2rem; }
.page-perro .sheet__top { padding-right: 0; }

/* adoptar: siguiente paso */
.next-step { background: var(--accent); color: var(--white); padding: 2.6rem 0; }
.next-step__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.next-step h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.next-step p { margin: 0; opacity: .95; }
.next-step .btn--light { color: var(--accent-dark); }

/* colabora: apadrinar y compartir en la misma fila */
.page-colabora .help__card--sponsor { grid-column: span 2; background: #fdeee5; border-color: #f6d4c0; }
.page-colabora .help__card--wide { grid-column: span 2; }

@media (max-width: 1080px) {
  .help-teaser__grid { grid-template-columns: 1fr 1fr; }
  .mission--home .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shop-teaser__inner { grid-template-columns: 1fr; }
  .dog__inner { grid-template-columns: 1fr; }
  .dog__photo img { max-height: 60vh; }
}
@media (max-width: 560px) {
  .help-teaser__grid, .mission--home .pillars { grid-template-columns: 1fr; }
  .shop-teaser__items { gap: .6rem; }
  .shop-teaser__item span { font-size: .75rem; padding: .5rem .6rem .6rem; }
  .page-colabora .help__card--sponsor, .page-colabora .help__card--wide { grid-column: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .help__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hand--deck { right: auto; left: 0; top: -2.6rem; }
  .filters { position: static; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .topbar { display: none; }
  .header { top: 10px; margin: 10px 12px 0; border-radius: 22px; backdrop-filter: none; background: var(--forest); box-shadow: 0 10px 28px rgba(31, 61, 52, .28); }
  .header.is-scrolled { box-shadow: 0 12px 30px rgba(31, 61, 52, .35); }
  .header__inner { width: 100%; padding: 0 10px 0 16px; min-height: 64px; }
  .header.is-scrolled .header__inner { min-height: 58px; }
  .logo img { height: 46px; }
  .header.is-scrolled .logo img { height: 42px; }
  .burger { display: inline-flex; align-items: center; gap: .55rem; padding: 0 .9rem; border-radius: 999px; color: var(--white); font-weight: 800; }
  .nav { position: fixed; top: var(--nav-top, 84px); left: 12px; right: 12px; bottom: auto; max-height: calc(100vh - var(--nav-top, 84px) - 12px); overflow: auto;
    background: var(--forest); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1rem; gap: .2rem; font-size: 1.15rem;
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; visibility: hidden;
    transition: opacity var(--t-med), transform var(--t-med) var(--ease-out), visibility 0s var(--t-med); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
  .nav > a:not(.btn):not(.fav-pill) { padding: .75rem 1rem; border-radius: 14px; }
  .nav > a:not(.btn):not(.fav-pill)::after { display: none; }
  .nav > a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
  .nav .fav-pill { align-self: stretch; justify-content: flex-start; gap: .5rem; margin: .3rem 0; padding: .75rem 1rem; min-height: 0; border-radius: 14px; border: 0; font-weight: 700; }
  .nav .fav-pill .sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .nav__cta { margin: .4rem 0 0; }
  .hero__inner, .mission__inner, .sponsor__inner, .sheet__body { grid-template-columns: 1fr; }
  .hero__text { text-align: left; }
  .deck-wrap { margin-top: 1rem; }
  .hand--deck { left: 0; top: -2.4rem; font-size: 1.45rem; }
  .hand--deck .hand__arrow { display: none; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .sponsor__photos { height: 320px; max-width: 460px; width: 100%; }
  .sheet { border-radius: 24px; }
  .sheet__photo img { min-height: 0; max-height: 50vh; aspect-ratio: 4 / 3.4; }
  .filters { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: space-between; }
  .tab { flex: 1; padding: 0 .5em; }
  .search input, .search input:focus { width: 100%; }
}
@media (max-width: 560px) {
  .topbar__msg { display: none; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; font-size: .82rem; line-height: 1.3; }
  .hero__stats strong { font-size: 2rem; margin-bottom: .2rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .topbar__inner { justify-content: flex-end; }
  .quick, .help__grid, .pillars, .footer__inner { grid-template-columns: 1fr; }
  .quick { transform: translateY(-1rem); }
  .grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card__frame { padding: 6px; border-radius: 20px; }
  .card__media { border-radius: 15px; }
  .card__body { grid-template-columns: 1fr; padding: .7rem .4rem .3rem; }
  .card__body h3 { font-size: 1.15rem; }
  .card__meta { font-size: .8rem; flex-wrap: wrap; }
  .card__cta { display: none; }
  .card__peek { display: none; }
  .fav { top: 12px; right: 12px; width: 40px; height: 40px; }
  .card__mediawrap > .badge { top: 8px; left: 8px; font-size: .62rem; }
  .sheet__info { padding: 1.6rem 1.2rem; }
  .facts { gap: .4rem; }
  .facts div { padding: .55rem .6rem; }
  .chips { justify-content: center; }
  .shop__filters { justify-content: flex-start; }
  .shop__grid { grid-template-columns: 1fr; }
  .godchildren__grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .godchild__buy { flex-direction: column; align-items: stretch; text-align: center; }
  .band__faces img { width: 60px; height: 60px; }
}
@media (hover: none) {
  .card__shade, .card__peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .card__media img { opacity: 1; transform: none; }
}
