/* Diseño v3 · copia de /diseño/assets/css/main.css con colores en variables (scripts/dev/v3_import_css.php). */
/* =====================================================================
   SUMINISTROS SERPIS · Sistema de diseño
   ---------------------------------------------------------------------
   1. Tokens        5. Botones y etiquetas   9.  Carrusel
   2. Base          6. Barra superior        10. Pie
   3. Utilidades    7. Cabecera y menú       11. Toasts, cookies, subir
   4. Tipografía    8. Tarjeta de producto   12. Animaciones
   ===================================================================== */

/* 1. TOKENS ---------------------------------------------------------- */
:root {
  /* Marca (logo) */
  --c-brand: #C40018;
  --c-brand-700: #9E0013;
  --c-brand-bright: #EE2A40;     /* rojo sobre fondos oscuros */
  --c-brand-50: #FCEDEF;

  /* Grafito */
  --c-ink: #1D1918;
  --c-ink-950: #0F0D0C;
  --c-ink-900: #151211;
  --c-ink-800: #211D1C;
  --c-ink-700: #2D2826;
  --c-ink-600: #4A4340;

  /* Neutros cálidos */
  --c-text: #1D1918;
  --c-muted: #6B6461;
  --c-subtle: #7A726E;     /* AA sobre blanco */
  --c-bg: #F5F4F2;
  --c-surface: #FFFFFF;
  --c-surface-2: #EEECE9;
  --c-line: #E4E0DC;
  --c-line-strong: #CEC8C3;

  /* Sectores */
  --c-fonta: #1E6FD9;
  --c-elec: #E8A000;
  --c-clima: #0E9FB0;
  --c-herra: #C40018;

  /* Estados */
  --c-ok: #1D9258;
  --c-warn: #D97A00;

  /* ---- Diseño v3 · fase 2: paleta ampliada para el modo oscuro.
     Cada valor es el que estaba escrito a mano en el CSS de /diseño: el aspecto en claro no cambia. ---- */

  /* Superficies y texto semánticos (se redefinen en modo oscuro) */
  --c-on-dark: #FFFFFF;
  --c-text-2: #4A4340;
  --c-brand-fg: #C40018;
  --c-brand-700-fg: #9E0013;
  --c-ok-fg: #1D9258;
  --c-warn-fg: #D97A00;
  --c-surface-soft: #FBFAF9;
  --c-surface-alt: #F1EFEC;
  --c-surface-hover: #EFEDEA;
  --c-surface-3: #E9E6E2;
  --c-black: #000000;

  /* Grafito y marca ampliados */
  --c-ink-650: #3A3533;
  --c-brand-100: #F8DADE;
  --c-brand-300: #FF8E9B;
  --c-brand-400: #F0364A;
  --c-brand-800: #8A0012;
  --c-brand-850: #7E000F;
  --c-brand-950: #3D0008;

  /* Piedra: textos y detalles sobre fondo oscuro */
  --c-stone-100: #E9E4E1;
  --c-stone-200: #D3CCC8;
  --c-stone-250: #CFC8C4;
  --c-stone-300: #BDB5B1;
  --c-stone-350: #A9A19D;
  --c-stone-400: #A39B97;
  --c-stone-450: #9E9692;
  --c-stone-500: #8E8682;

  /* Sectores ampliados (--c-bano: 5.º sector «Baño», familia 14; confirmado por el usuario el 2026-11-24) */
  --c-fonta-50: #EEF4FD;
  --c-fonta-100: #E6F0FC;
  --c-fonta-300: #9CC3FF;
  --c-fonta-700: #1559B3;
  --c-fonta-900: #1D3F73;
  --c-fonta-950: #0F2547;
  --c-elec-50: #FFF6D6;
  --c-elec-100: #FFF0C7;
  --c-elec-200: #F6D77A;
  --c-elec-400: #F2A900;
  --c-elec-600: #E39A00;
  --c-elec-800: #7A4F00;
  --c-elec-950: #3D2A00;
  --c-bano: #7A4FD1;

  /* Estados ampliados */
  --c-ok-50: #E8F6EE;
  --c-ok-100: #E3F4EA;
  --c-ok-300: #7EE2A8;
  --c-ok-bright: #3BD47A;
  --c-ok-700: #136B40;
  --c-ok-800: #135A37;
  --c-lime: #8DB600;
  --c-whatsapp: #1FA855;
  --c-warn-50: #FFF5E5;
  --c-warn-75: #FFF1DB;
  --c-warn-700: #8F5200;
  --c-warn-800: #6E4100;
  --c-gold: #C8962E;
  --c-gold-700: #B98622;

  /* Canales RGB para transparencias: rgba(var(--rgb-x), alfa) */
  --rgb-ink: 29, 25, 24;
  --rgb-ink-950: 15, 13, 12;
  --rgb-black: 0, 0, 0;
  --rgb-surface: 255, 255, 255;
  --rgb-on-dark: 255, 255, 255;
  --rgb-bg: 245, 244, 242;
  --rgb-brand: 196, 0, 24;
  --rgb-fonta: 30, 111, 217;
  --rgb-fonta-300: 156, 195, 255;
  --rgb-gold: 200, 150, 46;
  --rgb-ok: 29, 146, 88;
  --rgb-ok-bright: 59, 212, 122;

  /* Tipografía */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Formas */
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(var(--rgb-ink), .06), 0 1px 1px rgba(var(--rgb-ink), .04);
  --shadow: 0 10px 28px -12px rgba(var(--rgb-ink), .22), 0 2px 6px rgba(var(--rgb-ink), .05);
  --shadow-lg: 0 30px 70px -24px rgba(var(--rgb-ink), .38);

  --container: 1320px;
  --gutter: clamp(16px, 3.5vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
::selection { background: var(--c-brand); color: var(--c-on-dark); }
:focus-visible { outline: 2px solid var(--c-brand-fg); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* 3. UTILIDADES ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { 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: 12px; top: -80px; z-index: 999; background: var(--c-ink); color: var(--c-on-dark); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--c-muted); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 12px; height: 12px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.5; }

/* Trama de plano técnico reutilizable */
.blueprint {
  background-image:
    linear-gradient(rgba(var(--rgb-on-dark), .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rgb-on-dark), .05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 4. TIPOGRAFÍA ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-brand-fg);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--c-on-dark); }
.eyebrow--light::before { background: var(--c-brand-bright); }

.section { padding-block: clamp(56px, 7.5vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--c-surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 4.4vw, 56px); text-transform: uppercase; margin-top: 14px; letter-spacing: -.005em; }
.section-title em { font-style: normal; color: var(--c-brand-fg); }
.section-sub { color: var(--c-muted); max-width: 560px; margin-top: 14px; font-size: 16px; }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; transition: gap .25s var(--ease), color .2s; }
.link-arrow:hover { gap: 12px; color: var(--c-brand-fg); }

