/* =====================================================================
   hohohome — hoja de estilos de la tienda
   Basada en el sistema de diseño "Beautiful" (DESIGN.md): lienzo crema,
   líneas negras de 1 px, botones píldora, serif editorial + grotesca,
   etiquetas en monoespaciada. Versión navideña: rojo acebo + verde pino
   y una franja de punto jacquard como elemento distintivo.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* Sistema original (referencia, no borrar) */
  --color-coral-pop: #fa7864;
  --color-terracotta-whisper: #dc8264;
  --color-cream-linen: #fff5e6;
  --color-ink-black: #000000;
  --color-charcoal: #282828;
  --color-stone: #707070;
  --color-bone: #e8e8e1;
  --color-pure-white: #ffffff;
  --color-mist: #cccccc;

  /* Paleta activa — "Navidad clásica" */
  --canvas: var(--color-cream-linen);
  --surface: var(--color-pure-white);
  --field: var(--color-bone);
  --ink: var(--color-ink-black);
  --text: var(--color-charcoal);
  --muted: var(--color-stone);
  --line: var(--color-ink-black);
  --line-soft: #e2d4bd;
  --accent: #b8322a;            /* Rojo acebo */
  --accent-hover: #9c271f;
  --on-accent: #ffffff;
  --second: #1f4a37;            /* Verde pino */
  --on-second: #fff5e6;
  --eyebrow: var(--second);
  --gold: #b98a2f;              /* Oro viejo: solo decoración */
  --knit-a: var(--accent);
  --knit-b: var(--second);
  --bar-bg: var(--ink);
  --bar-fg: var(--canvas);

  /* Tipografía */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-script: 'Homemade Apple', 'Segoe Script', cursive;
  --display-weight: 500;
  --display-vars: "SOFT" 100, "WONK" 0;

  /* Espacio y forma */
  --gutter: 16px;
  --section-gap: 64px;
  --radius-pill: 999px;
  --radius-panel: 20px;
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Franja de punto: 36 × 13 puntadas */
  --stitch: 3px;
  --knit-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='52' viewBox='0 0 144 52'%3E%3Crect x='24.35' y='8.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='8.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='8.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='12.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='36.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='12.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='16.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='32.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='112.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='128.35' y='16.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='20.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='28.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='20.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='8.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='12.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='16.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='20.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='28.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='32.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='36.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='40.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='56.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='88.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='112.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='128.35' y='24.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='20.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='28.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='108.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='112.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='128.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='132.35' y='28.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='16.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='32.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='104.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='108.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='112.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='128.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='132.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='136.35' y='32.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='12.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='36.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='36.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='40.35' width='3.3' height='3.3' rx='1.1'/%3E%3C/svg%3E");
  --knit-border: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='52' viewBox='0 0 144 52'%3E%3Crect x='0.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='8.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='16.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='24.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='32.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='40.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='48.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='56.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='64.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='72.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='80.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='88.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='96.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='104.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='112.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='120.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='128.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='136.35' y='0.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='4.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='12.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='20.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='28.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='36.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='44.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='52.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='60.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='68.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='76.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='84.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='92.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='100.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='108.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='116.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='124.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='132.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3Crect x='140.35' y='48.35' width='3.3' height='3.3' rx='1.1'/%3E%3C/svg%3E");
}

/* Paletas para probar (selector "Probar diseño" o Ajustes del panel) */
[data-palette="original"] {
  --line-soft: var(--color-mist);
  --accent: var(--color-coral-pop);
  --accent-hover: #ef6550;
  --on-accent: #ffffff;
  --second: var(--color-terracotta-whisper);
  --on-second: #ffffff;
  --eyebrow: var(--color-coral-pop);
  --gold: var(--color-terracotta-whisper);
  --knit-a: var(--color-coral-pop);
  --knit-b: var(--color-ink-black);
}
[data-palette="bosque"] {
  --canvas: #f7f2e9;
  --line-soft: #dcd3c2;
  --accent: #1f4a37;
  --accent-hover: #15372a;
  --on-accent: #fff5e6;
  --second: #b8322a;
  --on-second: #ffffff;
  --eyebrow: #b8322a;
  --knit-a: #1f4a37;
  --knit-b: #b8322a;
}
[data-palette="noche"] {
  color-scheme: dark;
  --canvas: #0f2219;
  --surface: #17301f;
  --field: #1c3a2b;
  --ink: #fff5e6;
  --text: #eadfcb;
  --muted: #b5ab99;
  --line: #fff5e6;
  --line-soft: rgba(255, 245, 230, .2);
  --accent: #c8412d;
  --accent-hover: #d85641;
  --on-accent: #ffffff;
  --second: #e2b85c;
  --on-second: #0f2219;
  --eyebrow: #e2b85c;
  --gold: #e2b85c;
  --knit-a: #c8412d;
  --knit-b: #e2b85c;
  --bar-bg: #c8412d;
  --bar-fg: #ffffff;
}

