/* ==========================================================================
   MORDIDAS · Estilos
   Sistema visual derivado del logo: círculo, banda crema, curvas de color
   y garabatos. Ritmo y tipografía inspirados en la sobriedad de Apple.
   ========================================================================== */
:root {
  /* Colores exactos del logo */
  --purple: #473170;
  --purple-2: #57408a;
  --ink: #372556;
  --ink-2: #4c3f68;
  --muted: #776d8c;
  --cream: #fffae8;
  --paper: #fcf7f1;
  --white: #ffffff;
  --coral: #f67d59;
  --coral-text: #b4401c;   /* coral oscurecido para texto: contraste AA */
  --sky: #4cbae5;
  --sun: #fdc353;
  --ok: #1d7a49;
  --hair: rgb(55 37 86 / .12);
  --veil: rgb(55 37 86 / .07);

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;

  --ease: cubic-bezier(.25, .8, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 52px;
  --wrap: 1080px;
  --side: max(20px, calc((100vw - var(--wrap)) / 2));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.47 var(--font-text);
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
sup { font-size: .6em; line-height: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; padding: 10px 16px; color: var(--cream); background: var(--ink); border-radius: 99px; }
.skip:focus { left: 12px; }
.container { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--xs { width: 12px; height: 12px; stroke-width: 2; }

.kicker { margin-bottom: 8px; font: 600 17px/1.2 var(--font-display); color: var(--coral-text); }
.kicker--light { color: var(--sun); }
.eyebrow-new { margin-bottom: 6px; font: 500 17px/1.2 var(--font-display); color: var(--coral-text); }
.section-title { font: 700 clamp(34px, 4.8vw, 56px)/1.06 var(--font-display); letter-spacing: -.03em; }
.section-sub { margin-top: 10px; font: 400 clamp(19px, 2vw, 24px)/1.3 var(--font-display); color: var(--ink-2); }

/* ---------- Botones (píldora) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 24px;
  font: 500 17px/1 var(--font-text); letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; border-radius: 980px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--primary { color: var(--cream); background: var(--purple); }
.btn--primary:hover:not(:disabled) { background: var(--purple-2); }
.btn--ghost { color: var(--purple); background: transparent; border-color: var(--purple); }
.btn--ghost:hover { color: var(--cream); background: var(--purple); }
.btn--coral { color: var(--ink); background: var(--coral); }
.btn--coral:hover { background: #ff9272; }
.btn--ghost-light { color: var(--cream); background: transparent; border-color: rgb(255 250 232 / .7); }
.btn--ghost-light:hover { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.ctas--sm { gap: 10px; margin-top: 18px; }
.ctas--left { justify-content: flex-start; }

.textlink { display: inline-flex; align-items: center; gap: 4px; padding: 0; font: 500 17px var(--font-text); color: var(--purple); background: none; border: 0; cursor: pointer; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.textlink--light { color: var(--sun); }

.round-btn { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--veil); border: 0; border-radius: 50%; cursor: pointer; transition: background .25s, opacity .25s; }
.round-btn:hover { background: rgb(55 37 86 / .14); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Navegación global ---------- */
.gnav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgb(252 247 241 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.gnav.is-scrolled { border-bottom-color: var(--hair); }
.gnav__inner { display: flex; align-items: center; gap: 24px; width: min(100% - 32px, var(--wrap)); height: 100%; margin-inline: auto; }
.gnav__logo { display: block; flex: none; }
.gnav__logo svg { width: auto; height: 17px; aspect-ratio: 183 / 28; }
.gnav__links { display: flex; gap: 24px; margin-inline: auto; }
.gnav__links a { font-size: 13px; text-decoration: none; opacity: .8; transition: opacity .2s; }
.gnav__links a:hover { opacity: 1; }
.gnav__links { align-items: center; }
.gnav__links a.gnav__buy { padding: 7px 18px; font-weight: 600; color: var(--cream); background: var(--purple); border-radius: 99px; opacity: 1; transition: background .25s, transform .25s; }
.gnav__links a.gnav__buy:hover { background: var(--ink); transform: translateY(-1px); }
.gnav__actions { display: flex; align-items: center; gap: 4px; }
.gnav__icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: 50%; cursor: pointer; opacity: .85; transition: background .2s, opacity .2s; }
.gnav__icon:hover { opacity: 1; background: var(--veil); }
.gnav__menu { display: none; }
.bag-count { position: absolute; right: 1px; bottom: 3px; min-width: 16px; height: 16px; padding: 0 4px; font: 600 10px/16px var(--font-text); text-align: center; color: var(--cream); background: var(--purple); border-radius: 99px; }
.bag-count.pop { animation: pop .5s var(--ease-out); }

.ribbon { padding: 12px 20px; font-size: 14px; text-align: center; color: var(--ink-2); background: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero__copy { padding: 0 20px; }
.hero__title { font: 700 clamp(46px, 7.6vw, 92px)/1 var(--font-display); letter-spacing: -.04em; }
.hero__sub { margin-top: 12px; font: 400 clamp(22px, 2.7vw, 32px)/1.18 var(--font-display); letter-spacing: -.015em; }

/* ---------- Escenario circular (el logo como ventana) ---------- */
.stage { position: relative; width: min(86vw, 600px); aspect-ratio: 1; margin: 48px auto 0; }
.stage__circle { position: absolute; left: 4.889%; top: 4.489%; width: 90.667%; aspect-ratio: 1; overflow: hidden; background: var(--purple); border-radius: 50%; }
.stage__photo { width: 100%; height: 100%; object-fit: cover; }
.stage__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.w, .stage__paw, .stage__leaf { transform-box: fill-box; transform-origin: center; }
.w--coral { fill: var(--coral); }
.w--sky { fill: var(--sky); }
.w--sun { fill: var(--sun); }
.stage__ring { fill: none; stroke: var(--purple); stroke-width: 2.4; }
.stage__doodle { position: absolute; z-index: 2; width: 15%; aspect-ratio: 1; color: var(--purple); animation: drift 7s ease-in-out infinite; }
.stage__doodle--a { left: -9%; top: 12%; --r: -24deg; }
.stage__doodle--b { right: -8%; bottom: 10%; --r: 10deg; animation-delay: -3s; }
.stage--feature { width: min(86vw, 540px); margin-bottom: 120px; }
.stage__specs { position: absolute; top: calc(100% + 28px); left: 0; right: 0; display: flex; justify-content: center; gap: clamp(28px, 6vw, 64px); margin: 0; padding: 0; list-style: none; }
.stage__specs strong { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--font-display); letter-spacing: -.03em; color: var(--purple); }
.stage__specs span { font-size: 14px; color: var(--muted); }

.js .stage--hero .stage__circle { animation: circleIn 1.4s var(--ease-out) .1s both; }
.js .stage--hero .w { animation: wedgeIn 1.3s var(--ease-out) .5s both; }
.js .stage--hero .w--sky { animation-delay: .62s; }
.js .stage--hero .w--sun { animation-delay: .74s; }
.js .stage--hero .stage__ring { animation: fadeIn 1s var(--ease-out) .3s both; }
.js .stage--hero .stage__paw { animation: pawIn 1s cubic-bezier(.34, 1.56, .64, 1) 1s both; }
.js .stage--hero .stage__leaf { animation: pawIn 1s cubic-bezier(.34, 1.56, .64, 1) 1.15s both; }

/* ---------- Cómo medir: dos ilustraciones y la tabla de la prenda ---------- */
.medir { padding: clamp(72px, 9vw, 120px) 0; color: var(--cream); background: var(--purple); }
.medir__head { display: grid; grid-template-columns: auto minmax(240px, 1fr); align-items: end; gap: 18px clamp(32px, 6vw, 80px); }
.medir__title { font: 800 clamp(40px, 6.6vw, 86px)/.96 var(--font-display); letter-spacing: -.045em; }
.medir__title em { display: block; font-style: normal; white-space: nowrap; color: var(--sun); }
.medir__lead { max-width: 30em; font: 400 clamp(17px, 1.6vw, 20px)/1.45 var(--font-display); color: rgb(255 250 232 / .82); }

/* Los dos perros comparten el mismo piso; el chico se ve chico */
.medir__dogs { display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 6vw, 90px); margin-top: clamp(36px, 5vw, 64px); padding: 0 clamp(0px, 4vw, 60px); border-bottom: 2px solid rgb(255 250 232 / .22); }
.medir__dog { position: relative; margin: 0; }
.medir__dog svg { display: block; width: 100%; height: auto; overflow: visible; }
.medir__dog figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 14px); font-size: 14px; text-align: center; color: rgb(255 250 232 / .65); }
.medir__dog figcaption strong { display: block; font: 700 clamp(17px, 1.7vw, 21px)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--cream); }
/* Gato y perro de "Mídelo": siluetas reales (CC0, ver assets/img/CREDITOS.md) sobre una loma de color del logo. */
.medir__dog--gato { flex: 0 1 400px; }
.medir__dog--perro { flex: 0 1 500px; }
.pet { fill: var(--cream); }
.pet-shadow { fill: var(--ink); opacity: .5; }
.pet-hill--coral { fill: var(--coral); }
.pet-hill--sky { fill: var(--sky); }
.pet-doodle { color: var(--sun); }
.cinta-b { fill: none; stroke: var(--ink); stroke-width: 13; stroke-linecap: round; }
.cinta { fill: none; stroke: var(--sun); stroke-width: 8; stroke-linecap: round; }
.cinta-t { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-dasharray: 1.3 6.2; opacity: .8; }
.cinta-capb { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.cinta-cap { fill: none; stroke: var(--sun); stroke-width: 4.5; stroke-linecap: round; }
.num circle { fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; }
.num text { font: 800 15px var(--font-display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.num { transform-box: fill-box; transform-origin: center; }
/* Al entrar en pantalla, la loma sube, la cinta se desenrolla y luego aparecen sus rayitas y los números. */
.js .medir__dogs .pet-hill { transform-box: fill-box; transform-origin: 50% 100%; scale: 1 0; transition: scale 1s var(--ease-out); }
.js .medir__dogs.is-visible .pet-hill { scale: 1 1; }
.js .medir__dogs .cinta, .js .medir__dogs .cinta-b { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.5, 0, .2, 1); }
.js .medir__dogs .cinta-t, .js .medir__dogs .cinta-cap, .js .medir__dogs .cinta-capb { opacity: 0; transition: opacity .4s; }
.js .medir__dogs .num { opacity: 0; scale: .4; transition: opacity .3s, scale .6s cubic-bezier(.34, 1.56, .64, 1); }
.js .medir__dogs .tape--1 > *, .js .medir__dogs .num--1 { transition-delay: .7s; }
.js .medir__dogs .tape--2 > *, .js .medir__dogs .num--2 { transition-delay: 1.3s; }
.js .medir__dogs .tape--3 > *, .js .medir__dogs .num--3 { transition-delay: 1.9s; }
.js .medir__dogs.is-visible .cinta, .js .medir__dogs.is-visible .cinta-b { stroke-dashoffset: 0; }
.js .medir__dogs.is-visible .cinta-t { opacity: .8; transition-delay: 2.7s; }
.js .medir__dogs.is-visible .cinta-cap, .js .medir__dogs.is-visible .cinta-capb { opacity: 1; transition-delay: 1.5s; }
.js .medir__dogs.is-visible .num { opacity: 1; scale: 1; }

.medir__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(20px, 3vw, 40px); margin: clamp(84px, 9vw, 110px) 0 0; padding: 0; list-style: none; }
.medir__steps li { display: flex; align-items: flex-start; gap: 14px; }
.medir__steps b { display: grid; place-items: center; flex: none; width: 34px; height: 34px; font: 800 17px/1 var(--font-display); color: var(--ink); background: var(--sun); border-radius: 50%; }
.medir__steps h3 { font: 700 clamp(21px, 2.2vw, 27px)/1.15 var(--font-display); letter-spacing: -.02em; }
.medir__steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgb(255 250 232 / .78); }