/* 5. BOTONES Y ETIQUETAS --------------------------------------------- */
.btn {
  --h: 46px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand); color: var(--c-on-dark); box-shadow: 0 8px 20px -8px rgba(var(--rgb-brand), .6); }
.btn--primary:hover { background: var(--c-brand-700); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(var(--rgb-on-dark), .28) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(110%); }
.btn--dark { background: var(--c-ink); color: var(--c-on-dark); }
.btn--dark:hover { background: var(--c-ink-700); }
.btn--outline { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-text); }
.btn--outline:hover { border-color: var(--c-text); }
.btn--light { background: var(--c-surface); color: var(--c-text); }
.btn--light:hover { background: var(--c-surface-2); }
.btn--ghost-light { background: rgba(var(--rgb-on-dark), .05); border-color: rgba(var(--rgb-on-dark), .22); color: var(--c-on-dark); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(var(--rgb-on-dark), .12); border-color: rgba(var(--rgb-on-dark), .4); }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 15.5px; }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--icon { width: var(--h); padding: 0; }
.btn--round { border-radius: 999px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: var(--r-xs); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge--sale { background: var(--c-brand); color: var(--c-on-dark); }
.badge--new { background: var(--c-ink); color: var(--c-on-dark); }
.badge--top { background: var(--c-elec-100); color: var(--c-elec-800); }
.badge--top .icon { fill: currentColor; stroke: none; }
.badge--ok { background: var(--c-ok-100); color: var(--c-ok-700); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--c-text); }

/* 6. BARRA SUPERIOR -------------------------------------------------- */
.topbar { background: var(--c-ink-900); color: var(--c-stone-250); font-size: 13px; position: relative; z-index: 51; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.ticker { position: relative; height: 20px; flex: 1; min-width: 0; overflow: hidden; }
.ticker__item { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); }
.ticker__item.is-active { opacity: 1; transform: none; }
.ticker__item.is-leaving { opacity: 0; transform: translateY(-10px); }
.ticker__item .icon { color: var(--c-brand-bright); width: 16px; height: 16px; }
.ticker__item strong { color: var(--c-on-dark); font-weight: 600; }
.topbar__links { display: flex; align-items: center; gap: 22px; flex: none; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__links a:hover { color: var(--c-on-dark); }
.topbar__links .icon { width: 15px; height: 15px; }

.vat-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--rgb-on-dark), .08); }
.vat-toggle__label { padding: 0 8px 0 6px; font-size: 12px; color: var(--c-stone-450); }
.vat-toggle button { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c-stone-300); transition: background .2s, color .2s; }
.vat-toggle button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-text); }