[data-font="playfair"] { --font-display: 'Playfair Display', Georgia, serif; --display-weight: 500; --display-vars: normal; }
[data-font="cormorant"] { --font-display: 'Cormorant Garamond', Georgia, serif; --display-weight: 600; --display-vars: normal; }

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (max-width: 719px) { :root { --section-gap: 48px; --header-h: 68px; } }

/* ---------- 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-vars);
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dialog { padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--canvas); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- 3. Tipografía -------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .056em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.section-title { font-size: clamp(30px, 3.4vw, 39px); line-height: 1.1; }
.section-title em, .hero__title em, .story__title em { font-style: italic; color: var(--accent); }
.lede { font-size: 17px; line-height: 1.55; }

/* ---------- 4. Botones ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 16px; line-height: 1.2; letter-spacing: .028em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:focus-visible { outline-color: var(--accent); }
.btn--outline { border-color: var(--second); color: var(--second); background: transparent; }
.btn--outline:hover { background: var(--second); color: var(--on-second); }
.btn--ink { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ink:hover { background: var(--ink); color: var(--canvas); }
.btn--lg { min-height: 52px; padding: 14px 34px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 6px 19px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  font-size: 14px; line-height: 1.2; letter-spacing: .03em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover, .pill[aria-expanded="true"], .pill[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.pill > svg { flex: none; width: 15px; height: 15px; }
.pill .chev { width: 12px; height: 12px; stroke-width: 2; transition: transform .2s var(--ease); }
.pill[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill__n { font-family: var(--font-mono); font-size: 11px; opacity: .65; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
.round-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--canvas); color: var(--ink);
  transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--ink); color: var(--canvas); }
.round-btn svg { width: 18px; height: 18px; }
.link-btn {
  padding: 0; border: 0; background: none; color: var(--muted);
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- 5. Barra de avisos + cabecera ----------------------------- */
.announce { background: var(--bar-bg); color: var(--bar-fg); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.announce__inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding-block: 9px; text-align: center; }
.announce__star { color: var(--gold); }
@media (max-width: 599px) {
  .announce { font-size: 11px; letter-spacing: .04em; }
  .announce__inner { gap: 4px 10px; padding-block: 8px; }
  .announce__inner > :nth-child(n+4) { display: none; }
}
[data-palette="noche"] .announce__star { color: #fff5e6; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--canvas); transition: box-shadow .2s, background-color .3s; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-nav { justify-self: start; display: flex; align-items: center; gap: 8px; }
.site-nav__list { display: flex; gap: 8px; }
.site-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }

.logo { display: inline-flex; align-items: center; justify-self: center; border-radius: 14px; line-height: 0; text-decoration: none; }
.logo__img { display: block; width: auto; height: 70px; }
.logo:focus-visible { outline-offset: 6px; }
/* En la paleta oscura el logo va sobre una etiqueta crema, como las que se cosen en la ropa */
[data-palette="noche"] .logo { padding: 6px 14px; background: #fbf4e6; box-shadow: inset 0 0 0 1px var(--gold); }

.bag-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 10px; line-height: 18px; letter-spacing: 0; text-align: center;
}
.bag-count.is-bumped { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50; min-width: 270px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--canvas);
}
.dropdown__panel a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 12px; font-size: 15px; text-decoration: none; color: var(--ink); }
.dropdown__panel a:hover { background: var(--surface); }
.dropdown__panel hr { margin: 6px 14px; border: 0; border-top: 1px solid var(--line-soft); }
.count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

@media (max-width: 899px) {
  .site-nav__list { display: none; }
  .menu-btn { display: inline-grid; border-color: var(--line); }
  .logo__img { height: 52px; }
  [data-palette="noche"] .logo { padding: 4px 10px; }
}