.medir__compare { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(28px, 6vw, 80px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgb(255 250 232 / .12); }
.medir__how h3 { font: 700 clamp(26px, 3vw, 38px)/1.08 var(--font-display); letter-spacing: -.03em; }
.medir__how p { margin-top: 14px; font: 400 clamp(17px, 1.6vw, 19px)/1.5 var(--font-display); color: rgb(255 250 232 / .85); }
.medir__how ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgb(255 250 232 / .85); }
.medir__how li { padding-left: 18px; border-left: 3px solid var(--sun); }
.medir__how .medir__fine { margin-top: 22px; font: 400 13px/1.5 var(--font-text); color: rgb(255 250 232 / .55); }

/* ---------- De cerca: la prenda real con sus partes numeradas ---------- */
/* ---------- Míralo de cerca: ficha técnica de la prenda real, con puntadas que señalan cada parte ---------- */
.cerca { position: relative; padding: clamp(80px, 10vw, 130px) 0 clamp(72px, 9vw, 112px); background: var(--cream); overflow: hidden; }
.cerca__head { text-align: center; }
.cerca__title { font: 800 clamp(42px, 6.4vw, 84px)/1 var(--font-display); letter-spacing: -.045em; color: var(--ink); }
.cerca__hand { position: relative; display: inline-block; color: var(--purple); }
.cerca__hand svg { position: absolute; left: -3%; bottom: -.17em; width: 106%; height: .3em; overflow: visible; pointer-events: none; }
.cerca__hand path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; }
.js .cerca__hand path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1) .45s; }
.js .cerca__head.is-visible .cerca__hand path { stroke-dashoffset: 0; }