/* 7. CABECERA Y MENÚ ------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(var(--rgb-surface), .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 12px 32px -20px rgba(var(--rgb-ink), .4); }
.header__main { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); height: 84px; transition: height .3s var(--ease); }
.header.is-scrolled .header__main { height: 70px; }
.header__logo { flex: none; }
.header__logo img { width: 170px; transition: width .3s var(--ease); }
.header.is-scrolled .header__logo img { width: 146px; }
.header__burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); place-items: center; margin-left: -8px; }
.header__burger .icon { width: 24px; height: 24px; }

.search { position: relative; flex: 1; min-width: 0; max-width: 680px; }
.search__field { display: flex; align-items: center; height: 50px; padding-left: 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); background: var(--c-bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.search__field:hover { border-color: var(--c-subtle); }
.search__field:focus-within { border-color: var(--c-text); background: var(--c-surface); box-shadow: 0 0 0 4px rgba(var(--rgb-ink), .07); }
.search__field > .icon { color: var(--c-muted); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search__input::placeholder { color: var(--c-subtle); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__kbd { font-family: var(--f-mono); font-size: 11px; line-height: 1; padding: 4px 7px; margin-right: 8px; border: 1px solid var(--c-line-strong); border-bottom-width: 2px; border-radius: 5px; color: var(--c-muted); background: var(--c-surface); }
.search__btn.btn { --h: 40px; margin: 4px; border-radius: 9px; padding: 0 18px; }
.search__panel { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 70; padding: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease-out); }
.search__label { padding: 8px 10px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-subtle); }
.search__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.search__tags .chip { cursor: pointer; }
.search__tags .chip .icon { width: 14px; height: 14px; color: var(--c-subtle); }
.suggest { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--r-sm); transition: background .15s; }
.suggest:hover, .suggest.is-active { background: var(--c-bg); }
.suggest__img { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--c-bg); padding: 6px; }
.suggest__name { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.suggest__name mark { background: none; color: var(--c-brand-fg); font-weight: 700; }
.suggest__meta { font-size: 12px; color: var(--c-muted); }
.suggest__meta .mono { font-size: 11px; }
.suggest__price { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.search__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 12px; border-top: 1px solid var(--c-line); font-weight: 600; font-size: 14px; color: var(--c-brand-fg); }
.search__empty { padding: 18px 10px; color: var(--c-muted); font-size: 14px; }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.hact { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; border-radius: var(--r); transition: background .2s; }
.hact:hover { background: var(--c-bg); }
.hact .icon { width: 24px; height: 24px; }
.hact__txt small { display: block; font-size: 12px; line-height: 1.2; color: var(--c-muted); }
.hact__txt strong { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; }
.hact__badge { position: absolute; top: 6px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--c-surface); background: var(--c-brand); color: var(--c-on-dark); font-size: 11px; font-weight: 700; line-height: 1; }
.hact__badge.is-bump { animation: bump .5s var(--ease-out); }
.hact--cart { background: var(--c-ink); color: var(--c-on-dark); margin-left: 6px; padding: 0 16px 0 14px; }
.hact--cart:hover { background: var(--c-ink-700); }
.hact--cart .hact__txt small { color: var(--c-stone-350); }
.hact--cart .hact__badge { border-color: var(--c-text); left: 28px; }

/* Menú principal */
.nav { position: relative; border-top: 1px solid var(--c-line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 52px; }
.nav__list { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.nav__link > .icon { width: 18px; height: 18px; color: var(--sector, var(--c-muted)); }
.nav__link .chev { width: 14px; height: 14px; opacity: .45; transition: transform .3s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -7px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sector, var(--c-brand)); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__item:hover > .nav__link, .nav__item.is-open > .nav__link { background: var(--c-bg); }
.nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__link--hot { color: var(--c-brand-fg); }
.nav__link--hot > .icon { color: var(--c-brand-fg); }
.nav__sep { width: 1px; height: 22px; background: var(--c-line); margin: 0 8px; }
.nav__pro { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--c-brand-50); color: var(--c-brand-700-fg); font-size: 13.5px; font-weight: 600; transition: background .2s; white-space: nowrap; }
.nav__pro:hover { background: var(--c-brand-100); }
.nav__pro span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c-brand); color: var(--c-on-dark); }
.nav__pro .icon { width: 16px; height: 16px; }