/* ---------- 6. Franja de punto (elemento distintivo) ------------------ */
.knit { position: relative; height: calc(13 * var(--stitch)); }
.knit::before, .knit::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-image: var(--knit-motif); mask-image: var(--knit-motif);
  -webkit-mask-size: calc(36 * var(--stitch)) calc(13 * var(--stitch)); mask-size: calc(36 * var(--stitch)) calc(13 * var(--stitch));
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: center top; mask-position: center top;
  background: var(--knit-a);
}
.knit::after { -webkit-mask-image: var(--knit-border); mask-image: var(--knit-border); background: var(--knit-b); }
.knit--top { margin: 6px 0 30px; }

/* ---------- 7. Hero (carrusel) ---------------------------------------- */
.hero__inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 56px; }
.hero__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: settle 7s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero__media .round-btn { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.hero__prev { left: 16px; }
.hero__next { right: 16px; }
.snow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.hero__copy { display: grid; }
.hero__text { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, transform .4s, visibility 0s .4s; }
.hero__text.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s .2s var(--ease), transform .7s .2s var(--ease); }
.hero__text .eyebrow { margin-bottom: 16px; }
.hero__title { font-size: clamp(38px, 4.4vw, 52px); line-height: 1.02; margin-bottom: 18px; }
.hero__body { max-width: 38ch; margin-bottom: 28px; font-size: 17px; line-height: 1.55; }
.hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.dots { display: flex; }
.dot { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 2px; border: 0; background: none; }
.dot span { width: 10px; height: 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); transition: width .35s var(--ease), background-color .35s; }
.dot[aria-current="true"] span { width: 30px; background: var(--ink); }
.hero__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__media { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); }
  .hero__media .round-btn { width: 36px; height: 36px; }
  .hero__controls { margin-top: 28px; }
}

/* ---------- 8. Ventajas ----------------------------------------------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-block: 1px solid var(--line); }
.perks li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-size: 14px; line-height: 1.35; }
.perks li + li { border-left: 1px solid var(--line); }
.perks svg { flex: none; width: 26px; height: 26px; color: var(--ink); }
.perks strong { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 899px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .perks li { padding: 14px 12px; gap: 10px; font-size: 13px; }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .perks svg { width: 22px; height: 22px; }
}

/* ---------- 9. Secciones ---------------------------------------------- */
.section { padding-block: var(--section-gap); }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head--center { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.section-head--center .eyebrow { margin-bottom: 0; }
.section-sub { max-width: 52ch; color: var(--muted); }

/* Círculos de categoría */
.circles { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px 30px; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 124px; text-align: center; text-decoration: none; }
.circle__img {
  width: 124px; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  outline: 1px solid transparent; outline-offset: 5px; transition: outline-color .25s;
}
.circle__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.circle:hover .circle__img { outline-color: var(--line); }
.circle:hover .circle__img img { transform: scale(1.07); }
.circle.is-active .circle__img { outline: 2px solid var(--accent); }
.circle__label { font-size: 14px; line-height: 1.25; color: var(--ink); }
.circle__count { margin-top: -8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 719px) {
  .circles {
    flex-wrap: nowrap; justify-content: flex-start; gap: 16px;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .circles::-webkit-scrollbar { display: none; }
  .circle, .circle__img { width: 96px; }
  .circle { flex: none; scroll-snap-align: start; }
}

/* ---------- 10. Colección --------------------------------------------- */
.collection__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .pill svg { width: 12px; height: 12px; stroke-width: 2; }
.sort { position: relative; }
.sort select {
  appearance: none; -webkit-appearance: none;
  min-height: 34px; padding: 6px 38px 6px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font-size: 14px; cursor: pointer;
}
.sort select option { background: var(--canvas); color: var(--ink); }
.sort svg { position: absolute; right: 14px; top: 50%; width: 12px; height: 12px; stroke-width: 2; transform: translateY(-50%); pointer-events: none; color: var(--ink); }
.collection__status { margin: -16px 0 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 32px 12px; } }

.empty-grid { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--radius-panel); text-align: center; }