.cerca__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px) minmax(0, 1fr); column-gap: clamp(20px, 3.4vw, 40px); margin-top: clamp(40px, 5vw, 66px); }
.cerca__lines { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 6; opacity: .5; transition: opacity .3s, stroke .3s; }
.cline.is-hot { stroke: var(--purple); opacity: 1; }
.cline-h { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.cline-m { fill: none; stroke: #fff; stroke-width: 10; }
.js .cline-m { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.6, 0, .2, 1); }
.js .cerca__stage.is-visible .cline-m { stroke-dashoffset: 0; }

.cerca__notes { display: contents; }
.cnote { position: relative; grid-row: 1; align-self: start; top: calc(var(--y) - 17px); display: flex; align-items: flex-start; gap: 14px; max-width: 16em; }
.cnote--l { grid-column: 1; justify-self: end; flex-direction: row-reverse; text-align: right; }
.cnote--r { grid-column: 3; justify-self: start; }
.cnote b, .cerca__dot { display: grid; place-items: center; font: 800 15px/1 var(--font-display); color: var(--ink); background: var(--sun); border: 2.5px solid var(--ink); border-radius: 50%; }
.cnote b { flex: none; width: 34px; height: 34px; transition: background .3s; }
.cnote strong { display: block; padding-top: 4px; font: 700 clamp(19px, 1.8vw, 22px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); transition: color .3s; }
.cnote span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cnote.is-hot b { background: var(--coral); }
.cnote.is-hot strong { color: var(--purple); }
.js .cerca__stage .cnote { opacity: 0; transition: opacity .7s var(--ease-out) calc(.9s + var(--i) * .25s); }
.js .cerca__stage.is-visible .cnote { opacity: 1; }

.cerca__fig { grid-column: 2; grid-row: 1; margin: 0; }
.cerca__shot { position: relative; isolation: isolate; aspect-ratio: 1; background: var(--cream); }
.cerca__shot::before, .cerca__shot::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cerca__shot::before { inset: 8%; background: #fbeccb; }
.cerca__shot::after { inset: 3%; border: 2px dashed rgb(55 37 86 / .2); }
.cerca__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(#000 84%, transparent 99%); mask-image: linear-gradient(#000 84%, transparent 99%); }
.cerca__dot { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 14px; transition: scale .55s cubic-bezier(.34, 1.56, .64, 1) calc(.5s + var(--i) * .25s), transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.cerca__dot::after { content: ""; position: absolute; inset: -2.5px; border: 2px solid var(--purple); border-radius: 50%; opacity: 0; pointer-events: none; }
.cerca__dot.is-hot { transform: scale(1.22); background: var(--coral); }
.js .cerca__stage .cerca__dot { scale: 0; }
.js .cerca__stage.is-visible .cerca__dot { scale: 1; }
.cerca__stage.is-visible .cerca__dot::after { animation: dotPing 3.2s var(--ease-out) infinite; animation-delay: calc(2.4s + var(--i) * .8s); }
@keyframes dotPing { 0% { opacity: .7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(2.1); } }
.cerca__cap { grid-column: 2; grid-row: 2; margin-top: 2px; font: 500 13px var(--font-display); text-align: center; color: var(--muted); }

.cerca__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: clamp(34px, 4.4vw, 54px); }
.cerca__price { font: 500 15px/1.1 var(--font-display); color: var(--muted); }
.cerca__price strong { display: block; margin-top: 2px; font: 800 clamp(34px, 3.6vw, 44px)/1 var(--font-display); letter-spacing: -.04em; color: var(--purple); }
.cerca__buy .btn { min-height: 58px; padding: 0 44px; font-size: 18px; }
.cerca__fine { flex-basis: 100%; font-size: 14px; line-height: 1.6; text-align: center; color: var(--muted); }
.cerca__swatches { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: -1px; }
.cerca__swatches i { width: 12px; height: 12px; background: var(--c); border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

@media (max-width: 860px) {
  .cerca__stage { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .cerca__fig { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 440px); }
  .cerca__lines { display: none; }
  .cnote, .cnote--l, .cnote--r { grid-column: auto; grid-row: auto; top: 0; justify-self: stretch; flex-direction: row; max-width: none; text-align: left; }
  .cerca__cap { grid-column: 1 / -1; grid-row: 2; margin-top: -16px; }
}
@media (max-width: 560px) {
  .cerca__stage { grid-template-columns: 1fr; gap: 20px; }
  .cnote b { width: 30px; height: 30px; font-size: 14px; }
  .cerca__buy { gap: 14px 20px; }
  .cerca__buy .btn { flex: 1 1 180px; }
}

/* ---------- Producto destacado ---------- */
.feature { padding: clamp(64px, 8vw, 100px) 0 clamp(72px, 9vw, 110px); text-align: center; background: var(--white); overflow: hidden; }
.feature__copy { padding: 0 20px; }
.feature__title { font: 700 clamp(40px, 6vw, 76px)/1.02 var(--font-display); letter-spacing: -.035em; }
.feature__sub { margin-top: 8px; font: 400 clamp(21px, 2.5vw, 30px)/1.2 var(--font-display); }

/* ---------- Tiles 2×2 ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--paper); }
.tile { position: relative; display: flex; flex-direction: column; min-height: clamp(520px, 50vw, 680px); overflow: hidden; text-align: center; color: var(--tile-fg); background: var(--tile-bg); border-radius: 28px; isolation: isolate; }
.tile__copy { position: relative; z-index: 1; padding: clamp(40px, 5vw, 56px) 24px 0; }
.tile__title { font: 700 clamp(30px, 3.4vw, 42px)/1.06 var(--font-display); letter-spacing: -.03em; }
.tile__sub { margin-top: 6px; font: 400 clamp(18px, 1.8vw, 22px)/1.25 var(--font-display); }
.tile__img {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 72%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  transition: transform 1.6s var(--ease-out);
}
.tile:hover .tile__img { transform: scale(1.04); }
.tile .btn--ghost { color: var(--tile-fg); border-color: currentColor; }
.tile .btn--ghost:hover { color: var(--tile-bg); background: var(--tile-fg); border-color: var(--tile-fg); }

/* ---------- Declaración ---------- */
.statement { padding: clamp(110px, 15vw, 200px) 0; background: var(--paper); }
.statement__text { width: min(100% - 40px, 960px); margin: 0 auto; font: 700 clamp(30px, 4.6vw, 58px)/1.14 var(--font-display); letter-spacing: -.03em; }
.statement__text .w { transition: opacity .35s linear; }
.js .statement__text .w { opacity: .14; }
.js .statement__text .w.on { opacity: 1; }

/* ---------- Navidad ---------- */
.navidad { position: relative; padding: clamp(84px, 10vw, 124px) 0 clamp(72px, 9vw, 110px); text-align: center; color: var(--cream); background: var(--purple); overflow: hidden; }
.navidad__lights { position: absolute; top: 18px; left: 0; right: 0; height: 24px; pointer-events: none; }
.navidad__lights::before, .navidad__lights::after { content: ""; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 160px 24px; animation: twinkle 2.6s ease-in-out infinite; }
.navidad__lights::before { background-image: radial-gradient(circle at 20px 12px, var(--sun) 0 4px, transparent 5px), radial-gradient(circle at 100px 12px, var(--coral) 0 4px, transparent 5px); }
.navidad__lights::after { background-image: radial-gradient(circle at 60px 12px, var(--sky) 0 4px, transparent 5px), radial-gradient(circle at 140px 12px, var(--cream) 0 4px, transparent 5px); animation-delay: -1.3s; }
.xmas-chip { display: inline-flex; margin-bottom: 18px; padding: 7px 16px; font: 600 14px var(--font-text); color: var(--sun); background: rgb(255 250 232 / .1); border-radius: 99px; }
.navidad__title { font: 800 clamp(44px, 7vw, 88px)/1 var(--font-display); letter-spacing: -.04em; }
.navidad__sub { margin-top: 12px; font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--font-display); color: rgb(255 250 232 / .85); }
.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 24px; margin-top: 48px; text-align: left; }
.navidad .ctas { margin-top: 40px; }

/* ---------- Nosotros ---------- */
.nosotros { padding: clamp(24px, 4vw, 48px) 0 clamp(96px, 11vw, 140px); background: var(--paper); }
.nosotros__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.nosotros__badge { position: relative; justify-self: center; width: min(100%, 440px); margin: 0; }
.nosotros__badge img { width: 100%; height: auto; animation: drift 9s ease-in-out infinite; --r: 0deg; }
.nosotros__badge figcaption { position: absolute; right: 2%; bottom: 10%; padding: 9px 18px; font: 600 15px var(--font-display); color: var(--ink); background: var(--white); border-radius: 99px; box-shadow: 0 14px 34px -14px rgb(30 20 50 / .35); transform: rotate(-4deg); }
.nosotros__badge figcaption strong { font-weight: 800; color: var(--purple); }
.nosotros__lead { max-width: 30em; margin-top: 20px; font: 400 clamp(19px, 1.9vw, 23px)/1.45 var(--font-display); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 40px 0 0; border-top: 1px solid var(--hair); }
.facts div { padding: 22px 16px 0 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid var(--hair); }
.facts dt { font: 700 clamp(22px, 2.3vw, 30px)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; color: var(--purple); }
.facts dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Telas ---------- */
.telas { padding: clamp(84px, 10vw, 130px) 0; background: var(--white); }
.telas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.tela { display: grid; align-content: start; gap: 10px; padding: clamp(28px, 4vw, 52px); background: var(--paper); border-radius: 28px; }
.tela__swatch { width: clamp(120px, 14vw, 172px); height: auto; margin-bottom: 18px; border-radius: 50%; box-shadow: 0 22px 44px -20px rgb(55 37 86 / .5); transition: transform 1s var(--ease-out); }
.tela:hover .tela__swatch { transform: rotate(-10deg) scale(1.04); }
.tela h3 { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.025em; }
.tela__sub { font: 500 15px var(--font-text); color: var(--purple); }
.tela p:not(.tela__sub) { max-width: 32em; color: var(--ink-2); }
.tela__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tela__tags li { padding: 6px 13px; font-size: 13px; color: var(--ink-2); background: var(--white); border-radius: 99px; }

/* ---------- Sorpresas ---------- */
.sorpresas { padding: clamp(84px, 10vw, 130px) 0; background: var(--cream); }
.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.gift { position: relative; }
.gift .card { height: 100%; animation: none; }
.gift__wrap {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 0 16px 30px; overflow: hidden; color: var(--gt, var(--cream));
  background: var(--g); border: 0; border-radius: 24px; cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.gift__wrap:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 24px 50px -20px rgb(30 20 50 / .45); }
.gift__doodle { position: absolute; top: 46%; left: 8%; width: 62%; aspect-ratio: 1; color: rgb(255 250 232 / .16); transform: rotate(-18deg); }
.gift__ribbon {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 11px), var(--cream) calc(50% - 11px), var(--cream) calc(50% + 11px), transparent calc(50% + 11px)),
    linear-gradient(180deg, transparent calc(40% - 11px), var(--cream) calc(40% - 11px), var(--cream) calc(40% + 11px), transparent calc(40% + 11px));
}
.gift__ribbon::before, .gift__ribbon::after { content: ""; position: absolute; top: calc(40% - 46px); width: 60px; height: 44px; border: 10px solid var(--cream); border-radius: 50%; }
.gift__ribbon::before { left: calc(50% - 62px); transform: rotate(-24deg); }
.gift__ribbon::after { left: calc(50% + 2px); transform: rotate(24deg); }
.gift__knot { position: absolute; top: calc(40% - 15px); left: calc(50% - 15px); width: 30px; height: 30px; background: var(--cream); border-radius: 10px; box-shadow: 0 0 0 3px rgb(0 0 0 / .06); }
.gift__tag { position: relative; display: grid; gap: 2px; padding: 14px 20px 12px; text-align: center; color: var(--ink); background: var(--white); border-radius: 14px; box-shadow: 0 14px 28px -14px rgb(20 10 40 / .45); transform: rotate(-3deg); transition: transform .45s var(--ease-out); }
.gift__tag::before { content: ""; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: var(--g); border-radius: 50%; }
.gift__wrap:hover .gift__tag { transform: rotate(2deg); }
.gift__label { font: 800 21px/1.2 var(--font-display); letter-spacing: -.02em; }
.gift__hint { font: 500 13px var(--font-text); color: var(--muted); }
.gift.is-open .gift__wrap { pointer-events: none; animation: unwrap .7s var(--ease-out) forwards; }