/* Menú grande */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 40px 60px -30px rgba(var(--rgb-ink), .4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 310px; gap: 36px; padding-block: 34px 38px; }
.mega__group h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); font-family: var(--f-body); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.mega__group h4::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--sector); }
.mega__group a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--c-text-2); transition: color .15s, transform .2s var(--ease); }
.mega__group a:hover { color: var(--c-text); transform: translateX(4px); }
.mega__group .mega__more { margin-top: 6px; font-weight: 600; font-size: 13.5px; color: var(--sector); }
.mega__promo { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 240px; padding: 24px; border-radius: var(--r-lg); color: var(--c-on-dark); background: var(--c-ink); isolation: isolate; }
.mega__promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--sector) 75%, transparent), transparent 70%); }
.mega__promo .eyebrow { color: var(--c-on-dark); font-size: 11px; }
.mega__promo .eyebrow::before { background: var(--sector); }
.mega__promo h5 { font-size: 28px; text-transform: uppercase; margin: 12px 0 6px; max-width: 70%; }
.mega__promo p { font-size: 13.5px; color: var(--c-stone-200); max-width: 62%; }
.mega__promo img { position: absolute; right: -18px; bottom: -14px; width: 160px; z-index: -1; transition: transform .5s var(--ease); }
.mega__promo:hover img { transform: translate(-6px, -6px) rotate(-3deg); }
.mega__promo .link-arrow { margin-top: auto; align-self: flex-start; font-size: 13.5px; }
.mega__foot { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 22px; border-top: 1px dashed var(--c-line); font-size: 13px; color: var(--c-muted); }
.mega__foot .chip { height: 30px; }

/* Panel móvil */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .4s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(var(--rgb-ink-950), .55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(390px, 90vw); display: flex; flex-direction: column; background: var(--c-surface); transform: translateX(-100%); transition: transform .4s var(--ease-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.drawer__head img { width: 138px; }
.drawer__close { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-bg); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 0 24px; overscroll-behavior: contain; }
.drawer details { border-bottom: 1px solid var(--c-line); }
.drawer summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--sector) 12%, var(--c-surface)); color: var(--sector); }
.drawer summary .chev { margin-left: auto; width: 16px; height: 16px; color: var(--c-subtle); transition: transform .3s; }
.drawer details[open] summary .chev { transform: rotate(180deg); }
.drawer__sub { padding: 0 20px 16px 66px; display: grid; gap: 2px; }
.drawer__sub a { padding: 7px 0; font-size: 14.5px; color: var(--c-text-2); }
.drawer__sub a:last-child { color: var(--sector); font-weight: 600; }
.drawer__links { padding: 12px 20px; display: grid; gap: 2px; }
.drawer__links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-weight: 500; }
.drawer__links .icon { color: var(--c-muted); }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--c-line); background: var(--c-bg); display: grid; gap: 10px; }

/* 8. TARJETA DE PRODUCTO --------------------------------------------- */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.pcard:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow); transform: translateY(-4px); }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .84; overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, var(--c-surface), var(--c-surface-hover)); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(var(--rgb-ink), .03)); }
.pcard__media img { width: 74%; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07) rotate(-1.5deg); }
.pcard__badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pcard__fav { position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); color: var(--c-muted); box-shadow: var(--shadow-sm); transition: color .2s, transform .2s var(--ease); }
.pcard__fav:hover { color: var(--c-brand-fg); transform: scale(1.08); }
.pcard__fav[aria-pressed="true"] { color: var(--c-brand-fg); }
.pcard__fav[aria-pressed="true"] .icon { fill: currentColor; animation: bump .45s var(--ease-out); }
.pcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__brand { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pcard__ref { font-family: var(--f-mono); font-size: 11px; color: var(--c-subtle); }
.pcard__title { font-family: var(--f-body); font-size: 14.5px; font-weight: 600; line-height: 1.38; min-height: 2.76em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a { transition: color .2s; }
.pcard__title a:hover { color: var(--c-brand-fg); }
.pcard__specs { display: none; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--c-ok-fg); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.stock--low { color: var(--c-warn-fg); }
.pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .005em; }
.price--sale { color: var(--c-brand-fg); }
.price-tax { font-size: 11.5px; font-weight: 500; color: var(--c-muted); }
.price-old { font-size: 13px; color: var(--c-subtle); }
.pcard__actions { display: flex; gap: 8px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); flex: none; }
.qty button { width: 30px; height: 100%; display: grid; place-items: center; color: var(--c-muted); transition: color .2s; }
.qty button:hover { color: var(--c-text); }
.qty input { width: 32px; height: 100%; padding: 0; border: 0; outline: 0; text-align: center; font-weight: 600; font-size: 14px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add.btn { --h: 40px; flex: 1; padding: 0 12px; }
.btn-add.is-added { background: var(--c-ok); }

/* 9. CARRUSEL -------------------------------------------------------- */
.carousel { --cols: 4; --gap: 20px; position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 4px 16px; margin: -8px -4px -16px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__foot { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.carousel__progress { flex: 1; height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 25%; background: var(--c-ink); border-radius: 3px; transition: transform .3s var(--ease), width .3s; transform-origin: left; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--c-line-strong); background: var(--c-surface); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.carousel__btn:hover:not(:disabled) { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.carousel__btn:disabled { opacity: .35; cursor: default; }

/* 10. PIE ------------------------------------------------------------ */
.newsletter { position: relative; overflow: hidden; background: var(--c-brand); color: var(--c-on-dark); isolation: isolate; }
.newsletter::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 140% at 100% 0%, rgba(var(--rgb-on-dark), .16), transparent 60%),
  repeating-linear-gradient(-45deg, rgba(var(--rgb-black), .05) 0 2px, transparent 2px 14px); }
.newsletter__inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: 10px 48px; padding-block: 44px; }
.newsletter__inner > div { grid-row: span 2; }
.newsletter h2 { font-size: clamp(28px, 3.2vw, 40px); text-transform: uppercase; }
.newsletter p { color: rgba(var(--rgb-on-dark), .82); margin-top: 8px; }
.newsletter__form { display: flex; gap: 8px; padding: 6px; border-radius: var(--r); background: rgba(var(--rgb-black), .18); }
.newsletter__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); }
.newsletter__form .btn { --h: 48px; }
.newsletter__legal { grid-column: 2; font-size: 12px; color: rgba(var(--rgb-on-dark), .7); }
.newsletter__legal a { text-decoration: underline; }