/* Tarjeta de producto */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .9s var(--ease); }
.card__media .card__alt { opacity: 0; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card__ph svg { width: 40px; height: 40px; stroke-width: 1.2; }
@media (hover: hover) {
  .card:hover .card__alt { opacity: 1; }
  .card:hover .card__media img:first-child { transform: scale(1.03); }
}
.card__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge--sale { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.badge--low { border-color: var(--accent); color: var(--accent); }
.badge--out { background: var(--ink); color: var(--canvas); }
.card.is-out .card__media img { filter: grayscale(.6); opacity: .75; }

.card__badges .badge { pointer-events: none; }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; pointer-events: auto; }
}
@media (hover: none) { .card__quick { display: none; } }
.card__quick p { margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sizes-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.size-mini {
  min-width: 38px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font-size: 13px; line-height: 1.2;
}
.size-mini:hover { background: var(--ink); color: var(--canvas); }
.card__body { display: grid; gap: 6px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.3; letter-spacing: .028em; color: var(--ink); text-wrap: pretty; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 4px; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.price { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.price s { margin-left: 6px; color: var(--muted); }
.price--sale { color: var(--accent); }
.swatches { display: flex; gap: 5px; }
.swatch-dot { width: 12px; height: 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--c); }
@media (max-width: 599px) {
  .card { gap: 10px; }
  .card__row { flex-direction: column; gap: 2px; }
  .card__title { font-size: 14px; }
  .card__meta { font-size: 12px; }
}

/* Mosaicos editoriales dentro de la cuadrícula */
.tile__link { position: relative; display: block; height: 100%; min-height: 320px; overflow: hidden; background: var(--surface); text-decoration: none; }
.tile__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile__link:hover img { transform: scale(1.03); }
.tile__plate { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--canvas); }
.tile__title { margin: 8px 0 12px; font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: var(--display-vars); font-size: 25px; line-height: 1.1; color: var(--ink); }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tile__cta svg { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .tile { grid-column: span 2; }
  .tile__link { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tile__plate { padding: 14px 16px 16px; }
  .tile__title { font-size: 22px; }
}

/* ---------- 11. Nuestra historia --------------------------------------- */
.story__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 64px; }
.story__copy .eyebrow { margin-bottom: 14px; }
.story__title { margin-bottom: 22px; font-size: clamp(32px, 3.6vw, 43px); line-height: 1.08; }
.story__copy p:not(.eyebrow):not(.signature) { max-width: 46ch; font-size: 17px; line-height: 1.6; }
.story__copy p + p { margin-top: 14px; }
.signature { display: inline-block; margin-top: 28px !important; font-family: var(--font-script); font-size: 21px; line-height: 1.7; color: var(--ink); transform: rotate(-3deg); transform-origin: left center; }
.story__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .story__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story__media { order: -1; margin-inline: calc(-1 * var(--gutter)); }
}

/* ---------- 12. Guía de regalos ---------------------------------------- */
.budgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.budget {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 22px 30px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  text-decoration: none; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.budget__label { grid-column: 1; font-size: 14px; color: var(--muted); transition: color .25s; }
.budget__price { grid-column: 1; font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: var(--display-vars); font-size: 39px; line-height: 1; }
.budget__count { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.budget__count svg { width: 18px; height: 18px; }
.budget:hover { background: var(--ink); color: var(--canvas); }
.budget:hover .budget__label { color: inherit; }
.gifts__note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .budgets { grid-template-columns: minmax(0, 1fr); } .budget { padding: 16px 24px; } .budget__price { font-size: 32px; } }

/* ---------- 13. Franja de temporada ------------------------------------ */
.banner { position: relative; overflow: hidden; padding-block: 22px; background: var(--accent); color: var(--on-accent); --knit-a: var(--on-accent); --knit-b: var(--on-accent); }
.banner .knit::after { opacity: .55; }
.banner__body { position: relative; display: grid; place-items: center; min-height: 150px; padding: 28px var(--gutter); text-align: center; }
.banner__text { position: relative; z-index: 2; font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: var(--display-vars); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; color: var(--on-accent); text-wrap: balance; }
.banner__text em { font-style: italic; }
.banner__sub { position: relative; z-index: 2; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* ---------- 14. Momentos ----------------------------------------------- */
.moments__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.moments__strip li { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.moments__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.moments__strip li:hover img { transform: scale(1.05); }
@media (max-width: 719px) { .moments__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 15. Pie de página ------------------------------------------ */
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 48px; border-top: 1px solid var(--line); }
.footer__brand .logo__img { height: 92px; }
.footer__brand > p { max-width: 38ch; margin: 14px 0 20px; font-size: 15px; color: var(--muted); }
.footer__col h2 { margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer__col a, .footer__col button { padding: 0; border: 0; background: none; font-size: 15px; line-height: 2.1; text-decoration: none; color: var(--ink); text-align: left; }
.footer__col a:hover, .footer__col button:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.newsletter { display: flex; gap: 8px; max-width: 440px; }
.newsletter label { flex: 1; min-width: 0; }
.input {
  width: 100%; height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--field); color: var(--ink);
  font-family: var(--font-mono); font-size: 14px;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.form-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) { .newsletter { flex-direction: column; } .newsletter .btn { align-self: flex-start; } }

/* ---------- 16. Paneles (bolsa, búsqueda, menú, modales) --------------- */
dialog::backdrop { background: rgba(24, 16, 8, .45); }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(440px, 100%); height: 100%;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line); background: var(--canvas); color: var(--text);
  transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer:not([open]) { display: none; }
.drawer.is-open { transform: none; }
.drawer--left { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); }
.drawer::backdrop { opacity: 0; transition: opacity .3s; }
.drawer.is-open::backdrop { opacity: 1; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 25px; line-height: 1.1; }
.drawer__head .logo__img { height: 44px; }
.drawer__title .mono { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 14px; padding: 18px 20px 22px; border-top: 1px solid var(--line); }

.ship-meter { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 14px; color: var(--ink); }
.ship-meter__bar { position: relative; height: 6px; border-radius: var(--radius-pill); background: var(--field); }
.ship-meter__bar span { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--second); transition: width .5s var(--ease); }
.ship-meter__bar svg { position: absolute; top: 50%; left: var(--p, 0%); width: 22px; height: 22px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); color: var(--ink); transform: translate(-50%, -50%); transition: left .5s var(--ease); }