/* ---------- Detalles ---------- */
.ps__paw { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.footer__was { max-width: 24em; margin-top: 12px; line-height: 1.5; }

/* ---------- Colección ---------- */
.shop { padding: clamp(80px, 10vw, 130px) 0; background: var(--paper); }
.shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.shop__lead { font: 400 clamp(17px, 1.6vw, 20px)/1.4 var(--font-display); color: var(--ink-2); }
.shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 32px 0 36px; }
.segmented { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto; background: var(--veil); border-radius: 99px; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: none; padding: 8px 16px; font: 500 14px var(--font-text); white-space: nowrap; background: transparent; border: 0; border-radius: 99px; cursor: pointer; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.segmented button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 4px rgb(55 37 86 / .16), 0 1px 1px rgb(55 37 86 / .06); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; color: var(--muted); background: var(--veil); border-radius: 99px; }
.search input { width: 170px; min-width: 0; color: var(--ink); background: none; border: 0; outline: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--purple); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; display: flex; color: var(--ink); flex-direction: column; overflow: hidden; background: var(--white); border-radius: 24px; transition: box-shadow .5s var(--ease), transform .5s var(--ease); animation: rise .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -18px rgb(55 37 86 / .28); }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--cream); border: 0; cursor: pointer; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .7s var(--ease); }
.card__media .img-2 { opacity: 0; }
.card:hover .card__media img { transform: scale(1.045); }
.card:hover .card__media .img-2 { opacity: 1; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 20px 22px 22px; }
.card__new { font: 500 13px var(--font-text); color: var(--coral-text); }
.card__name { font: 600 21px/1.2 var(--font-display); letter-spacing: -.015em; }
.card__name button { padding: 0; font: inherit; letter-spacing: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.card__tag { font-size: 15px; color: var(--muted); }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.card__price { font: 600 17px var(--font-display); }
.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; background: var(--c); border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.card__fav { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--ink); background: rgb(255 255 255 / .85); border: 0; border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s var(--ease-out); }
.card:hover .card__fav, .card__fav:focus-visible, .card__fav.is-on { opacity: 1; }
.card__fav:hover { transform: scale(1.08); }
.card__fav.is-on .i { fill: var(--coral); stroke: var(--coral); }
.more { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 12px; }
.empty { grid-column: 1 / -1; padding: 64px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }
.img-fallback { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; background: var(--purple); }
.img-fallback svg { width: clamp(28px, 22%, 96px); aspect-ratio: 1; }
.img-fallback span { font: 500 13px var(--font-text); color: rgb(255 250 232 / .7); }
.line .img-fallback span { display: none; }
.card__range { font-size: 13px; color: var(--muted); }

/* ---------- Un solo producto: una tarjeta por color ---------- */
.grid--colors { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.grid--colors .card__media { aspect-ratio: 1; background: var(--white); }
.grid--colors .card__media img { object-fit: contain; }
.grid--colors .card__meta { flex-wrap: wrap; gap: 2px 10px; }
.stage--hero .stage__circle { background: var(--white); }

/* ---------- Portada viva: la foto cambia de color, se inclina con el cursor y gira su marco ---------- */
.stage--hero { --px: 0; --py: 0; --turn: 0deg; --tint: #84604a; --ox: 50%; --oy: 50%; margin-top: 44px; }
.stage__tilt { position: absolute; inset: 0; transform: perspective(1100px) rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 7deg)); }
.stage--hero .stage__circle { cursor: pointer; box-shadow: calc(var(--px) * -20px) calc(26px + var(--py) * -14px) 60px -26px rgb(55 37 86 / .5); -webkit-tap-highlight-color: transparent; }
.stage--hero .stage__photo { position: absolute; inset: 0; translate: calc(var(--px) * -2.4%) calc(var(--py) * -2%); scale: 1.07; }
.stage--hero .stage__photo.is-top { z-index: 1; clip-path: circle(0% at var(--ox) var(--oy)); }
.stage--hero .stage__photo.is-top.is-in { clip-path: circle(104% at var(--ox) var(--oy)); transition: clip-path .95s cubic-bezier(.45, 0, .2, 1); }
.stage--hero .stage__photo:not([src]) { visibility: hidden; }
.stage__shine { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(circle at calc(50% + var(--px) * 36%) calc(50% + var(--py) * 36%), rgb(255 255 255 / .5), transparent 48%); mix-blend-mode: soft-light; }
.stage--hero .stage__frame { translate: calc(var(--px) * 9px) calc(var(--py) * 9px); }
.stage--hero .stage__doodle { translate: calc(var(--px) * -24px) calc(var(--py) * -24px); }
.stage__orbit { transform-origin: 113px 112.1px; rotate: var(--turn); transition: rotate 1.5s cubic-bezier(.3, 1.25, .4, 1); }
.stage__upright { transform-box: fill-box; transform-origin: center; rotate: calc(var(--turn) * -1); transition: rotate 1.5s cubic-bezier(.3, 1.25, .4, 1); }
.stage__pulse { position: absolute; left: 4.889%; top: 4.489%; width: 90.667%; aspect-ratio: 1; border: 3px solid var(--tint); border-radius: 50%; opacity: 0; pointer-events: none; }
.stage__pulse.is-on { animation: stagePulse 1.1s var(--ease-out); }
@keyframes stagePulse { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(1.2); } }

.hero__colors { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; margin-top: 26px; }
.hero__swatches { display: flex; gap: 6px; }
.hswatch { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hswatch i { width: 28px; height: 28px; background: var(--c); border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hswatch.is-on i { transform: scale(1.14); }
.hswatch svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); pointer-events: none; }
.hswatch circle { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.hswatch.is-on circle { stroke-dashoffset: 0; opacity: 1; transition: opacity .3s; }
.hswatch.is-on.is-timed circle { animation: swatchTimer var(--hold, 4s) linear both; }
.hswatch.is-on.is-timed.is-paused circle { animation-play-state: paused; }
@keyframes swatchTimer { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hero__colorname { font: 500 17px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.hero__colorname.is-new { animation: rise .5s var(--ease-out); }
@media (hover: hover) { .hswatch:hover i { transform: scale(1.14); } }

/* En pantallas anchas: texto a la izquierda y la foto entera a la derecha, sin tener que bajar para verla. */
@media (min-width: 1025px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: center; column-gap: clamp(32px, 5vw, 72px); padding-inline: max(40px, calc((100% - var(--wrap)) / 2)); text-align: left; }
  .hero__copy { grid-area: 1 / 1 / 3 / 2; padding: 0; }
  .hero .ctas { justify-content: flex-start; }
  .stage--hero { grid-area: 1 / 2; width: min(44vw, 560px, 100svh - 300px); min-width: 380px; margin: 0; }
  .hero__colors { grid-area: 2 / 2; margin-top: 18px; }
}

/* ---------- Invierno: nieve de puntos y huellitas ---------- */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__copy { position: relative; z-index: 1; }
.stage--hero { z-index: 1; }

/* ---------- Guía por raza: la manada sobre la cinta de medir ---------- */
.razas { position: relative; padding: clamp(72px, 9vw, 120px) 0; color: var(--cream); background: var(--purple); }
.razas__head { display: grid; grid-template-columns: auto minmax(240px, 1fr); align-items: end; gap: 18px clamp(32px, 6vw, 80px); margin-bottom: clamp(30px, 4.5vw, 54px); }
.razas__title { font: 800 clamp(40px, 6.6vw, 86px)/.96 var(--font-display); letter-spacing: -.045em; }
.razas__title em { display: block; font-style: normal; white-space: nowrap; color: var(--sun); }
.razas__lead { max-width: 28em; font: 400 clamp(17px, 1.6vw, 20px)/1.45 var(--font-display); color: rgb(255 250 232 / .82); }

.razas__chart { --name: clamp(210px, 27%, 300px); --bead: 32px; }
.js .razas__chart.reveal--beads { opacity: 1; transform: none; }

/* La cinta: se queda pegada arriba mientras recorres las razas */
.tape { position: sticky; top: var(--nav-h); z-index: 4; display: grid; grid-template-columns: var(--name) 1fr; align-items: end; padding: 14px 0 12px; background: var(--purple); }
.tape__label { padding-right: 12px; font: 700 15px/1.2 var(--font-display); }
.tape__label small { display: block; font: 400 12px/1.3 var(--font-text); color: rgb(255 250 232 / .6); }
.tape__scale {
  display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); margin: 0; padding: 0; list-style: none;
  color: var(--ink); border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgb(55 37 86 / .45) 0 1px, transparent 1px calc(100% / var(--cols, 10) / 4)) 0 100% / 100% 5px no-repeat,
    var(--sun);
  box-shadow: inset 0 -1px 0 rgb(55 37 86 / .25), 0 10px 22px -12px rgb(20 10 40 / .7);
}
.tape__scale li { position: relative; display: grid; justify-items: center; gap: 1px; padding: 7px 0 13px; transition: background .3s var(--ease); }
.tape__scale li::after { content: ""; position: absolute; left: calc(50% - 1px); bottom: 0; width: 2px; height: 10px; background: var(--ink); }
.tape__scale li:first-child { border-radius: 5px 0 0 5px; }
.tape__scale li:last-child { border-radius: 0 5px 5px 0; }
.tape__scale b { font: 800 clamp(15px, 1.7vw, 21px)/1 var(--font-display); }
.tape__scale i { font: normal 500 10px/1.2 var(--font-text); font-variant-numeric: tabular-nums; opacity: .72; }