.footer { position: relative; background: var(--c-ink-900); color: var(--c-stone-300); font-size: 14px; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image:
  linear-gradient(rgba(var(--rgb-on-dark), .03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--rgb-on-dark), .03) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(transparent, #000 40%); }
.footer__main { position: relative; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-block: 72px 56px; }
.footer__brand img { width: 180px; }
.footer__brand > p { margin: 20px 0 24px; max-width: 320px; line-height: 1.65; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact > a, .footer__contact > span { display: flex; align-items: center; gap: 12px; color: var(--c-stone-100); line-height: 1.35; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--c-brand-bright); }
.footer__contact small { display: block; font-size: 12px; color: var(--c-stone-500); }
.footer h3 { margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-on-dark); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--c-on-dark); }
.footer__social { display: flex; gap: 8px; margin-top: 28px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--rgb-on-dark), .06); color: var(--c-stone-100); transition: background .2s, transform .2s var(--ease); }
.footer__social a:hover { background: var(--c-brand); transform: translateY(-2px); }
.footer__social .icon { width: 18px; height: 18px; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer__bottom { position: relative; border-top: 1px solid rgba(var(--rgb-on-dark), .08); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 22px; font-size: 13px; color: var(--c-stone-500); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a:hover { color: var(--c-on-dark); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(var(--rgb-on-dark), .07); color: var(--c-stone-100); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }

/* 11. TOASTS, COOKIES, SUBIR ----------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 84px; z-index: 300; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; width: min(380px, calc(100vw - 40px)); padding: 12px 14px; border-radius: var(--r); background: var(--c-ink); color: var(--c-on-dark); box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in .45s var(--ease-out); }
.toast.is-out { animation: toast-out .35s var(--ease) forwards; }
.toast img { width: 48px; height: 48px; padding: 4px; border-radius: 8px; background: var(--c-surface); }
.toast__txt { flex: 1; font-size: 13.5px; line-height: 1.4; }
.toast__txt strong { display: block; font-size: 14px; }
.toast__txt span { color: var(--c-stone-300); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast a { font-weight: 600; font-size: 13px; color: var(--c-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.toast__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ok); flex: none; }

.cookies { position: fixed; left: 20px; bottom: 20px; z-index: 250; width: min(440px, calc(100vw - 40px)); padding: 22px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); animation: toast-in .5s var(--ease-out) .8s both; }
.cookies h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; text-transform: uppercase; }
.cookies p { margin: 10px 0 18px; font-size: 13.5px; color: var(--c-muted); }
.cookies p a { color: var(--c-text); text-decoration: underline; }
.cookies__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookies__actions .btn { flex: 1; --h: 42px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: var(--c-on-dark); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--c-brand); }
.to-top svg.ring { position: absolute; inset: -3px; width: 54px; height: 54px; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--c-brand-bright); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: var(--p, 100); stroke-linecap: round; }

.fly { position: fixed; z-index: 400; pointer-events: none; border-radius: 12px; background: var(--c-surface); padding: 6px; box-shadow: var(--shadow-lg); }

/* 12. ANIMACIONES ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 10px transparent; } }

/* RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav__pro { display: none; }
  .mega__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega__promo { display: none; }
}
@media (max-width: 1200px) {
  .carousel { --cols: 3; }
  .hact__txt.hide-lg { display: none; }
  .footer__main { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: start; }
  .footer__brand > p { margin: 0; }
  .footer__brand .footer__contact { grid-column: 2; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .topbar__links .hide-md { display: none; }
  .header__burger { display: grid; }
  .header__main { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px 16px; }
  .header.is-scrolled .header__main { height: auto; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 138px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search__field { height: 46px; }
  .search__kbd { display: none; }
  .hact__txt { display: none; }
  .hact { padding: 0 10px; height: 44px; }
  .hact--cart { padding: 0 12px; }
  .newsletter__inner { grid-template-columns: minmax(0, 1fr); }
  .newsletter__legal { grid-column: 1; }
}
@media (max-width: 768px) {
  .carousel { --cols: 2; --gap: 14px; }
  .topbar__links { display: none; }
  .ticker { text-align: center; }
  .ticker__item { justify-content: center; }
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 56px 40px; }
  .footer__brand { display: block; }
  .footer__brand > p { margin: 18px 0 22px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .hact--fav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .carousel { --cols: 1.35; }
  .search__btn.btn { display: none; }
  .search__field { padding-right: 6px; }
  .newsletter__form { flex-direction: column; }
  .pcard__body { padding: 14px; }
  .price { font-size: 26px; }
  .toasts { right: 12px; bottom: 12px; }
  .cookies { left: 12px; bottom: 12px; padding: 18px; }
}
/* Móviles muy estrechos (≤ 380 px) */
@media (max-width: 380px) {
  .header__main { gap: 10px 8px; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 116px; }
  .hact, .hact--cart { padding: 0 8px; }
  .btn { white-space: normal; height: auto; min-height: var(--h); padding-block: 8px; line-height: 1.25; text-align: center; }
  .section-title { font-size: 30px; overflow-wrap: break-word; }
  h1, h2, h3 { overflow-wrap: break-word; }
  .stepper li:not(.is-current) span { display: none; }
  .stepper li { gap: 6px; }
  .stepper li:not(:last-child)::after { margin: 0 6px; }
  .footer__main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 340px) {
  .stepper li span { display: none; }
  .stepper li { gap: 0; }
  .stepper li:not(:last-child)::after { margin: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 13. COMPONENTES DE PÁGINA ------------------------------------------- */
/* Migas de pan */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--c-muted); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--c-text); }
.crumbs .icon { width: 14px; height: 14px; color: var(--c-subtle); }
.crumbs [aria-current] { color: var(--c-text); font-weight: 500; }
.crumbs--light { color: var(--c-stone-400); }
.crumbs--light a:hover, .crumbs--light [aria-current] { color: var(--c-on-dark); }

/* Cabecera de página interior */
.page-hero { --sector: var(--c-brand); position: relative; overflow: hidden; isolation: isolate; padding: 28px 0 40px; background: var(--c-ink-950); color: var(--c-on-dark); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 120% at 88% 50%, color-mix(in srgb, var(--sector) 42%, transparent), transparent 70%),
  linear-gradient(rgba(var(--rgb-on-dark), .045) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(var(--rgb-on-dark), .045) 1px, transparent 1px) 0 0 / 28px 28px; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.page-hero h1 { margin-top: 22px; font-size: clamp(38px, 5vw, 64px); text-transform: uppercase; line-height: .95; }
.page-hero h1 em { font-style: normal; color: var(--sector); filter: brightness(1.25); }
.page-hero__lead { margin-top: 12px; max-width: 620px; color: var(--c-stone-250); font-size: 16px; }
.page-hero__art { position: relative; width: 200px; height: 150px; margin-bottom: -40px; }
.page-hero__art img { position: absolute; right: 0; bottom: 0; width: 190px; filter: drop-shadow(0 30px 30px rgba(var(--rgb-black), .55)); animation: float 7s ease-in-out infinite; }
.page-hero__art::before { content: ""; position: absolute; right: -10px; bottom: -40px; width: 230px; height: 230px; border-radius: 50%; border: 1px dashed rgba(var(--rgb-on-dark), .18); animation: spin 50s linear infinite; }
.page-hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--rgb-on-dark), .16); background: rgba(var(--rgb-on-dark), .05); color: var(--c-stone-100); font-size: 13.5px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.pill:hover { border-color: rgba(var(--rgb-on-dark), .4); }
.pill.is-active { background: var(--c-surface); border-color: var(--c-surface); color: var(--c-text); }
.pill small { font-family: var(--f-mono); font-size: 11px; opacity: .6; }