.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line-soft); }
.line__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__variant { margin-top: 3px; font-size: 13px; color: var(--muted); }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

.stepper { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); }
.stepper button:hover { background: var(--field); }
.stepper button svg { width: 14px; height: 14px; stroke-width: 2; }
.stepper output, .stepper span { min-width: 26px; font-family: var(--font-mono); font-size: 14px; text-align: center; color: var(--ink); }
.stepper--lg { height: 52px; }
.stepper--lg button { width: 44px; height: 50px; }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 16px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); cursor: pointer; }
.check input:checked { border-color: var(--second); background: var(--second); }
.check input:checked::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid var(--on-second); border-bottom: 2px solid var(--on-second); transform: rotate(-45deg); }
.check small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; color: var(--ink); }
.totals .price { font-size: 18px; }
.note { font-size: 13px; color: var(--muted); }
.drawer__foot .btn { width: 100%; }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 40px 8px; text-align: center; }
.empty-state svg { width: 56px; height: 56px; color: var(--accent); stroke-width: 1.2; }
.empty-state h3 { font-size: 25px; }

/* Búsqueda */
.search-sheet {
  position: fixed; inset: 0 0 auto 0; margin: 0; width: 100%;
  padding: 22px 0 30px; border-bottom: 1px solid var(--line); background: var(--canvas); color: var(--text);
  transform: translateY(-100%); transition: transform .35s var(--ease);
}
.search-sheet:not([open]) { display: none; }
.search-sheet.is-open { transform: none; }
.search-sheet::backdrop { opacity: 0; transition: opacity .3s; }
.search-sheet.is-open::backdrop { opacity: 1; }
.search__bar { display: flex; align-items: center; gap: 12px; }
.search__field { position: relative; flex: 1; }
.search__field svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.search__field .input { height: 54px; padding-left: 50px; font-size: 16px; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 16px; margin-top: 18px; }
.result { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.result:hover, .result:focus-visible { background: var(--surface); }
.result img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.result small { display: block; color: var(--muted); font-size: 13px; }
.search__hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.search__hint button { margin: 0 2px; padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: none; color: var(--ink); font-size: 13px; }
.search__hint button:hover { background: var(--ink); color: var(--canvas); }

/* Menú móvil */
.mobile-nav { display: grid; gap: 4px; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: var(--display-vars); font-size: 26px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.mobile-nav .count { font-size: 13px; }
.mobile-nav__label { margin: 22px 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Modal (guía de tallas) */
.modal {
  position: fixed; inset: 0; margin: auto;
  width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-panel);
  background: var(--canvas); color: var(--text);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .3s var(--ease);
}
.modal.is-open { opacity: 1; transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { font-size: 30px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table caption { padding: 18px 0 8px; text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--eyebrow); }
.size-table th, .size-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.size-table th { font-weight: 400; color: var(--muted); }
.size-table td:first-child { color: var(--ink); }

/* Avisos (toast) */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 300; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 11px 12px 11px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--canvas); font-size: 14px;
  pointer-events: auto; animation: toast-in .35s var(--ease);
}
.toast button { padding: 4px 12px; border: 1px solid currentColor; border-radius: var(--radius-pill); background: none; color: inherit; font-size: 13px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 17. Probador de diseño ------------------------------------- */
.lab-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); color: var(--ink); font-size: 14px;
}
.lab-toggle svg { width: 18px; height: 18px; }
.lab-toggle:hover, .lab-toggle[aria-expanded="true"] { background: var(--ink); color: var(--canvas); }
@media (max-width: 599px) {
  .lab-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .lab-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.lab {
  position: fixed; left: 16px; bottom: 72px; z-index: 70;
  display: grid; gap: 18px; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--canvas); color: var(--text);
}
.lab[hidden] { display: none; }
.lab h2 { font-size: 22px; }
.lab__intro { margin-top: 4px; font-size: 13px; color: var(--muted); }
.lab fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.lab legend { margin-bottom: 8px; padding: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lab__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lab-opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: none; color: var(--ink); font-size: 13px; text-align: left;
}
.lab-opt:hover { border-color: var(--line); }
.lab-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lab-opt__chips { display: flex; flex: none; }
.lab-opt__chips i { width: 14px; height: 14px; margin-left: -4px; border: 1px solid rgba(0, 0, 0, .3); border-radius: var(--radius-pill); }
.lab-opt__chips i:first-child { margin-left: 0; }
.lab-opt__aa { flex: none; width: 30px; font-size: 22px; line-height: 1; color: var(--ink); }
.lab__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.lab__links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--field); cursor: pointer; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--radius-pill); background: var(--ink); transition: transform .2s var(--ease), background-color .2s; }
.switch:checked { background: var(--second); border-color: var(--second); }
.switch:checked::after { transform: translateX(20px); background: var(--on-second); }