.pack__group { margin: 30px 0 8px; font: 600 13px/1.2 var(--font-text); color: var(--sun); }
.pack__group:first-child { margin-top: 12px; }
.pack__list { margin: 0; padding: 0; list-style: none; }
.breedrow { border-top: 1px solid rgb(255 250 232 / .1); }
.breedrow__btn { display: grid; grid-template-columns: var(--name) 1fr; align-items: center; width: 100%; min-height: 48px; padding: 7px 0; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.breedrow__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding-right: 12px; font: 600 clamp(15px, 1.5vw, 19px)/1.15 var(--font-display); letter-spacing: -.01em; transition: color .25s var(--ease); }
.breedrow__name small { font: 400 13px/1.3 var(--font-text); letter-spacing: 0; white-space: nowrap; color: rgb(255 250 232 / .5); }
.nowrap { white-space: nowrap; }
.breedrow__flag { display: inline-block; width: 6px; height: 6px; margin: 0 0 .5em 5px; vertical-align: middle; background: var(--coral); border-radius: 50%; }
.breedrow__track { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); align-items: center; }
.breedrow__track.is-over::after { content: "+"; position: absolute; left: calc(100% - (100% / var(--cols, 10) - var(--bead)) / 2 + 3px); top: 50%; font: 700 17px/1 var(--font-display); color: var(--sun); transform: translateY(-52%); }

/* Cada talla es una bolita; las seguidas se unen, como el abollonado */
.cell { position: relative; display: grid; place-items: center; }
.cell b { position: relative; z-index: 1; display: grid; place-items: center; width: min(var(--bead), 94%); aspect-ratio: 1; font: 700 15px/1 var(--font-display); color: var(--ink); border-radius: 50%; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.cell b::before { content: ""; width: 4px; height: 4px; background: rgb(255 250 232 / .2); border-radius: 50%; }
.cell.is-on b { background: var(--cream); }
.cell.is-on b::before { content: attr(data-n); width: auto; height: auto; background: none; }
.cell.is-on + .cell.is-on::before { content: ""; position: absolute; left: -50%; top: calc(50% - 5px); width: 100%; height: 10px; background: rgb(255 250 232 / .32); }
.breedrow__btn[aria-expanded="true"] .breedrow__name { color: var(--sun); }
.breedrow__btn[aria-expanded="true"] .cell.is-on b { background: var(--sun); }
@media (hover: hover) {
  .breedrow__btn:hover .breedrow__name { color: var(--sun); }
  .breedrow__btn:hover .cell.is-on b { background: var(--sun); }
}
.js .razas__chart:not(.is-visible) .cell.is-on b { opacity: 0; transform: scale(.2); }
.js .razas__chart.is-visible .cell.is-on b { animation: beadIn .55s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--r) * 26ms + var(--c) * 22ms); }
@keyframes beadIn { from { opacity: 0; transform: scale(.2); } }

.breedrow__more { display: grid; justify-items: start; gap: 8px; padding: 0 0 18px var(--name); font-size: 14px; line-height: 1.5; color: rgb(255 250 232 / .78); animation: rise .4s var(--ease-out); }
.breedrow__more p { max-width: 44em; }
.breedrow__more strong { font-weight: 600; color: var(--cream); }
.breedrow__more .textlink { font-size: 15px; }

.razas__foot { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px clamp(32px, 6vw, 80px); margin-top: clamp(32px, 4vw, 48px); padding-top: 26px; border-top: 1px solid rgb(255 250 232 / .1); }
.razas__notes { display: grid; gap: 10px; max-width: 40em; font-size: 14px; line-height: 1.5; color: rgb(255 250 232 / .7); }
.razas__notes .breedrow__flag { margin: 0 8px .15em 0; }
.razas__foot .ctas { margin-top: 0; }

/* ---------- Barra de compra en celular ---------- */
.buybar { display: none; }
@media (max-width: 860px) {
  .razas__head, .razas__foot, .medir__head, .medir__compare { grid-template-columns: 1fr; }
  .medir__steps { grid-template-columns: 1fr; margin-top: 76px; }
  .buybar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font: 500 15px var(--font-display); background: rgb(255 255 255 / .95); border-top: 1px solid var(--hair); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .buybar strong { font-weight: 700; }
}