/* Formularios */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; }
.input, .select { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); outline: 0; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: var(--c-text); box-shadow: 0 0 0 4px rgba(var(--rgb-ink), .07); }
.select { appearance: none; padding-right: 40px; cursor: pointer; background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1918' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.check { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-on-dark); transition: background .15s, border-color .15s, transform .15s; }
.check__box .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s var(--ease-out); }
.check:hover .check__box { border-color: var(--c-text); }
.check input:checked + .check__box { background: var(--c-ink); border-color: var(--c-text); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-brand-fg); outline-offset: 2px; }
.check__label { flex: 1; min-width: 0; }
.check__count { font-family: var(--f-mono); font-size: 11.5px; color: var(--c-subtle); }
.check.is-empty { opacity: .45; }
.switch { position: relative; width: 40px; height: 22px; flex: none; border-radius: 999px; background: var(--c-line-strong); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-surface); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out); }
.check input:checked ~ .switch { background: var(--c-brand); }
.check input:checked ~ .switch::after { transform: translateX(18px); }

/* Paginación */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.pager button, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.pager button { border: 1px solid var(--c-line); background: var(--c-surface); transition: border-color .2s, background .2s, color .2s; }
.pager button:hover:not(:disabled) { border-color: var(--c-text); }
.pager button[aria-current="page"] { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.pager button:disabled { opacity: .4; cursor: default; }

/* Pestañas de sección (anclas) */
.secnav { position: sticky; top: var(--sticky-top, 122px); z-index: 20; background: rgba(var(--rgb-bg), .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.secnav__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.secnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; font-weight: 600; font-size: 14.5px; color: var(--c-muted); white-space: nowrap; transition: color .2s; }
.secnav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.secnav a:hover, .secnav a.is-active { color: var(--c-text); }
.secnav a.is-active::after { transform: scaleX(1); }
.secnav a small { font-family: var(--f-mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--c-surface-2); color: var(--c-muted); }

/* Estrellas */
.stars { --v: 4.7; position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; color: var(--c-line-strong); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--v) / 5 * 100%); overflow: hidden; color: var(--c-elec-400); white-space: nowrap; }