/* ---------- 18. Página de producto ------------------------------------- */
.breadcrumb { padding-block: 18px 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

.pdp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 56px; }
.gallery { display: grid; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .card__badges { top: 16px; left: 16px; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { width: 78px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1px solid transparent; background: var(--surface); outline: 1px solid transparent; outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--line); outline-color: var(--line); }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.pdp__title { margin-top: 10px; font-size: clamp(32px, 3.4vw, 43px); line-height: 1.05; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp__price .price { font-size: 20px; }
.pdp__desc { font-size: 17px; line-height: 1.6; }
.pdp__form { display: grid; gap: 24px; }
.option { margin: 0; padding: 0; border: 0; min-width: 0; }
.option__head { float: left; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; padding: 0; font-size: 14px; color: var(--ink); }
.option .choices, .option__foot { clear: both; }
.option__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.option__foot:empty { display: none; }
.option__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-grid; place-items: center; min-width: 54px; min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink);
  font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s;
}
.choice span:hover { background: var(--surface); }
.choice input:checked + span { background: var(--ink); color: var(--canvas); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice--color span { width: 40px; min-width: 0; height: 40px; min-height: 0; padding: 0; background: var(--c); outline: 1px solid transparent; outline-offset: 3px; }
.choice--color span:hover { background: var(--c); }
.choice--color input:checked + span { background: var(--c); outline: 2px solid var(--ink); }
.option__error { font-size: 14px; color: var(--accent); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reassure { display: grid; gap: 10px; font-size: 14px; }
.reassure li { display: flex; align-items: center; gap: 10px; }
.reassure svg { flex: none; width: 20px; height: 20px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; list-style: none; color: var(--ink); cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion__body { padding-bottom: 18px; font-size: 15px; line-height: 1.6; }
.accordion__body ul { display: grid; gap: 6px; }
.accordion__body li { padding-left: 18px; position: relative; }
.accordion__body li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--accent); }
.related { padding-block: var(--section-gap); }
.not-found { display: grid; justify-items: center; gap: 16px; padding: 96px 0; text-align: center; }
@media (max-width: 899px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pdp__info { position: static; }
  .gallery__main { margin-inline: calc(-1 * var(--gutter)); }
  .thumb { width: 64px; }
}

/* ---------- 19. Movimiento reducido ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