/* ---------- Tabla de medidas ---------- */
.chart-card { padding: clamp(20px, 3vw, 32px); color: var(--ink); background: var(--cream); border-radius: 28px; }
.chart-card__title { font: 700 clamp(22px, 2.4vw, 28px)/1.1 var(--font-display); letter-spacing: -.02em; }
.chart-card__note { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.chart { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.chart th, .chart td { padding: 8px 6px; text-align: center; }
.chart thead th { font: 600 13px var(--font-text); color: var(--muted); }
.chart tbody th { font: 700 16px var(--font-display); }
.chart tbody tr > * { border-top: 1px solid var(--hair); }
.ps__more--chart { margin-top: 14px; }
.ps__more--chart summary { font-size: 15px; }
.ps__more--chart .chart { margin-bottom: 14px; font-size: 14px; }
.bag__foot .check--bag { display: flex; font-size: 13px; color: var(--ink-2); }
.bag__foot .check--bag input { accent-color: var(--purple); }

/* ---------- Página legal ---------- */
.legal-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px var(--side); background: rgb(252 247 241 / .94); border-bottom: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.legal-head__back { font: 500 15px var(--font-text); }
.legal { width: min(100% - 40px, 760px); margin-inline: auto; padding: clamp(32px, 6vw, 64px) 0 clamp(64px, 8vw, 96px); }
.legal h1 { font: 700 clamp(34px, 5vw, 52px)/1.05 var(--font-display); letter-spacing: -.03em; }
.legal__date { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal h1 { margin-top: clamp(28px, 4vw, 44px); }
.legal__toc { margin: 0; }
.legal__toc a[aria-current] { color: var(--cream); background: var(--purple); }
.legal { counter-reset: sec; }
.legal section { counter-increment: sec; }
.legal section ol.legal__clauses { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: cl; }
.legal__clauses li { position: relative; padding-left: 3.1em; counter-increment: cl; }
.legal__clauses li::before { content: counter(sec) "." counter(cl); position: absolute; left: 0; top: 0; font: 600 15px/1.6 var(--font-display); color: var(--purple); }
.legal__intro { margin-top: 18px; font: 400 clamp(17px, 1.7vw, 20px)/1.45 var(--font-display); }
.legal .legal__box { margin-top: 26px; }
.legal__mail { margin-top: 0; font: 600 clamp(22px, 3.4vw, 34px)/1.2 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.legal__mail a { color: var(--purple); }
.legal__docs { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.legal__docs a { display: grid; gap: 2px; padding: 16px 20px; text-decoration: none; background: var(--white); border-radius: 18px; transition: transform .4s var(--ease-out); }
.legal__docs a:hover { transform: translateX(4px); }
.legal__docs strong { font: 600 19px/1.25 var(--font-display); color: var(--ink); }
.legal__docs span { font-size: 15px; color: var(--muted); }
/* Regreso de Stripe (gracias.html): el número de pedido en grande, como la etiqueta de un paquete. */
.gracias { text-align: center; }
.gracias__logo { width: 120px; height: 120px; margin: 0 auto; }
.gracias h1 { margin-top: 26px; }
.gracias .legal__intro { max-width: 30em; margin-inline: auto; font-size: clamp(17px, 1.7vw, 20px); }
.gracias .gracias__pedido { display: inline-block; margin-top: 22px; padding: 14px 26px; font: 700 clamp(26px, 5vw, 38px)/1 var(--font-display); letter-spacing: .04em; color: var(--ink); background: var(--cream); border: 2px dashed rgb(55 37 86 / .28); border-radius: 18px; }
.gracias #gNota { max-width: 30em; margin: 20px auto 0; color: var(--ink-2); font-size: 16px; }
.gracias .gracias__volver { margin-top: 34px; }
.legal-foot { padding: 22px var(--side) 40px; font-size: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--hair); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.legal__toc a { display: block; padding: 8px 14px; font: 500 14px var(--font-text); text-decoration: none; background: var(--veil); border-radius: 99px; }
.legal section { padding-top: clamp(44px, 6vw, 68px); scroll-margin-top: 48px; }
.legal h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--font-display); letter-spacing: -.025em; }
.legal h3 { margin-top: 30px; font: 600 20px/1.25 var(--font-display); }
.legal h4 { margin: 22px 0 0; font: 600 17px/1.3 var(--font-display); }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal p { margin-top: 10px; }
.legal section ul { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 20px; }
.legal__box { margin-top: 18px; padding: 18px 22px; background: var(--purple); border-radius: 18px; }
.legal__box p { margin: 0; font-size: 17px; color: var(--cream); }
.legal__box p + p { margin-top: 10px; font-size: 16px; }
.legal__scroll { margin-top: 12px; overflow-x: auto; }
.legal__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal__table th, .legal__table td { padding: 10px 8px; text-align: left; vertical-align: top; color: var(--ink-2); border-top: 1px solid var(--hair); }
.legal__table thead th { font-weight: 600; color: var(--ink); border-top: 0; }
.legal__table code { overflow-wrap: anywhere; font-size: 13px; }
.legal__contact { display: grid; gap: 12px; margin: 16px 0 0; }
.legal__contact dt { font-size: 14px; color: var(--muted); }
.legal__contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.falta { padding: 0 6px; font-weight: 600; color: var(--ink); background: var(--sun); border-radius: 6px; }

/* ---------- La manada ---------- */
.manada { padding: clamp(80px, 10vw, 130px) 0; background: var(--cream); }
.manada__row { display: flex; align-items: flex-end; gap: 22px; padding: 44px var(--side) 36px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.manada__row::-webkit-scrollbar { display: none; }
.dogcard { display: grid; flex: none; gap: 12px; scroll-snap-align: center; }
.dogcard img { width: clamp(220px, 24vw, 300px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px; }
.dogcard--circle img { aspect-ratio: 1; border-radius: 50%; }
.dogcard figcaption { max-width: clamp(220px, 24vw, 300px); font-size: 14px; color: var(--muted); }
.dogcard figcaption strong { color: var(--ink); }
.quote { max-width: 860px; margin: 32px auto 0; text-align: center; }
.quote p { font: 600 clamp(26px, 3.4vw, 42px)/1.2 var(--font-display); letter-spacing: -.025em; }
.quote footer { margin-top: 18px; font-size: 15px; font-weight: 600; }
.quote footer span { font-weight: 400; color: var(--muted); }

/* ---------- Garantías ---------- */
.perks { padding: clamp(72px, 9vw, 110px) 0; background: var(--paper); }
.perks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 36px clamp(28px, 8vw, 120px); text-align: center; }
/* Ilustraciones de Envío gratis y 5% para perros callejeros. */
.perk__art { display: block; width: 138px; height: auto; margin: 0 auto 20px; overflow: visible; }
.perk__art * { stroke-linejoin: round; stroke-linecap: round; }
.art-floor { fill: var(--ink); opacity: .1; }
.art-line { fill: none; stroke: var(--purple); stroke-width: 4; }
.art-cargo { fill: var(--sun); stroke: var(--ink); stroke-width: 4; }
.art-cab { fill: var(--coral); stroke: var(--ink); stroke-width: 4; }
.art-glass { fill: var(--sky); stroke: var(--ink); stroke-width: 3.5; }
.art-lamp { fill: none; stroke: var(--sun); stroke-width: 4; }
.art-wheel { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.art-hub { fill: var(--cream); }
.art-stamp { transform-box: fill-box; transform-origin: center; rotate: -10deg; }
.art-heart { fill: var(--coral); stroke: var(--ink); stroke-width: 4; }
.art-pup { fill: var(--cream); }
.art-pct circle { fill: var(--sun); stroke: var(--ink); stroke-width: 4; }
.art-pct text { font: 800 15px/1 var(--font-display); letter-spacing: -.03em; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
/* Un detalle de movimiento al entrar en pantalla: el camión llega y sus líneas de velocidad se dibujan. */
.js .perk .art-truck { translate: -26px 0; opacity: 0; transition: translate 1s var(--ease-out) .2s, opacity .5s .2s; }
.js .perk.is-visible .art-truck { translate: 0 0; opacity: 1; }
.js .perk .art-line { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .8s var(--ease-out) .7s; }
.js .perk.is-visible .art-line { stroke-dashoffset: 0; }
.js .perk .art-pct { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) .5s; }
.js .perk.is-visible .art-pct { scale: 1; }
.perk h3 { font: 600 19px/1.25 var(--font-display); }
.perk p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Club ---------- */
.club { position: relative; padding: clamp(80px, 10vw, 130px) 0; text-align: center; color: var(--cream); background: var(--purple); overflow: hidden; }
.club__top { position: relative; padding: 0 20px 40px; }
.club__title { font: 800 clamp(40px, 6.4vw, 84px)/1.02 var(--font-display); letter-spacing: -.04em; }
.club__sub { max-width: 640px; margin: 16px auto 0; font: 400 clamp(18px, 1.9vw, 22px)/1.4 var(--font-display); color: rgb(255 250 232 / .85); }
.band--form { padding-block: clamp(22px, 3vw, 32px); }
.club__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 780px); margin: 0 auto; }
.club__form input, .club__form select { height: 50px; min-width: 0; padding: 0 20px; font: 500 16px var(--font-text); color: var(--ink); background: var(--white); border: 1px solid rgb(55 37 86 / .2); border-radius: 99px; }
.club__form input { flex: 1 1 260px; }
.club__form select { flex: 0 1 240px; cursor: pointer; }
.club__form input:focus, .club__form select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgb(71 49 112 / .18); }
.club__form .btn { height: 50px; }
.club__bottom { position: relative; width: min(100% - 40px, 620px); margin: 22px auto 0; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; text-align: left; color: rgb(255 250 232 / .82); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--coral); }
.club__msg { min-height: 1.4em; margin-top: 12px; font-weight: 600; color: var(--sun); }
.club__done { display: grid; justify-items: center; gap: 10px; color: var(--ink); animation: rise .6s var(--ease-out); }
.club__done strong { font: 800 clamp(24px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.code-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; font: 800 22px var(--font-display); letter-spacing: .08em; color: var(--ink); background: var(--white); border: 1.5px dashed var(--purple); border-radius: 16px; cursor: pointer; }
.code-btn span { display: inline-flex; align-items: center; gap: 4px; font: 500 13px var(--font-text); letter-spacing: 0; color: var(--purple); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; background: var(--white); }
.faq__inner { max-width: 820px; }
.faq__list { margin-top: 36px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--font-display); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { max-width: 40em; padding: 0 0 24px; color: var(--ink-2); }

/* ---------- Mayoreo: veterinarias, estéticas, tiendas y distribuidores (16-11-2026) ----------
   Morado como "Mídelo", los círculos amarillos de los pasos y la puntada punteada de la ficha de la prenda. */
.mayoreo { padding: clamp(72px, 9vw, 120px) 0; color: var(--cream); background: var(--purple); }
.mayoreo__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.mayoreo__title { font: 800 clamp(32px, 4.6vw, 54px)/1.02 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.mayoreo__lead { max-width: 30em; margin-top: 18px; font: 400 clamp(18px, 1.7vw, 21px)/1.45 var(--font-display); color: rgb(255 250 232 / .85); }
.mayoreo__pasos { display: grid; gap: 18px; margin: 0; padding: clamp(20px, 3vw, 28px); list-style: none; border: 2px dashed rgb(255 250 232 / .3); border-radius: 26px; }
.mayoreo__pasos li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; line-height: 1.45; color: rgb(255 250 232 / .9); }
.mayoreo__pasos b { display: grid; place-items: center; flex: none; width: 36px; height: 36px; font: 800 17px/1 var(--font-display); color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; }
.mayoreo__pasos span { min-width: 0; overflow-wrap: anywhere; }
.mayoreo a:not(.btn) { color: var(--sun); }
.mayoreo__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.mayoreo__cta p { font-size: 15px; color: rgb(255 250 232 / .75); }
@media (max-width: 860px) { .mayoreo__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 30px 0 26px; font-size: 12px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--hair); }
.footer__notes { display: grid; gap: 10px; padding-bottom: 20px; line-height: 1.5; border-bottom: 1px solid var(--hair); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding: 28px 0; }
.footer__brand img { width: 96px; height: 96px; }
.footer h4 { margin: 0 0 10px; font: 600 12px var(--font-text); color: var(--ink); }
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a, .linklike { color: var(--muted); text-decoration: none; }
.footer a:hover, .linklike:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 16px; }
.linklike { padding: 0; font: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Ficha de producto ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(30 20 50 / .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: min(92dvh, 920px); padding: 0; overflow: auto; background: var(--white); border: 0; border-radius: 28px; box-shadow: 0 40px 100px -30px rgb(30 20 50 / .5); }
.sheet[open] { animation: sheetIn .55s var(--ease-out); }
.sheet--sm { width: min(520px, calc(100vw - 32px)); }
.sheet__close { position: absolute; top: 16px; right: 16px; z-index: 5; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); background: rgb(255 255 255 / .85); border: 0; border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
.sheet__close:hover { background: var(--veil); }
.sheet__close--static { position: static; background: var(--veil); }
.ps { display: grid; grid-template-columns: 1.08fr 1fr; min-height: min(80dvh, 720px); }
.ps__gallery { position: sticky; top: 0; align-self: start; height: min(80dvh, 720px); background: var(--white); }
.ps__main { position: absolute; inset: 0; }
.ps__main img { width: 100%; height: 100%; object-fit: contain; animation: fadeIn .5s var(--ease); }
.ps__caption { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; font-size: 12px; color: var(--ink); background: rgb(255 255 255 / .85); border-radius: 99px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ps__thumbs { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.ps__thumbs button { width: 56px; height: 56px; padding: 0; overflow: hidden; background: var(--white); border: 2px solid var(--hair); border-radius: 14px; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.ps__thumbs button[aria-pressed="true"] { border-color: var(--purple); opacity: 1; }
.ps__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ps__info { display: flex; flex-direction: column; gap: 24px; padding: 44px clamp(24px, 3.4vw, 44px) 36px; }
.ps__title { margin-top: 2px; padding-right: 40px; font: 700 clamp(30px, 3vw, 40px)/1.06 var(--font-display); letter-spacing: -.03em; }
.ps__price { margin-top: 10px; font: 700 clamp(30px, 3.2vw, 38px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--purple); }
.ps__price span { font: 400 15px/1.3 var(--font-text); letter-spacing: 0; color: var(--muted); }
.ps__desc { margin-top: 12px; color: var(--ink-2); }
.ps__block h3 { margin-bottom: 12px; font: 600 19px var(--font-display); }
.ps__block h3 span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 32px; height: 32px; padding: 0; background: var(--c); border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); cursor: pointer; outline-offset: 3px; }
.swatch.is-on { outline: 2px solid var(--purple); }
.ps__colorname { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
.sizes--wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sizes--wide .size strong { font-size: 16px; }
.size { position: relative; display: grid; gap: 2px; justify-items: start; padding: 12px; text-align: left; background: var(--white); border: 1px solid rgb(55 37 86 / .22); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.size strong { font: 600 19px/1.1 var(--font-display); }
.size__price { font: 700 19px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--purple); }
.size small { font-size: 12px; white-space: nowrap; color: var(--muted); }
.sizes .size { padding-inline: 10px; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.is-on { background: rgb(71 49 112 / .06); border-color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.size:disabled { opacity: .4; cursor: not-allowed; }
.sizes.shake { animation: shake .45s; }
.ps__sizenote { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ps__duty { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ps__hint { min-height: 1.3em; margin-top: 4px; font-size: 14px; color: var(--coral-text); }
.ps__buy { display: flex; gap: 12px; }
.qty { display: flex; flex: none; align-items: center; background: var(--veil); border-radius: 99px; }
.qty button { display: grid; place-items: center; width: 42px; height: 46px; padding: 0; background: none; border: 0; border-radius: 99px; cursor: pointer; }
.qty button:hover { background: rgb(55 37 86 / .08); }
.qty output { min-width: 22px; font-weight: 600; text-align: center; }
.qty--sm button { width: 32px; height: 32px; }
.ps__buy .btn { flex: 1; }
.ps__delivery { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; font-size: 14px; list-style: none; border-top: 1px solid var(--hair); }
.ps__delivery li { display: flex; align-items: flex-start; gap: 10px; }
.ps__delivery .i { margin-top: 1px; color: var(--purple); }
.ps__delivery strong { font-weight: 600; }
.ps__more { border-top: 1px solid var(--hair); }
.ps__more details { border-bottom: 1px solid var(--hair); }
.ps__more summary { display: flex; justify-content: space-between; padding: 16px 0; font: 600 16px var(--font-display); list-style: none; cursor: pointer; }
.ps__more summary::-webkit-details-marker { display: none; }
.ps__more summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.ps__more details[open] summary::after { content: "–"; }
.ps__more ul, .ps__more p { margin: 0; padding: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.ps__more ul { display: grid; gap: 6px; padding-left: 18px; }

/* ---------- Bolsa ---------- */
.bag { width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; background: var(--white); border: 0; box-shadow: -30px 0 90px -30px rgb(30 20 50 / .45); }
.bag[open] { display: flex; flex-direction: column; animation: bagIn .5s var(--ease-out); }
.bag__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 14px; }
.bag__head h2 { font: 700 30px var(--font-display); letter-spacing: -.025em; }
.bag__note { display: flex; align-items: center; gap: 10px; margin: 0 24px 6px; padding: 14px 16px; font: 500 15px/1.35 var(--font-display); background: var(--cream); border-radius: 16px; animation: rise .6s var(--ease-out); }
.bag__note svg { flex: none; width: 30px; height: 30px; }
.bag__items { flex: 1; padding: 0 24px; overflow-y: auto; }
.line { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.line img, .line .img-fallback { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; }
.line__name { font: 600 16px/1.25 var(--font-display); }
.line__meta { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.line .qty { display: inline-flex; }
.line__right { display: grid; justify-items: end; gap: 10px; font: 600 15px var(--font-display); }
.line__remove { padding: 0; font: 400 13px var(--font-text); color: var(--purple); background: none; border: 0; cursor: pointer; }
.line__remove:hover { text-decoration: underline; }
.bag__foot { display: grid; gap: 14px; padding: 18px 24px 24px; border-top: 1px solid var(--hair); }
.ship { font-size: 14px; color: var(--ink-2); }
.ship strong { color: var(--ink); }
.ship__bar { height: 4px; margin-top: 8px; overflow: hidden; background: var(--veil); border-radius: 4px; }
.ship__bar span { display: block; height: 100%; background: var(--purple); border-radius: 4px; transition: width .6s var(--ease-out); }
.ship--done .ship__bar span { background: var(--ok); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; font-size: 15px; text-transform: uppercase; background: var(--veil); border: 0; border-radius: 99px; }
.coupon input:focus { outline: none; box-shadow: 0 0 0 2px var(--purple); }
.coupon-on { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ok); }
.coupon-on button { padding: 0; font-size: 13px; color: var(--purple); background: none; border: 0; cursor: pointer; }
.coupon-msg { min-height: 1em; margin-top: -6px; font-size: 13px; color: var(--coral-text); }
.totals { display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { margin-top: 6px; padding-top: 12px; font: 700 21px var(--font-display); border-top: 1px solid var(--hair); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
/* Aviso dentro de la bolsa: cupo lleno, ventas en pausa, pago cancelado o error al abrir el pago. */
.bag-alert { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); background: var(--cream); border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.secure .i { width: 14px; height: 14px; }
/* Bolsa, paso 2: dirección, paquetería y pago. Campos a 16px para que el celular no haga zoom. */
.totals__soft span:last-child { font-size: 14px; color: var(--muted); }
.totals--pay .total { margin-top: 0; padding-top: 0; border-top: 0; }
.totals__desglose { margin-top: -2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.bag__back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px -4px; padding: 8px 4px; font: 500 14px var(--font-text); color: var(--purple); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.bag__back .i { width: 16px; height: 16px; }
.bag__back:hover span { text-decoration: underline; }
.shipform { display: grid; gap: 26px; padding: 6px 0 26px; }
.shipform fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.shipform legend { margin-bottom: 12px; padding: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > label { font: 600 13px/1.2 var(--font-display); color: var(--ink-2); }
.fld > label small { font: 400 12px var(--font-text); color: var(--muted); }
.fld input, .fld select { width: 100%; height: 46px; padding: 0 14px; font: 400 16px var(--font-text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--hair); border-radius: 14px; outline: none; transition: border-color .2s, background-color .2s; }
.fld select { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23473170' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; text-overflow: ellipsis; }
.fld input::placeholder { color: var(--muted); opacity: .75; }
.fld input:focus, .fld select:focus { border-color: var(--purple); background-color: var(--white); }
.fld [aria-invalid="true"] { border-color: var(--coral-text); background-color: #fff6f2; }
.fld__otra { margin-top: 4px; }
.fld__hint { font-size: 13px; line-height: 1.4; color: var(--muted); }
.fld__hint:empty { display: none; }
.fld__hint--err, .fld__err { font-size: 13px; line-height: 1.4; color: var(--coral-text); }
.fld--cp input { max-width: 150px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.fld-row { display: flex; gap: 10px; }
.fld-row .fld { flex: 1 1 0; }
.fld-row .fld--num { flex: 0 0 104px; }
.shipform .check--bag { display: flex; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.shipform .check--bag input { accent-color: var(--purple); }
.shipform .check--bag a { color: var(--purple); }
.check--err span { color: var(--coral-text); }
.check--err input { outline: 2px solid var(--coral-text); outline-offset: 2px; }
.shipopts, .shipopts [role="radiogroup"] { display: grid; gap: 8px; }
.shipopt { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1.5px solid var(--hair); border-radius: 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.shipopt:hover { border-color: rgb(71 49 112 / .4); }
.shipopt input { width: 20px; height: 20px; margin: 0; accent-color: var(--purple); }
.shipopt:has(input:checked) { background: var(--cream); border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.shipopt:has(input:focus-visible) { outline: 2px solid var(--sun); outline-offset: 2px; }
.shipopt__body { display: grid; gap: 3px; min-width: 0; }
.shipopt__name { font: 600 15px/1.3 var(--font-display); color: var(--ink); }
.shipopt__name em { display: inline-block; margin-left: 2px; padding: 2px 8px; font: 600 11px/1.45 var(--font-text); font-style: normal; color: var(--ink); background: var(--sun); border-radius: 99px; vertical-align: 1px; white-space: nowrap; }
.shipopt__name em + em { background: #cdeefb; }
.shipopt__eta { font-size: 13px; color: var(--muted); }
.shipopt__price { font: 700 17px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.shipopt--load { display: block; height: 64px; border-color: transparent; background: linear-gradient(100deg, var(--veil) 20%, rgb(55 37 86 / .13) 40%, var(--veil) 60%) 0 0 / 300% 100%; animation: shipLoad 1.3s linear infinite; cursor: default; }
.shipopt--load i { display: none; }
@keyframes shipLoad { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.shipopts__msg { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); background: var(--cream); border-radius: 16px; }
.shipopts__paw { flex: none; width: 30px; height: 30px; }
.shipopts__note { font-size: 12px; color: var(--muted); }
.shipopts .btn { justify-self: start; }
.empty-bag { display: grid; justify-items: center; gap: 12px; padding: 64px 12px; text-align: center; }
.empty-bag svg { width: 76px; height: 76px; }
.empty-bag strong { font: 700 24px var(--font-display); letter-spacing: -.02em; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 28px; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; color: var(--cream); background: rgb(55 37 86 / .94); border-radius: 99px; box-shadow: 0 12px 30px -10px rgb(30 20 50 / .5); pointer-events: auto; animation: rise .45s var(--ease-out); transition: opacity .3s, transform .3s; }
.toast.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Cookies ---------- */
.cookie { position: fixed; z-index: 90; left: 16px; bottom: 16px; display: grid; gap: 14px; max-width: 420px; padding: 18px; background: rgb(255 255 255 / .92); border-radius: 22px; box-shadow: 0 16px 50px -14px rgb(30 20 50 / .35); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__text { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cookie__text strong { color: var(--ink); }
.cookie__text a { color: var(--purple); }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.prefs { display: grid; gap: 14px; padding: 32px; }
.prefs h2 { font: 700 28px var(--font-display); letter-spacing: -.02em; }
.prefs .muted { font-size: 15px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); cursor: pointer; }
.pref strong { font: 600 16px var(--font-display); }
.pref small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.switch { position: relative; flex: none; width: 51px; height: 31px; margin: 0; background: rgb(55 37 86 / .18); border: 0; border-radius: 99px; cursor: pointer; transition: background .25s; -webkit-appearance: none; appearance: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; background: var(--white); border-radius: 50%; box-shadow: 0 2px 6px rgb(0 0 0 / .2); transition: transform .25s var(--ease); }
.switch:checked { background: var(--purple); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }
.prefs__actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animaciones ---------- */
@keyframes circleIn { from { opacity: 0; transform: scale(.86); } }
@keyframes wedgeIn { from { opacity: 0; transform: scale(.55); } }
@keyframes pawIn { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drift { 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 5deg)); } }
@keyframes pop { 40% { transform: scale(1.25); } }
@keyframes ping { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(32px) scale(.98); } }
@keyframes bagIn { from { transform: translateX(100%); } }
@keyframes twinkle { 50% { opacity: .3; } }
@keyframes unwrap { to { opacity: 0; transform: scale(1.12) rotate(5deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gifts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .gnav__menu { display: grid; }
  .gnav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; gap: 0; margin: 0; padding: 20px 32px;
    background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
  }
  .gnav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__links { align-items: flex-start; }
  .gnav__links a { padding: 10px 0; font: 600 28px/1.2 var(--font-display); letter-spacing: -.02em; opacity: 1; }
  .gnav__links a.gnav__buy { order: -1; margin-bottom: 14px; padding: 12px 30px; font-size: 24px; }
  .tiles { grid-template-columns: 1fr; }
  .nosotros__grid, .telas__grid { grid-template-columns: 1fr; }
  .nosotros__badge { width: min(80%, 360px); }
  .tile { min-height: 560px; }
  .ps { grid-template-columns: 1fr; }
  .ps__gallery { position: relative; align-self: auto; height: auto; aspect-ratio: 4 / 4.2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stage__doodle { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .gnav__logo svg { height: 15px; }
  .ribbon { font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .grid--colors { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid--colors .card__body { padding: 14px 14px 16px; }
  .shop__bar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .perks__grid { grid-template-columns: 1fr; gap: 28px 16px; }
  .medir__title em { white-space: normal; }
  .medir__dogs { flex-direction: column; align-items: center; gap: 0; border-bottom: 0; padding: 0; }
  .medir__dog { width: 100%; padding-bottom: 64px; }
  .medir__dog svg { border-bottom: 2px solid rgb(255 250 232 / .22); }
  .medir__dog--gato { flex: none; width: 84%; }
  .medir__dog--perro { flex: none; }
  .medir__dog figcaption { top: auto; bottom: 14px; }
  .medir__steps { margin-top: 12px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .gifts { gap: 12px; }
  .gift__tag { padding: 10px 12px 8px; }
  .gift__label { font-size: 17px; }
  .gift__hint { font-size: 11px; }
  .gift__ribbon::before, .gift__ribbon::after { width: 46px; height: 34px; border-width: 8px; top: calc(40% - 36px); }
  .gift__ribbon::before { left: calc(50% - 48px); }
  .club__form select, .club__form .btn { flex: 1 1 100%; }
  .sheet:not(.sheet--sm) { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .ps__info { padding: 26px 20px 30px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .cookie__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .razas__chart { --name: 34%; --bead: 22px; }
  .razas__title em { white-space: normal; }
  .tape__label small, .breedrow__name small { display: none; }
  .tape__scale i { font-size: 8.5px; }
  .cell b { width: min(var(--bead), 88%); font-size: 11.5px; }
  .cell.is-on + .cell.is-on::before { top: calc(50% - 4px); height: 8px; }
  .breedrow__more { padding-left: 0; }
  .breedrow__track.is-over::after { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement__text .w { opacity: 1; }
}

/* ---------- Ropa para perro en Morelia (página local) ---------- */
.local__lead { margin-top: 14px; font-size: 18px; }
.local__photo { margin: 28px 0 0; }
.local__photo img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 28px; background: var(--cream); }
.local__photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.local__facts { display: grid; gap: 12px; margin: 14px 0 0; }
.local__facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.local__facts dt { font-weight: 600; color: var(--ink); }
.local__facts dd { margin: 0; color: var(--ink-2); }
.local__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 520px) { .local__facts div { grid-template-columns: 1fr; gap: 2px; } }