@media (max-width: 768px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero__art { display: none; }
  .secnav { top: var(--sticky-top, 129px); }
}

/* 14. FORMULARIOS AVANZADOS, TABLAS Y ESTADOS ------------------------- */
.panel { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 24px; text-transform: uppercase; }
.panel__title .icon { color: var(--c-brand-fg); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field__hint { font-size: 12.5px; color: var(--c-muted); }
.field__error { display: none; font-size: 12.5px; color: var(--c-brand-fg); font-weight: 500; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--c-brand-fg); box-shadow: 0 0 0 4px rgba(var(--rgb-brand), .08); }
.field.is-invalid .field__error { display: block; }
.field.is-valid .input { border-color: var(--c-ok-fg); }
.req { color: var(--c-brand-fg); }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--c-subtle); pointer-events: none; }
.input-wrap > .icon ~ .input { padding-left: 42px; }
.input-wrap__btn { position: absolute; right: 6px; top: 50%; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; transform: translateY(-50%); color: var(--c-muted); font-size: 12.5px; font-weight: 600; }
.input-wrap__btn:hover { background: var(--c-bg); color: var(--c-text); }
.input--lg { height: 52px; font-size: 15.5px; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.strength i { height: 4px; border-radius: 4px; background: var(--c-line); transition: background .3s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--c-brand); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--c-warn); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--c-lime); }
.strength[data-level="4"] i { background: var(--c-ok); }

/* Tarjetas de opción (radio) */
.opts { display: grid; gap: 10px; }
.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.opt:hover { border-color: var(--c-text-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__radio { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--c-line-strong); background: var(--c-surface); transition: border .15s; }
.opt__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--c-bg); color: var(--c-text-2); transition: background .2s, color .2s; }
.opt__body { flex: 1; min-width: 0; }
.opt__body strong { display: block; font-size: 14.5px; }
.opt__body small { display: block; margin-top: 2px; font-size: 13px; color: var(--c-muted); line-height: 1.45; }
.opt__extra { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.opt__extra.is-free { color: var(--c-ok-fg); }
.opt:has(input:checked) { border-color: var(--c-text); box-shadow: 0 0 0 3px rgba(var(--rgb-ink), .06); }
.opt:has(input:checked) .opt__radio { border: 6px solid var(--c-text); }
.opt:has(input:checked) .opt__icon { background: var(--c-ink); color: var(--c-on-dark); }
.opt:has(input:focus-visible) { outline: 2px solid var(--c-brand-fg); outline-offset: 2px; }
.opt--big { flex-direction: column; padding: 22px; }
.opt--big .opt__radio { position: absolute; top: 18px; right: 18px; }

/* Indicador de pasos */
.stepper { display: flex; align-items: center; counter-reset: st; }
.stepper li { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--c-subtle); }
.stepper li:last-child { flex: none; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--c-line); transition: background .4s; }
.stepper li::before { counter-increment: st; content: counter(st); width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c-line-strong); background: var(--c-surface); font-size: 14px; transition: all .3s; }
.stepper li.is-current { color: var(--c-text); }
.stepper li.is-current::before { border-color: var(--c-text); background: var(--c-ink); color: var(--c-on-dark); box-shadow: 0 0 0 5px rgba(var(--rgb-ink), .08); }
.stepper li.is-done { color: var(--c-text); cursor: pointer; }
.stepper li.is-done::before { content: "\2713"; border-color: var(--c-ok-fg); background: var(--c-ok); color: var(--c-on-dark); }
.stepper li.is-done::after { background: var(--c-ok); }

/* Estados */
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--c-ok-100); color: var(--c-ok-700); }
.status--info { background: var(--c-fonta-100); color: var(--c-fonta-700); }
.status--warn { background: var(--c-warn-75); color: var(--c-warn-700); }
.status--danger { background: var(--c-brand-50); color: var(--c-brand-700-fg); }
.status--muted { background: var(--c-surface-2); color: var(--c-muted); }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.5; }
.alert .icon { margin-top: 1px; }
.alert--info { background: var(--c-fonta-50); color: var(--c-fonta-900); }
.alert--ok { background: var(--c-ok-50); color: var(--c-ok-800); }
.alert--warn { background: var(--c-warn-50); color: var(--c-warn-800); }

/* Tablas */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 12px 16px; text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-subtle); background: var(--c-bg); border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--c-surface-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .mono { font-size: 13px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-sm); color: var(--c-muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--c-bg); color: var(--c-text); }
.icon-btn .icon { width: 18px; height: 18px; }

/* Check animado de éxito */
.success-mark { width: 96px; height: 96px; }
.success-mark circle { fill: none; stroke: var(--c-ok-fg); stroke-width: 3; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s var(--ease-out) forwards; }
.success-mark path { fill: none; stroke: var(--c-ok-fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease-out) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  .form-grid, .opts--2, .opts--3 { grid-template-columns: minmax(0, 1fr); }
  .stepper li span { display: none; }
  .stepper li { gap: 0; }
  .stepper li:not(:last-child)::after { margin: 0 4px; }
  .stepper li.is-current span { display: inline; }
}

/* Banda de ayuda (reutilizable) */
.help-band { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.help-band__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--c-brand-50); color: var(--c-brand-fg); flex: none; }
.help-band h2 { font-size: 26px; text-transform: uppercase; }
.help-band p { margin-top: 4px; color: var(--c-muted); }
.help-band__actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 640px) {
  .help-band { padding: 22px; }
  .help-band__actions { margin-left: 0; width: 100%; }
  .help-band__actions .btn { flex: 1; }
}

/* Estado vacío (reutilizable) */
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 24px; text-align: center; border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-surface); }
.empty__art { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--c-bg); color: var(--c-subtle); }
.empty__art::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed var(--c-line-strong); animation: spin 20s linear infinite; }
.empty h3 { font-size: 30px; text-transform: uppercase; }
.empty p { max-width: 440px; color: var(--c-muted); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.empty__sub { margin-top: 14px; font-size: 13.5px; color: var(--c-muted); }
/* Búsqueda sin resultados que se ha relajado (quitando una palabra) */
.relax { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: 14.5px; }
.relax a { font-weight: 600; text-decoration: underline; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(var(--rgb-on-dark), .35); border-top-color: var(--c-on-dark); animation: spin .7s linear infinite; }

/* 15. ESTADO ACTIVO DEL MENÚ E IMPRESIÓN ----------------------------- */
.nav__link.is-current { background: var(--c-bg); }
.nav__link.is-current::after { transform: scaleX(1); }

@media print {
  .topbar, .header, .newsletter, .footer, .cookies, .toasts, .to-top, .buybar, .drawer { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { text-decoration: underline; }
  .page-hero { background: none !important; color: #000; padding: 0 0 12pt; }
  .page-hero::before { display: none; }
  .page-hero h1 em { color: #000; filter: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
.chip--fac small { margin-left: 4px; color: var(--c-subtle); font-family: var(--f-mono); font-size: 11px; }
