/* === design-system/tokens.css === */
/* ============================================================================
   CANTOVI · Design Tokens
   Fuente de verdad: Figma "CANTOVI · UI" (fileKey AOUiO80By0oFlUiCSK1f6U)
   Exportado 2026-07-25. NO editar valores a mano: re-exportar desde Figma.
   Capas:  primitivos  →  semánticos  →  componente
   ========================================================================== */

:root {
  /* ---- PRIMITIVE · Color ------------------------------------------------ */
  --base-white: #ffffff;
  --base-black: #030712;

  --red-50:#fef2f2; --red-100:#fee2e2; --red-200:#fecaca; --red-300:#fca5a5;
  --red-400:#f87171; --red-500:#ef4444; --red-600:#dc2626; --red-700:#b91c1c;
  --red-800:#991b1b; --red-900:#7f1d1d; --red-950:#450a0a;

  --green-50:#e6faee; --green-100:#d0f5e1; --green-200:#a2ecc2; --green-300:#73e2a4;
  --green-400:#45d985; --green-500:#27be69; --green-600:#1f9854; --green-700:#17723f;
  --green-800:#104c2a; --green-900:#082615; --green-950:#031109;

  --yellow-50:#fff8e5; --yellow-100:#fff3d1; --yellow-200:#ffe59e; --yellow-300:#ffd970;
  --yellow-400:#ffd970; --yellow-500:#ffbf0f; --yellow-600:#d69d00; --yellow-700:#a37800;
  --yellow-800:#6b4f00; --yellow-900:#382900; --yellow-950:#1a1300;

  --grey-50:#f7f8f8; --grey-100:#e6e7e8; --grey-200:#d4d6d8; --grey-300:#bfc2c6;
  --grey-400:#adb1b6; --grey-500:#8c9298; --grey-600:#666d76; --grey-700:#404953;
  --grey-800:#333d48; --grey-900:#1a2431; --grey-950:#1b2124;

  --cian-50:#e3f9fc; --cian-100:#c8f2f9; --cian-200:#91e6f3; --cian-300:#59d9ed;
  --cian-400:#22cde7; --cian-500:#14a2b8; --cian-600:#108293; --cian-700:#0c616e;
  --cian-800:#08414b; --cian-900:#042025; --cian-950:#021012;

  --purple-50:#f2e5ff; --purple-100:#e5ccff; --purple-200:#cc99ff; --purple-300:#b266ff;
  --purple-400:#9933ff; --purple-500:#5a25e5; --purple-600:#6600cc; --purple-700:#4c0099;
  --purple-800:#330066; --purple-900:#190033; --purple-950:#0d001a;

  --blue-50:#e5f2ff; --blue-100:#cce4ff; --blue-200:#99caff; --blue-300:#66afff;
  --blue-400:#3395ff; --blue-500:#027bff; --blue-600:#0062cc; --blue-700:#004999;
  --blue-800:#003166; --blue-900:#001833; --blue-950:#000c1a;

  --pink-50:#ffe5f2; --pink-100:#ffcce6; --pink-200:#ff99cc; --pink-300:#ff66b3;
  --pink-400:#ff3399; --pink-500:#ff0080; --pink-600:#cc0066; --pink-700:#99004d;
  --pink-800:#660033; --pink-900:#33001a; --pink-950:#1a000d;

  --brand-50:#fff7ed; --brand-100:#ffedd5; --brand-200:#fed7aa; --brand-300:#fdba74;
  --brand-400:#fb923c; --brand-500:#f97316; --brand-600:#ea580c; --brand-700:#c2410c;
  --brand-800:#9a3412; --brand-900:#7c2d12; --brand-950:#431407;

  --opacity-dark-05:#0000000d; --opacity-dark-10:#0000001a; --opacity-dark-20:#00000033;
  --opacity-dark-30:#0000004d; --opacity-dark-40:#00000066; --opacity-dark-50:#00000080;
  --opacity-dark-60:#00000099; --opacity-dark-80:#000000cc; --opacity-dark-90:#000000e5;
  --opacity-dark-95:#000000f2;
  --opacity-light-05:#ffffff0d; --opacity-light-10:#ffffff1a; --opacity-light-20:#ffffff33;
  --opacity-light-30:#ffffff4d; --opacity-light-40:#ffffff66; --opacity-light-50:#ffffff80;
  --opacity-light-60:#ffffff99; --opacity-light-80:#ffffffcc; --opacity-light-90:#ffffffe5;
  --opacity-light-95:#fffffff2;

  /* ---- PRIMITIVE · Radius ---------------------------------------------- */
  --radius-none: 0px;   --radius-050: 2px;  --radius-100: 4px;  --radius-200: 8px;
  --radius-300: 12px;   --radius-400: 16px; --radius-500: 20px; --radius-600: 24px;
  --radius-full: 9999px;

  /* ---- PRIMITIVE · Type ------------------------------------------------ */
  --font-family-base: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-size-12:12px; --font-size-14:14px; --font-size-16:16px; --font-size-18:18px;
  --font-size-20:20px; --font-size-24:24px; --font-size-28:28px; --font-size-32:32px;
  --font-size-36:36px; --font-size-40:40px; --font-size-48:48px; --font-size-56:56px;

  /* ---- SEMANTIC · Color (aliases → primitivos) ------------------------- */
  --bg-default: var(--grey-50);
  --bg-pastel: #f3f0ea;
  --bg-inverse: var(--grey-950);
  --fg-default: var(--grey-950);
  --fg-inverse: var(--grey-50);
  --fg-brand: var(--brand-600);
  --fg-brand-inverse: var(--brand-300);
  --border-default: var(--grey-700);

  /* Button · Primary */
  --btn-primary-bg: var(--brand-700);
  --btn-primary-bg-hover: var(--brand-800);
  --btn-primary-fg: var(--base-white);
  /* Button · Neutral */
  --btn-neutral-bg: var(--grey-950);
  --btn-neutral-bg-hover: var(--brand-700);
  --btn-neutral-fg: var(--grey-50);
  /* Button · Secondary */
  --btn-secondary-bg: var(--opacity-dark-05);
  --btn-secondary-bg-hover: var(--opacity-dark-10);
  --btn-secondary-fg: var(--grey-950);
  --btn-secondary-fg-hover: var(--blue-900);
  /* Button · Outline */
  --btn-outline-border: var(--grey-800);
  --btn-outline-border-hover: var(--grey-950);
  --btn-outline-fg: var(--grey-950);
  /* Button · Link */
  --btn-link-primary-fg: var(--brand-600);
  --btn-link-primary-fg-hover: var(--brand-900);
  --btn-link-neutral-fg: var(--grey-800);
  --btn-link-neutral-fg-hover: var(--grey-950);
  /* Button · states compartidos */
  --btn-focus-ring: var(--grey-950);
  --btn-focus-ring-inverse: var(--brand-200);
  --btn-disabled-bg: var(--opacity-dark-05);
  --btn-disabled-fg: var(--grey-600);
  --btn-disabled-border: var(--grey-700);

  /* Button · Inverse (sobre superficies oscuras) */
  --btn-neutral-inverse-bg: var(--base-white);
  --btn-neutral-inverse-bg-hover: var(--grey-950);
  --btn-neutral-inverse-fg: var(--grey-950);
  --btn-neutral-inverse-fg-hover: var(--base-white);
  --btn-neutral-inverse-border-hover: var(--base-white);
  --btn-outline-inverse-bg: var(--grey-950);
  --btn-outline-inverse-bg-hover: var(--base-white);
  --btn-outline-inverse-border: var(--base-white);
  --btn-outline-inverse-border-hover: var(--grey-50);
  --btn-outline-inverse-fg: var(--base-white);
  --btn-outline-inverse-fg-hover: var(--blue-900);

  /* ---- SEMANTIC · Radius (roles de componente) ------------------------- */
  --radius-button: var(--radius-none);   /* CANTOVI: botones cuadrados */
  --radius-input:  var(--radius-none);
  --radius-tag:    var(--radius-none);
  --radius-card:   var(--radius-300);
  --radius-card-lg:var(--radius-600);
  --radius-surface:var(--radius-300);
  --radius-badge:  var(--radius-full);
  --radius-control:var(--radius-full);
}


/* === design-system/button.css === */
/* ============================================================================
   CANTOVI · Button component
   Requiere tokens.css. Fuente Figma: node 1890:226753 (set principal "Button").
   API de clases:
     .btn                     base (obligatoria)
     Tipo:   .btn--primary | .btn--neutral | .btn--secondary | .btn--outline
             .btn--link-primary | .btn--link-neutral
             .btn--neutral-inverse | .btn--outline-inverse   (sobre fondo oscuro)
     Tamaño: .btn--lg | .btn--md | .btn--sm            (por defecto: md)
     Icono:  .btn--icon                                (solo icono, cuadrado)
     Estado: nativos :hover :focus-visible :disabled  +  forzados para docs:
             .is-hover | .is-focus | .is-pressed | .is-disabled
   ========================================================================== */

.btn {
  --_bg: transparent;
  --_fg: currentColor;
  --_border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap, 8px);

  height: var(--btn-h, 40px);
  padding: 0 var(--btn-px, 16px);
  border: 1px solid var(--_border);
  border-radius: var(--radius-button);

  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--btn-fs, 14px);
  line-height: var(--btn-lh, 20px);
  white-space: nowrap;
  text-decoration: none;

  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  user-select: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn:focus { outline: none; }

/* ---- Hover text motion --------------------------------------------------- */
/* La label del botón se desliza sutilmente al pasar el ratón. */
.btn__label {
  display: inline-block;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.btn:not(.btn--link-primary):not(.btn--link-neutral):hover .btn__label,
.btn:not(.btn--link-primary):not(.btn--link-neutral).is-hover .btn__label {
  transform: translateX(3px);
}

.btn__icon { transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1); }
.btn:not(.btn--link-primary):not(.btn--link-neutral):hover .btn__icon:last-child,
.btn:not(.btn--link-primary):not(.btn--link-neutral).is-hover .btn__icon:last-child {
  transform: translateX(3px);
}

/* Reduced motion: sin animación de label ni icono */
@media (prefers-reduced-motion: reduce) {
  .btn__label,
  .btn__icon,
  .btn__icon::before,
  .btn__icon::after,
  .blog-card__link-icon,
  .blog-card__link-icon::after {
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Sizes (spacing documentado en Figma "Spacing") --------------------- */
.btn--lg { --btn-h:48px; --btn-px:16px; --btn-fs:var(--font-size-16); --btn-lh:24px; --btn-gap:8px; --btn-icon:20px; }
.btn--md { --btn-h:40px; --btn-px:16px; --btn-fs:var(--font-size-14); --btn-lh:20px; --btn-gap:8px; --btn-icon:18px; }
.btn--sm { --btn-h:32px; --btn-px:12px; --btn-fs:var(--font-size-12); --btn-lh:16px; --btn-gap:6px; --btn-icon:16px; }

/* Icon-only: cuadrado, sin padding horizontal */
.btn--icon { width: var(--btn-h, 40px); padding: 0; }

.btn__icon { flex: 0 0 auto; width: var(--btn-icon, 18px); height: var(--btn-icon, 18px); display: inline-flex; }
.btn__icon svg { width: 100%; height: 100%; display: block; }

/* ========================================================================== */
/* TYPES                                                                       */
/* ========================================================================== */

/* ---- Primary ------------------------------------------------------------ */
.btn--primary { --_bg: var(--btn-primary-bg); --_fg: var(--btn-primary-fg); }
.btn--primary:hover, .btn--primary.is-hover { --_bg: var(--btn-primary-bg-hover); }
.btn--primary.is-pressed { --_bg: var(--brand-900); }

/* ---- Neutral ------------------------------------------------------------ */
.btn--neutral { --_bg: var(--btn-neutral-bg); --_fg: var(--btn-neutral-fg); }
.btn--neutral:hover, .btn--neutral.is-hover { --_bg: var(--btn-neutral-bg-hover); }
.btn--neutral.is-pressed { --_bg: var(--brand-800); }

/* ---- Secondary ---------------------------------------------------------- */
.btn--secondary { --_bg: var(--btn-secondary-bg); --_fg: var(--btn-secondary-fg); }
.btn--secondary:hover, .btn--secondary.is-hover { --_bg: var(--btn-secondary-bg-hover); --_fg: var(--btn-secondary-fg-hover); }
.btn--secondary.is-pressed { --_bg: var(--opacity-dark-20); }

/* ---- Outline ------------------------------------------------------------ */
.btn--outline { --_bg: transparent; --_fg: var(--btn-outline-fg); --_border: var(--btn-outline-border); }
.btn--outline:hover, .btn--outline.is-hover { --_border: var(--btn-outline-border-hover); }
.btn--outline.is-pressed { --_border: var(--btn-outline-border-hover); --_bg: var(--opacity-dark-05); }

/* ---- Link (sin fondo) --------------------------------------------------- */
.btn--link-primary,
.btn--link-neutral { --_bg: transparent; --_border: transparent; padding: 0; height: auto; }
.btn--link-primary { --_fg: var(--btn-link-primary-fg); }
.btn--link-primary:hover, .btn--link-primary.is-hover { --_fg: var(--btn-link-primary-fg-hover); text-decoration: none; }
.btn--link-neutral { --_fg: var(--btn-link-neutral-fg); }
.btn--link-neutral:hover, .btn--link-neutral.is-hover { --_fg: var(--btn-link-neutral-fg-hover); text-decoration: none; }

.btn--link-primary,
.btn--link-neutral {
  --link-arrow-shift: calc(var(--btn-icon, 18px) + 10px);
}

.btn--link-primary .btn__label,
.btn--link-neutral .btn__label {
  transform: none;
}

.btn--link-primary .btn__icon:last-child,
.btn--link-neutral .btn__icon:last-child,
.btn--link-primary .blog-card__link-icon:last-child,
.btn--link-neutral .blog-card__link-icon:last-child {
  position: relative;
  overflow: hidden;
  transform: none;
  will-change: transform;
}

.btn--link-primary .btn__icon:last-child::before,
.btn--link-primary .btn__icon:last-child::after,
.btn--link-neutral .btn__icon:last-child::before,
.btn--link-neutral .btn__icon:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  pointer-events: none;
  transition: transform .42s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn--link-primary .btn__icon:last-child::before,
.btn--link-neutral .btn__icon:last-child::before {
  -webkit-mask: inherit;
  mask: inherit;
}

.btn--link-primary .btn__icon:last-child::after,
.btn--link-neutral .btn__icon:last-child::after {
  -webkit-mask: inherit;
  mask: inherit;
  transform: translateX(calc(-1 * var(--link-arrow-shift)));
}

.btn--link-primary .btn__icon:last-child,
.btn--link-neutral .btn__icon:last-child {
  background: transparent !important;
}

.btn--link-primary:hover .btn__icon:last-child::before,
.btn--link-primary.is-hover .btn__icon:last-child::before,
.btn--link-neutral:hover .btn__icon:last-child::before,
.btn--link-neutral.is-hover .btn__icon:last-child::before {
  transform: translateX(var(--link-arrow-shift));
}

.btn--link-primary:hover .btn__icon:last-child::after,
.btn--link-primary.is-hover .btn__icon:last-child::after,
.btn--link-neutral:hover .btn__icon:last-child::after,
.btn--link-neutral.is-hover .btn__icon:last-child::after {
  transform: translateX(0);
}

.btn--link-primary .blog-card__link-icon:last-child::after,
.btn--link-neutral .blog-card__link-icon:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  pointer-events: none;
  transform: translateX(calc(-1 * var(--link-arrow-shift)));
  transition: transform .42s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn--link-primary .blog-card__link-icon:last-child svg,
.btn--link-neutral .blog-card__link-icon:last-child svg {
  transition: transform .42s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn--link-primary:hover .blog-card__link-icon:last-child svg,
.btn--link-primary.is-hover .blog-card__link-icon:last-child svg,
.btn--link-neutral:hover .blog-card__link-icon:last-child svg,
.btn--link-neutral.is-hover .blog-card__link-icon:last-child svg {
  transform: translateX(var(--link-arrow-shift));
}

.btn--link-primary:hover .blog-card__link-icon:last-child::after,
.btn--link-primary.is-hover .blog-card__link-icon:last-child::after,
.btn--link-neutral:hover .blog-card__link-icon:last-child::after,
.btn--link-neutral.is-hover .blog-card__link-icon:last-child::after {
  transform: translateX(0);
}

/* ---- Neutral · Inverse (fondo oscuro) ----------------------------------- */
.btn--neutral-inverse { --_bg: var(--btn-neutral-inverse-bg); --_fg: var(--btn-neutral-inverse-fg); --_border: var(--btn-neutral-inverse-bg); }
.btn--neutral-inverse:hover, .btn--neutral-inverse.is-hover { --_bg: var(--btn-neutral-inverse-bg-hover); --_fg: var(--btn-neutral-inverse-fg-hover); --_border: var(--btn-neutral-inverse-border-hover); }

/* ---- Outline · Inverse (fondo oscuro) ----------------------------------- */
.btn--outline-inverse { --_bg: transparent; --_fg: var(--btn-outline-inverse-fg); --_border: var(--btn-outline-inverse-border); }
.btn--outline-inverse:hover, .btn--outline-inverse.is-hover { --_bg: var(--btn-outline-inverse-bg-hover); --_fg: var(--btn-outline-inverse-fg-hover); --_border: var(--btn-outline-inverse-border-hover); }

/* ========================================================================== */
/* FOCUS  (nativo + forzado)                                                   */
/* ========================================================================== */
.btn:focus-visible,
.btn.is-focus { box-shadow: 0 0 0 2px var(--bg-default), 0 0 0 4px var(--btn-focus-ring); }
.btn--neutral-inverse.is-focus,
.btn--outline-inverse.is-focus,
.btn--neutral-inverse:focus-visible,
.btn--outline-inverse:focus-visible { box-shadow: 0 0 0 2px var(--bg-inverse), 0 0 0 4px var(--btn-focus-ring-inverse); }

/* ========================================================================== */
/* DISABLED  (nativo + forzado)                                                */
/* ========================================================================== */
.btn:disabled,
.btn.is-disabled {
  --_bg: var(--btn-disabled-bg);
  --_fg: var(--btn-disabled-fg);
  --_border: transparent;
  cursor: not-allowed;
  box-shadow: none;
  text-decoration: none;
}
.btn--outline:disabled,
.btn--outline.is-disabled { --_bg: transparent; --_border: var(--btn-disabled-border); }
.btn--link-primary:disabled, .btn--link-primary.is-disabled,
.btn--link-neutral:disabled, .btn--link-neutral.is-disabled { --_bg: transparent; --_border: transparent; }


/* === design-system/header.css === */
/* ============================================================================
   CANTOVI · Header component
   Reference: Header.jpg, Nuevo header.jpg, nav.jpg, salvador-v1/index_5.html.
   Variants: desktop transparent, desktop solid/compact, tablet, mobile closed,
   mobile open, mobile open/category, dropdown false/true, active nav.
   ========================================================================== */

:root {
  --header-dark: var(--grey-950, #1b2124);
  --header-white: var(--base-white, #ffffff);
  --header-bg-soft: var(--grey-50, #f7f8f8);
  --header-surface: var(--grey-100, #ececec);
  --header-text-muted: var(--grey-700, #404953);
  --header-focus-bg: var(--focus-bg, var(--yellow-300, #ffd970));
  --header-brand-hover: var(--brand-600, #f04e0a);
  --header-grid: var(--grid, 1080px);
  --header-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.cantovi-header,
.cantovi-header *,
.cantovi-mobile-nav,
.cantovi-mobile-nav * {
  box-sizing: border-box;
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-style: normal;
  font-synthesis: none;
}

body.cantovi-menu-locked {
  overflow: hidden;
}

.cantovi-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--header-white);
  color: var(--header-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--header-ease), transform 0.22s var(--header-ease);
}

.cantovi-mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#mobile-nav.cantovi-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  flex-direction: initial;
  align-items: initial;
  justify-content: initial;
  gap: 0;
  padding: 0;
  background: var(--header-white);
  color: var(--header-dark);
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  overflow: visible;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--header-ease), transform 0.22s var(--header-ease);
}

#mobile-nav.cantovi-mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.cantovi-mobile-panel {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--header-white);
  display: flex;
  flex-direction: column;
}

/* Fixed top row — must NEVER shrink or compress when content is long
   or when navigating between menu levels (main ↔ category submenu). */
.cantovi-mobile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  min-height: 72px;
  flex: 0 0 72px;
  padding: 0 16px;           /* 16px horizontal — matches header */
  box-sizing: border-box;
}

.cantovi-mobile-close,
.cantovi-mobile-back,
.cantovi-header-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font: inherit;
}

.cantovi-mobile-close {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--header-dark);
  transition: background 0.18s var(--header-ease), color 0.18s var(--header-ease), box-shadow 0.18s var(--header-ease), opacity 0.18s var(--header-ease);
}

.cantovi-mobile-brand,
.cantovi-header-logo {
  color: currentColor;
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.cantovi-mobile-content {
  padding: 8px 16px 32px;    /* 16px horizontal — matches header */
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cantovi-mobile-section {
  display: none;
}

.cantovi-mobile-section.active {
  display: block;
}

.cantovi-mobile-title {
  margin: 0 0 16px;
  color: var(--header-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.cantovi-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cantovi-mobile-link,
.cantovi-mobile-category,
.cantovi-mobile-global,
.cantovi-mobile-subcat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;              /* alto táctil cómodo, ~2× line-height */
  padding-block: 8px;
  border: 0;
  background: transparent;
  color: var(--header-dark);
  font: inherit;
  font-size: 18px;               /* Requisito: mínimo 16px, ideal 18px */
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cantovi-mobile-category {
  padding: 0 8px;
}

.cantovi-header-chevron-right {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.cantovi-mobile-category.active,
.cantovi-mobile-category:hover,
.cantovi-mobile-category:focus-visible {
  background: var(--header-surface);
  box-shadow: inset 2px 0 0 var(--header-dark);
  outline: none;
}

.cantovi-mobile-nav-line {
  height: 1px;
  margin: 14px 0;
  background: rgba(27, 33, 36, 0.12);
}

.cantovi-mobile-link:hover,
.cantovi-mobile-link:focus-visible,
.cantovi-mobile-global:hover,
.cantovi-mobile-global:focus-visible,
.cantovi-mobile-subcat:hover,
.cantovi-mobile-subcat:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.cantovi-mobile-back {
  gap: 8px;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 8px 0;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 300;
  line-height: 24px;
}

.cantovi-mobile-preview {
  display: block;
  width: 100%;
  height: 200px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--header-surface);
}

.cantovi-mobile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body #header.cantovi-header,
body.cantovi-home #header.cantovi-header,
body.cantovi-inner-page #header.cantovi-header {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 24px 64px;
  background: var(--header-white);
  color: var(--header-dark);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition:
    top 0.7s var(--header-ease),
    left 0.7s var(--header-ease),
    width 0.7s var(--header-ease),
    max-width 0.7s var(--header-ease),
    padding 0.7s var(--header-ease),
    background 0.7s var(--header-ease),
    color 0.7s var(--header-ease),
    box-shadow 0.7s var(--header-ease),
    transform 0.7s var(--header-ease);
}

.cantovi-header-spacer {
  display: none;
  height: 0;
}

.cantovi-header-spacer.is-active {
  display: block;
  height: var(--cantovi-header-spacer-height, 96px);
}

body #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open),
body.cantovi-home #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open),
body.cantovi-inner-page #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open) {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  color: var(--header-white);
}

body.admin-bar #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open) {
  top: 32px;
}

#header.cantovi-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--header-ease);
}

body #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open)::before {
  opacity: 1;
}

#header.cantovi-header.cantovi-header--solid,
#header.cantovi-header.cantovi-header--light,
#header.cantovi-header.scrolled,
#header.cantovi-header.products-menu-open {
  color: var(--header-dark);
}

body #header.cantovi-header.cantovi-header--light,
body #header.cantovi-header.cantovi-header--solid,
body.cantovi-inner-page #header.cantovi-header.cantovi-header--light,
body.cantovi-inner-page #header.cantovi-header.cantovi-header--solid {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 100%;
  padding: 24px 64px;
  background: var(--header-white);
  color: var(--header-dark);
  box-shadow: none;
  transform: none;
}

body #header.cantovi-header.scrolled,
body.cantovi-home #header.cantovi-header.scrolled,
body.cantovi-inner-page #header.cantovi-header.scrolled {
  position: fixed;
  top: 16px;
  left: 50%;
  width: var(--header-grid);
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.13), 0 1px 0 rgba(0, 0, 0, 0.04);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

body.admin-bar #header.cantovi-header.scrolled {
  top: 48px;
}

/* Escritorio: header flotante oculto al bajar, visible al subir (header.js › updateAutoHide). */
@media (min-width: 901px) {
  body #header.cantovi-header.scrolled.is-scroll-hidden:not(.products-menu-open) {
    transform: translate(-50%, calc(-100% - 64px));
    visibility: hidden;
    box-shadow: none;
    transition: transform 0.35s var(--header-ease), box-shadow 0.35s var(--header-ease), visibility 0s linear 0.35s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #header.cantovi-header.scrolled,
  body #header.cantovi-header.scrolled.is-scroll-hidden {
    transition: none !important;
  }
}

body.cantovi-inner-page .subcategory-page {
  padding-top: 0;
}

body.admin-bar.cantovi-inner-page .subcategory-page {
  padding-top: 0;
}

body #header.cantovi-header.products-menu-open,
body.cantovi-home #header.cantovi-header.products-menu-open,
body.cantovi-inner-page #header.cantovi-header.products-menu-open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 64px;
  background: var(--header-white);
  box-shadow: none; /* Dic-03: header + desplegable mismo blanco, sin sombra */
  transform: none;
}

#header.cantovi-header.is-positioning-products-menu {
  transition: none !important;
}

body.admin-bar #header.cantovi-header.products-menu-open {
  top: 32px;
}

#header.cantovi-header.cantovi-header--light::before,
#header.cantovi-header.cantovi-header--solid::before,
#header.cantovi-header.scrolled::before,
#header.cantovi-header.products-menu-open::before {
  opacity: 0;
}

.cantovi-header-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cantovi-header-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.7s var(--header-ease);
}

#header.cantovi-header.cantovi-header--solid .cantovi-header-nav-item,
#header.cantovi-header.cantovi-header--light .cantovi-header-nav-item,
#header.cantovi-header.scrolled .cantovi-header-nav-item,
#header.cantovi-header.products-menu-open .cantovi-header-nav-item {
  color: var(--header-text-muted);
}

/* Estados hover / focus / selected de la nav: ver bloque
   «Header · estados de navegación» al final del archivo. */

.cantovi-header-cta:focus-visible,
.cantovi-header-menu:focus-visible,
.cantovi-mobile-close:focus-visible {
  box-shadow: 0 0 0 2px var(--header-focus-bg);
}

.cantovi-header-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s, color 0.7s var(--header-ease);
}

.cantovi-products-trigger[aria-expanded="true"] .cantovi-header-chevron {
  transform: rotate(180deg);
}

.cantovi-header-menu {
  display: none;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  flex: 0 0 44px;
  height: 44px;
  padding: 10px;
  color: var(--header-dark);
  transition: background 0.18s var(--header-ease), color 0.18s var(--header-ease), box-shadow 0.18s var(--header-ease), opacity 0.18s var(--header-ease);
}

#header.cantovi-header .cantovi-header-menu {
  display: none;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-close,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back,
#header.cantovi-header .cantovi-header-menu {
  min-width: 0;
  border: 0;
  font-weight: inherit;
}

.cantovi-menu-svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.cantovi-header-menu:hover,
.cantovi-header-menu.is-hover,
.cantovi-header-menu:active,
.cantovi-header-menu.is-pressed,
.cantovi-mobile-close:hover,
.cantovi-mobile-close.is-hover,
.cantovi-mobile-close:active,
.cantovi-mobile-close.is-pressed {
  background: var(--header-brand-hover);
  color: var(--header-white);
}

.cantovi-header-menu:focus-visible,
.cantovi-header-menu.is-focus,
.cantovi-mobile-close:focus-visible,
.cantovi-mobile-close.is-focus {
  background: var(--header-brand-hover);
  color: var(--header-white);
  box-shadow: 0 0 0 2px var(--header-white), 0 0 0 4px var(--header-dark);
  outline: none;
}

.cantovi-header-menu:disabled,
.cantovi-header-menu.is-disabled,
.cantovi-mobile-close:disabled,
.cantovi-mobile-close.is-disabled {
  background: var(--header-surface);
  color: var(--header-text-muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.cantovi-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 10px 10px 10px 20px;
  background: var(--header-white);
  color: var(--header-dark);
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 20px;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.7s var(--header-ease), color 0.7s var(--header-ease), box-shadow 0.7s var(--header-ease);
}

#header.cantovi-header .cantovi-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 48px;
  padding: 10px 10px 10px 20px;
  border: 0;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 20px;
}

#header.cantovi-header.cantovi-header--solid .cantovi-header-cta,
#header.cantovi-header.cantovi-header--light .cantovi-header-cta,
#header.cantovi-header.scrolled .cantovi-header-cta,
#header.cantovi-header.products-menu-open .cantovi-header-cta {
  background: var(--header-dark);
  color: var(--header-white);
}

.cantovi-header-cta:hover {
  background: #f0f0f0;
}

#header.cantovi-header.cantovi-header--solid .cantovi-header-cta:hover,
#header.cantovi-header.cantovi-header--light .cantovi-header-cta:hover,
#header.cantovi-header.scrolled .cantovi-header-cta:hover,
#header.cantovi-header.products-menu-open .cantovi-header-cta:hover {
  background: var(--header-brand-hover);
}

/* CTA "Pedir presupuesto" en estado seleccionado (página actual) */
#header.cantovi-header .cantovi-header-cta.is-current,
#header.cantovi-header.cantovi-header--solid .cantovi-header-cta.is-current,
#header.cantovi-header.cantovi-header--light .cantovi-header-cta.is-current,
#header.cantovi-header.scrolled .cantovi-header-cta.is-current,
#header.cantovi-header.products-menu-open .cantovi-header-cta.is-current {
  background: var(--header-brand-hover);
  color: var(--header-white);
  cursor: default;
}

@keyframes cantovi-header-label-through {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
  }
  42% {
    transform: translateY(-160%);
    animation-timing-function: steps(1, end);
  }
  42.5% {
    transform: translateY(160%);
    animation-timing-function: cubic-bezier(0, 0.4, 0.2, 1);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes cantovi-header-arrow-through {
  0% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
  }
  42% {
    transform: translateX(150%);
    animation-timing-function: steps(1, end);
  }
  42.5% {
    transform: translateX(-150%);
    animation-timing-function: cubic-bezier(0, 0.4, 0.2, 1);
  }
  100% {
    transform: translateX(0);
  }
}

.cantovi-header-cta-label-wrap {
  display: inline-flex;
  align-items: center;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}

.cantovi-header-cta-label {
  display: block;
  animation: cantovi-header-label-through 520ms linear infinite;
  animation-play-state: paused;
}

.cantovi-header-cta-label.label-running {
  animation-play-state: running;
}

.cantovi-header-cta-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  overflow: hidden;
  background: var(--header-dark);
  color: var(--header-white);
  transition: background 0.7s var(--header-ease), color 0.7s var(--header-ease);
}

#header.cantovi-header.cantovi-header--solid .cantovi-header-cta-icon,
#header.cantovi-header.cantovi-header--light .cantovi-header-cta-icon,
#header.cantovi-header.scrolled .cantovi-header-cta-icon,
#header.cantovi-header.products-menu-open .cantovi-header-cta-icon {
  background: var(--header-white);
  color: var(--header-dark);
}

.cantovi-header-cta-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  animation: cantovi-header-arrow-through 520ms linear infinite;
  animation-play-state: paused;
}

.cantovi-header-cta-icon svg.arrow-running {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .cantovi-header-cta-label,
  .cantovi-header-cta-icon svg {
    animation: none;
  }
}

.cantovi-products {
  position: relative;
}

.cantovi-products-menu {
  position: fixed;
  top: calc(var(--products-mega-top, 96px) - 1px);
  right: 0;
  left: 0;
  width: 100vw;
  padding: 24px 0;
  background: var(--header-white);
  box-shadow: none; /* Dic-03: sin sombra */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--header-ease), transform 0.2s var(--header-ease);
}

.cantovi-products.open .cantovi-products-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cantovi-products-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.cantovi-products-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 1fr) 364px;
  gap: 32px;
  align-items: start;
}

.cantovi-products-title {
  margin: 0 0 18px;
  color: var(--header-dark);
  font-size: 16px;
  font-weight: 700;
}

.cantovi-products-categories,
.cantovi-products-subcats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cantovi-products-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #26313d;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  text-align: left;
}

.cantovi-products-category:hover,
.cantovi-products-category:focus-visible,
.cantovi-products-category.active {
  background: var(--header-surface);
  color: var(--header-dark);
  outline: none;
}

.cantovi-products-category.active {
  box-shadow: inset 2px 0 0 var(--header-dark);
}

.cantovi-products-subcats {
  padding-top: 50px;
}

.cantovi-products-subcat,
.cantovi-products-selected,
.cantovi-products-global {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  color: var(--header-text-muted);
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
  text-underline-offset: 4px;
}

.cantovi-products-selected,
.cantovi-products-global {
  margin-top: 18px;
  color: var(--header-dark);
  font-weight: 500;
}

.cantovi-products-subcat:hover,
.cantovi-products-subcat:focus-visible,
.cantovi-products-selected:hover,
.cantovi-products-selected:focus-visible,
.cantovi-products-global:hover,
.cantovi-products-global:focus-visible {
  color: var(--header-dark);
  text-decoration: underline;
  outline: none;
}

.cantovi-products-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--header-surface);
}

.cantovi-products-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--header-ease), opacity 0.24s var(--header-ease);
}

.cantovi-products-preview:hover img {
  transform: scale(1.035);
}

.cantovi-products-preview-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(27, 33, 36, 0.82);
  color: var(--header-white);
  font-size: 24px;
}

.cantovi-products-bottom {
  display: flex;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(27, 33, 36, 0.14);
}

.cantovi-products-bottom .cantovi-products-global {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 1120px) {
  :root {
    --header-grid: 100%;
  }
}

@media (max-width: 900px) {
  /* Header móvil ÚNICO — sin variantes compact/solid diferenciadas.
     Requisitos aprobados:
       · Padding horizontal 16px en ambos lados (siempre)
       · CTA "Pedir presupuesto" text-only (sin icono badge)
       · Nunca cambiar a variante compact
  */
  #header.cantovi-header,
  #header.cantovi-header.cantovi-header--solid,
  #header.cantovi-header.cantovi-header--light,
  #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open) {
    position: sticky !important;
    display: grid !important;
    grid-template-columns: 40px 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 12px 16px !important;   /* ← 16px horizontal siempre */
    background: var(--header-white) !important;
    color: var(--header-dark) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* Móvil: el header de portada (opacity) usa SIEMPRE la variante blanca,
     desde la carga inicial y sin volverse transparente sobre el vídeo.
     Reutiliza el mismo aspecto blanco del estado con scroll. */
  #header.cantovi-header.cantovi-header--opacity:not(.scrolled):not(.products-menu-open) {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    background: var(--header-white) !important;
    color: var(--header-dark) !important;
  }

  #header.cantovi-header.scrolled,
  #header.cantovi-header.products-menu-open {
    position: sticky !important;
    display: grid !important;
    grid-template-columns: 40px 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 12px 16px !important;
    background: var(--header-white) !important;
    color: var(--header-dark) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.cantovi-inner-page {
    padding-top: 0 !important;
  }

  body.cantovi-inner-page .subcategory-page,
  body.admin-bar.cantovi-inner-page .subcategory-page {
    padding-top: 0 !important;
  }

  #header.cantovi-header::before {
    opacity: 0 !important;
  }

  body.cantovi-home #header.cantovi-header:not(.scrolled):not(.products-menu-open),
  body.admin-bar.cantovi-home #header.cantovi-header:not(.scrolled):not(.products-menu-open) {
    top: 0 !important;
  }

  .cantovi-header-nav {
    display: none;
  }

  .cantovi-header-menu {
    display: inline-flex;
    grid-column: 1;
    order: 0;
    justify-self: start;
    margin: 0;
  }

  #header.cantovi-header .cantovi-header-menu {
    display: inline-flex;
  }

  /* Móvil: fondo blanco sólido siempre (sin translucidez ni parpadeos). */
  #header.cantovi-header.cantovi-header--opacity {
    background: var(--header-white) !important;
  }

  .cantovi-header-logo {
    grid-column: 2;
    order: 1;
    justify-self: start;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0;
  }

  /* CTA "Pedir presupuesto" — TEXT ONLY en móvil (sin icono) */
  .cantovi-header-cta {
    grid-column: 3;
    order: 2;
    justify-self: end;
    max-width: calc(100vw - 168px);
    min-height: 44px;
    padding: 0 20px;      /* padding simétrico sin icono */
    gap: 0;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: 0.02em;
    background: var(--header-dark);
    color: var(--header-white);
    box-shadow: none;
  }

  #header.cantovi-header .cantovi-header-cta {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: none;
  }

  .cantovi-header-cta-label-wrap {
    min-width: 0;
  }

  /* Ocultar completamente el badge de flecha en móvil */
  .cantovi-header-cta-icon {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .cantovi-header-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
}


/* === design-system/breadcrumb.css === */
/* ============================================================================
   CANTOVI · Breadcrumb component (shared)
   Fuente de verdad: Figma 4476:588401 (isMobile · isCompact · Type)
   Estilo aprobado:
     · Separator: "/"
     · Links: dark (#071323), underline, hover removes underline
     · Current: dark (#071323), bold
     · Separator "/": muted (#666d76)
     · Font: NHG 16px / line-height 24px
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #071323;
}

.crumb-link,
.crumb-current {
  font-size: 16px;
  line-height: 24px;
}

.crumb-link {
  color: #071323;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-weight: 300;
}

.crumb-link:hover {
  text-decoration: none;
}

.crumb-link:focus-visible {
  background: #ffd970;
  color: #071323;
  outline: none;
  text-decoration: underline;
}

.crumb-current {
  color: #071323;
  font-weight: 700;
}

.crumb-sep {
  color: #666d76;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  user-select: none;
}

/* Mobile · Compact — variant "back to parent" con flecha izquierda */
.breadcrumb.is-compact {
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb.is-compact .crumb-link,
.breadcrumb.is-compact .crumb-current,
.breadcrumb.is-compact .crumb-sep {
  font-size: 14px;
  line-height: 20px;
}

.crumb-back {
  display: inline-flex;
  align-items: center;
  color: #071323;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  text-decoration: none;
  margin-right: 4px;
}

.crumb-back svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

@media (max-width: 700px) {
  .breadcrumb { gap: 8px; }
}


/* === design-system/motion.css === */
/* ============================================================================
   CANTOVI · Motion (shared)
   Fuente de verdad: html/index_7.html (word-by-word reveal + fade-in)

   Uso:
     · Añade .anim-title  a headings/subtítulos que quieras animar palabra a palabra
     · Añade .anim-words  a párrafos/labels que quieras animar palabra a palabra
     · Añade .anim-fade   a bloques (cards, imágenes, listas) que quieras animar
                          como un solo fade+translate
     · Añade .anim-btn-text a la label interna de un botón para animación hover

   Comportamiento:
     · Se dispara al entrar en viewport (IntersectionObserver)
     · Se ejecuta una sola vez (unobserve) → no se repite al scrollear atrás
     · Respeta prefers-reduced-motion (todo visible sin transición)
   ========================================================================== */

/* ── Word-by-word reveal ─────────────────────────────────────────────────── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  transition:
    opacity   0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--wd, 0ms),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--wd, 0ms),
    filter    0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--wd, 0ms);
}

.anim-title.in-view .word-reveal,
.anim-words.in-view .word-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Homepage-only hero hook: revealed after intro video */
#hero-content.revealed .hero-eyebrow .word-reveal,
#hero-content.revealed .hero-title .word-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Block fade ──────────────────────────────────────────────────────────── */
.anim-fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.7s cubic-bezier(0.23, 1, 0.32, 1) 120ms,
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) 120ms;
}
.anim-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card cascade (.anim-cascade) ────────────────────────────────────────────
   Para carruseles de .cscroll (anclas circulares de Home y Productos).
   Úsalo junto a .anim-fade (motion.js observa .anim-fade, también dentro de
   <nav>, si la clase se pone en el HTML): el contenedor no se desvanece; cada
   tarjeta entra en cascada de 120 ms — la media crece (scale .2 → 1 + fade) y
   la etiqueta hace el word-reveal (opacity · translateY 10px · blur 10px)
   150 ms después. 700 ms · cubic-bezier(0.23, 1, 0.32, 1). */
.anim-cascade.anim-fade { opacity: 1; transform: none; transition: none; }
.anim-cascade .cscroll__media,
.anim-cascade .cscroll__label {
  transition:
    opacity   0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--ad, 0ms),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--ad, 0ms),
    filter    0.7s cubic-bezier(0.23, 1, 0.32, 1) var(--ad, 0ms),
    text-decoration-color 0.2s ease;
}
.anim-cascade .cscroll__label {
  transition-delay: calc(var(--ad, 0ms) + 150ms), calc(var(--ad, 0ms) + 150ms), calc(var(--ad, 0ms) + 150ms), 0ms;
}
.anim-cascade.anim-fade:not(.in-view) .cscroll__media { opacity: 0; transform: scale(0.2); }
.anim-cascade.anim-fade:not(.in-view) .cscroll__label { opacity: 0; transform: translateY(10px); filter: blur(10px); }
.anim-cascade > :nth-child(2) { --ad: 120ms; }
.anim-cascade > :nth-child(3) { --ad: 240ms; }
.anim-cascade > :nth-child(4) { --ad: 360ms; }
.anim-cascade > :nth-child(5) { --ad: 480ms; }
.anim-cascade > :nth-child(6) { --ad: 600ms; }
.anim-cascade > :nth-child(7) { --ad: 720ms; }
.anim-cascade > :nth-child(n+8) { --ad: 840ms; }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .word-reveal,
  .anim-fade,
  .anim-cascade .cscroll__media,
  .anim-cascade .cscroll__label {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


/* === design-system/section-related.css === */
/* ============================================================================
   CANTOVI · SectionRelated component (shared)
   Fuente de verdad: Figma 51709:30678 (Type × Device)
   Variantes:
     · categorias   (Desktop) — 4 cards landscape con overlay + Descubrir
     · subcategorias (Desktop) — 5 cards portrait imagen+texto abajo
     · mobile — siempre usa card portrait imagen+texto abajo, con paginación 1/n
   ========================================================================== */

.section-related {
  --sr-bg: #f7f8f8;
  --sr-fg: #071323;
  --sr-fg-muted: #666d76;
  --sr-card-media-bg: #ececec;
  --sr-overlay: rgba(0,0,0,0.35);
  --sr-overlay-hover: rgba(0,0,0,0.42);
  --sr-focus-bg: #ffd970;
  --sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sr-container-max: 1184px;
  --sr-gutter: clamp(20px, 4vw, 32px);

  padding: 64px 0;
  background: var(--sr-bg);
  color: var(--sr-fg);
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  overflow: hidden;   /* prevent horizontal scroll leaking to body */
}

.section-related__container {
  width: 100%;
  max-width: var(--sr-container-max);
  margin-inline: auto;
  padding-inline: var(--sr-gutter);
  box-sizing: border-box;
}

.section-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-related__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--sr-fg);
}

.section-related__nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* Arrow button — Figma Button arrow (state=Default, Color=Light) */
.arrow-btn {
  display: inline-grid;
  place-items: center;
  width: 90px;
  height: 60px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--sr-fg);
  cursor: pointer;
  transition: color .2s var(--sr-ease), transform .2s var(--sr-ease);
}

.arrow-btn svg {
  width: 54px;
  height: auto;
  color: currentColor;
}

.arrow-btn--right svg {
  transform: rotate(180deg);
}

.arrow-btn:hover { color: var(--sr-fg-muted); }
.arrow-btn:active { transform: scale(0.95); }
.arrow-btn:focus-visible {
  outline: 2px solid var(--sr-fg);
  outline-offset: 2px;
}
.arrow-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Track — horizontal scroller for both variants.
   Track lives inside __container so overflow is scoped and never pushes
   the body wider than the viewport. */
.section-related__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  /* Let the track "bleed" a bit into the right gutter so extra cards peek */
  margin-right: calc(var(--sr-gutter) * -1);
  padding-right: var(--sr-gutter);
}
.section-related__track::-webkit-scrollbar { display: none; }
.section-related__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ─── Card: Categorías (Type=Image, landscape overlay) ─────────────────── */
.card-cat {
  position: relative;
  display: block;
  width: 312px;
  height: 236px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.card-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--sr-ease);
}

.card-cat:hover img { transform: scale(1.05); }

.card-cat__overlay {
  position: absolute;
  inset: 0;
  background: var(--sr-overlay);
  transition: background 0.3s var(--sr-ease);
}
.card-cat:hover .card-cat__overlay { background: var(--sr-overlay-hover); }

.card-cat__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.card-cat__title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
}

.card-cat__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: inherit;
}

.card-cat__link-text {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.card-cat__link svg {
  width: 33px;
  height: 12.66px;
  transform: rotate(180deg);
  transition: transform 0.35s var(--sr-ease);
  color: currentColor;
}

.card-cat:hover .card-cat__link svg {
  transform: rotate(180deg) translateX(-6px);
}

.card-cat:focus-visible {
  outline: 3px solid var(--sr-focus-bg);
  outline-offset: 2px;
}

/* ─── Card: Subcategorías (Type=Image+body, portrait) ─────────────────────
   Fuente Figma: 51699:6105 (Card_product state=Default, Device=All, Type=Image+body)
   Anatomía:
     · container image: 200×150 (4:3)
     · body: padding 18px top / 20px bottom / 0 horizontal, gap 8px vertical
       - Subtitle (kicker): NHG 55 Roman 12px, Foreground/Static/Dim4 (#666d76)
       - Title:  NHG 45 Light 18px, Foreground/Static/Default (#1b2124)
       - Link "Descubrir": NHG 45 Light 14px + arrow SVG (17×7), gap 12px
   ─────────────────────────────────────────────────────────────────────── */
.card-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  padding-bottom: 20px;   /* body bottom padding per Figma */
  color: var(--sr-fg);
  text-decoration: none;
  background: var(--sr-bg);
}

.card-sub__media {
  display: block;
  width: 100%;
  aspect-ratio: 200 / 150;   /* 4:3 per Figma */
  overflow: hidden;
  background: var(--sr-card-media-bg);
  margin-bottom: 10px;   /* image→kicker = margin-bottom 10 + gap 8 = 18px per Figma */
}
.card-sub__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--sr-ease);
}
.card-sub:hover .card-sub__media img { transform: scale(1.03); }

/* Optional body wrapper — supports both legacy (flat children) and new markup */
.card-sub__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.card-sub__kicker {
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sr-fg-muted);   /* #666d76 = Foreground/Static/Dim4 */
}

.card-sub__title {
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 25px;
  font-weight: 300;
  color: var(--sr-fg);
}

/* Discover link with arrow — flex row + hover slides arrow to the right */
.card-sub__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 300;
  color: #000;
  text-decoration: none;
  align-self: flex-start;   /* don't stretch full width */
}

.card-sub__link::after {
  content: "";
  display: inline-block;
  width: 17px;
  height: 7px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='17' height='7' viewBox='0 0 17 7' fill='none'><path d='M13 1L16 3.5L13 6M0.5 3.5H15.5' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  transition: transform 0.35s var(--sr-ease);
}

.card-sub:hover .card-sub__link::after {
  transform: translateX(8px);
}

.card-sub:focus-visible {
  outline: 3px solid var(--sr-focus-bg);
  outline-offset: 2px;
}


/* ─── Pagination indicator (mobile only) ───────────────────────────────── */
.section-related__pagination {
  display: none;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 400;
  color: var(--sr-fg-muted);
  text-align: right;
}

/* ─── Mobile (≤ 900px) — cards colapsan a card-sub ─────────────────────── */
@media (max-width: 900px) {
  .section-related { padding: 48px 0; --sr-gutter: 20px; }
  .section-related__head { flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .section-related__title { font-size: 28px; }
  .arrow-btn { width: 50px; height: 40px; }
  .arrow-btn svg { width: 32px; }
  .section-related__pagination { display: block; }

  /* Cards Categorías se transforman en portrait sin overlay */
  .section-related--categorias .card-cat {
    position: static;
    width: 200px;
    height: auto;
    color: var(--sr-fg);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .section-related--categorias .card-cat img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 200 / 200;
  }
  .section-related--categorias .card-cat__overlay { display: none; }
  .section-related--categorias .card-cat__body {
    position: static;
    padding: 0;
  }
  .section-related--categorias .card-cat__title { color: var(--sr-fg); }
  .section-related--categorias .card-cat__link { color: var(--sr-fg); font-weight: 400; }
  .section-related--categorias .card-cat__link-text { border-bottom-color: currentColor; }
  .section-related--categorias .card-cat:hover img { transform: scale(1.03); }

  .card-sub { width: 200px; }
}


/* === design-system/card-scroll.css === */
/* ============================================================================
   CANTOVI · Componente "Card scroll" (thumbnail navegable)
   Fuente de verdad: Figma "CANTOVI · UI" (fileKey AOUiO80By0oFlUiCSK1f6U)
   Nodo del componente: 51578:6893  ·  Instancias en Tarimas Exterior (51735:3807…)
   Depende de tokens.css. NO editar primitivos aquí: re-exportar desde Figma.
   ========================================================================== */

:root {
  /* ---- COMPONENTE · Card scroll (roles → primitivos/semánticos) -------- */
  --cscroll-width:          165px;                 /* imagen cuadrada 165×165 */
  --cscroll-radius:         var(--radius-none);     /* CANTOVI: esquinas rectas */
  --cscroll-media-bg:       var(--grey-100);        /* placeholder mientras carga */
  --cscroll-gap:            0px;                     /* imagen y label pegados; el aire lo da el padding del label */

  --cscroll-label-fg:       var(--grey-900);        /* Foreground/Static/Dim1 · #1a2431 */
  --cscroll-label-size:     var(--font-size-16);
  --cscroll-label-line:     24px;                    /* Line-height/Leading 24 */
  --cscroll-label-weight:   var(--font-weight-medium); /* P2/Medium (55 Roman) */
  --cscroll-label-tracking: 0.04em;                  /* letter-spacing 0.64px @16px */
  --cscroll-label-pad:      4px 3.556px 2px;         /* del componente en Figma */

  --cscroll-underline-offset:    3px;
  --cscroll-underline-thickness: 1px;

  --cscroll-focus-ring:     var(--grey-950);         /* Border/Interactive/Focus se resuelve a Grey/950 aquí */
  --cscroll-ease:           cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Bloque --------------------------------------------------------------- */
.cscroll {
  display: flex;
  flex-direction: column;
  gap: var(--cscroll-gap);
  width: var(--cscroll-width);
  max-width: var(--cscroll-width);
  color: var(--cscroll-label-fg);
  text-decoration: none;
}

/* ---- Media (imagen cuadrada) --------------------------------------------- */
.cscroll__media {
  width: var(--cscroll-width);
  height: var(--cscroll-width);
  overflow: hidden;
  border-radius: var(--cscroll-radius);
  background: var(--cscroll-media-bg);
}
.cscroll__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--cscroll-ease);
}

/* ---- Label --------------------------------------------------------------- */
.cscroll__label {
  padding: var(--cscroll-label-pad);
  font-family: var(--font-family-base);
  font-size: var(--cscroll-label-size);
  line-height: var(--cscroll-label-line);
  font-weight: var(--cscroll-label-weight);
  letter-spacing: var(--cscroll-label-tracking);
  color: var(--cscroll-label-fg);
  /* subrayado latente: color transparente en reposo → currentColor en hover */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: var(--cscroll-underline-offset);
  text-decoration-thickness: var(--cscroll-underline-thickness);
  transition: text-decoration-color 0.2s var(--cscroll-ease);
}

/* ---- Estado: Hover / Focus ----------------------------------------------- */
/* Interacción definitoria: al hacer hover, el label se subraya. */
.cscroll:hover  .cscroll__label,
.cscroll:focus-visible .cscroll__label,
.cscroll.is-hover .cscroll__label {
  text-decoration-color: currentColor;
}
/* Realce secundario: zoom sutil de la imagen (motion, no obligatorio). */
.cscroll:hover .cscroll__media img,
.cscroll.is-hover .cscroll__media img {
  transform: scale(1.05);
}

/* ---- Estado: Focus visible (teclado) ------------------------------------- */
.cscroll:focus-visible {
  outline: 2px solid var(--cscroll-focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cscroll__media img,
  .cscroll__label { transition: none; }
  .cscroll:hover .cscroll__media img,
  .cscroll.is-hover .cscroll__media img { transform: none; }
}


/* === design-system/blog-card.css === */
/* ============================================================================
   CANTOVI · Blog / News Card
   Referencia visual: Aston Martin F1 news cards.
   Depende de tokens.css; los fallbacks permiten abrir la demo aislada.
   ========================================================================== */

:root {
  --blog-card-bg: var(--bg-inverse, #1b2124);
  --blog-card-fg: var(--fg-inverse, #f7f8f8);
  --blog-card-muted: var(--grey-200, #d4d6d8);
  --blog-card-accent: var(--green-300, #73e2a4);
  --blog-card-focus-ring: var(--btn-focus-ring-inverse, #fed7aa);
  --blog-card-media-bg: var(--grey-900, #1a2431);
  --blog-card-gap: 24px;
  --blog-card-meta-gap: 28px;
  --blog-card-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-news {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: 72px 0 88px;
  overflow: hidden;
  font-family: var(--font-family-base, "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif);
  color: var(--blog-card-fg);
  background:
    radial-gradient(circle at 16% 30%, rgba(115, 226, 164, 0.18), transparent 28%),
    radial-gradient(circle at 72% 16%, rgba(20, 162, 184, 0.11), transparent 24%),
    linear-gradient(180deg, #010806 0%, var(--blog-card-bg) 52%, #031109 100%);
}

.blog-news *,
.blog-news *::before,
.blog-news *::after {
  box-sizing: inherit;
}

.blog-news__inner {
  width: min(100%, 1680px);
  margin: 0 auto;
}

.blog-news__eyebrow {
  margin: 0 28px 32px;
  font-size: var(--font-size-14, 14px);
  line-height: 18px;
  font-weight: var(--font-weight-bold, 700);
  text-transform: uppercase;
  color: var(--blog-card-fg);
}

.blog-news__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  gap: 32px;
  padding: 0 28px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.blog-news__track::-webkit-scrollbar {
  display: none;
}

.blog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--blog-card-gap);
  scroll-snap-align: start;
  color: var(--blog-card-fg);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  width: 100%;
  overflow: hidden;
  background: var(--blog-card-media-bg);
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--blog-card-ease), opacity 0.24s ease;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--blog-card-meta-gap);
  margin: 0 0 16px;
  color: var(--blog-card-fg);
  font-size: clamp(20px, 1.45vw, 28px);
  line-height: 1.28;
  font-weight: var(--font-weight-medium, 500);
}

.blog-card__category {
  text-transform: uppercase;
}

.blog-card__title {
  max-width: 21ch;
  margin: 0 0 28px;
  color: var(--blog-card-fg);
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 1.32;
  font-weight: var(--font-weight-light, 300);
}

.blog-card__link {
  --_bg: transparent;
  --_border: transparent;
  --_fg: var(--blog-card-fg);
  --btn-gap: 14px;
  --btn-h: auto;
  --btn-px: 0px;
  --btn-fs: var(--font-size-14, 14px);
  --btn-lh: 20px;

  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 4px 0;
  border: 0;
  border-radius: var(--radius-button, 0);
  font-family: inherit;
  font-size: var(--font-size-14, 14px);
  line-height: 20px;
  font-weight: var(--font-weight-bold, 700);
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
  color: var(--blog-card-fg);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, box-shadow 0.18s ease;
}

.blog-card__link-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--blog-card-accent);
  transition: color 0.18s ease;
}

.blog-card__link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card:hover .blog-card__media img,
.blog-card.is-hover .blog-card__media img {
  transform: scale(1.035);
}

.blog-card__link:hover,
.blog-card__link.is-hover,
.blog-card.is-hover .blog-card__link {
  --_fg: var(--blog-card-fg);
  color: var(--blog-card-fg);
  text-decoration: none;
}

.blog-card__link:focus {
  outline: none;
}

.blog-card__link:focus-visible,
.blog-card__link.is-focus,
.blog-card.is-focus .blog-card__link {
  --_fg: var(--blog-card-fg);
  color: var(--blog-card-fg);
  text-decoration: none;
  box-shadow: 0 0 0 2px var(--blog-card-bg), 0 0 0 4px var(--blog-card-focus-ring);
}

.blog-card__link[aria-disabled="true"],
.blog-card__link.is-disabled,
.blog-card.is-disabled .blog-card__link {
  color: var(--grey-500, #8c9298);
  pointer-events: none;
  cursor: not-allowed;
  text-decoration-color: transparent;
}

.blog-card__link[aria-disabled="true"] .blog-card__link-icon,
.blog-card__link.is-disabled .blog-card__link-icon,
.blog-card.is-disabled .blog-card__link-icon {
  color: var(--grey-600, #666d76);
  transform: none;
}

.blog-card--light {
  --blog-card-bg: var(--bg-default, #f7f8f8);
  --blog-card-fg: var(--fg-default, #1b2124);
  --blog-card-muted: var(--grey-700, #404953);
  --blog-card-focus-ring: var(--btn-focus-ring, #1b2124);
}

.blog-card--wide .blog-card__media {
  aspect-ratio: 1.52 / 1;
}

@media (min-width: 960px) {
  .blog-news__track {
    grid-auto-columns: minmax(420px, 1fr);
  }
}

@media (min-width: 1280px) {
  .blog-news__track {
    grid-auto-columns: minmax(520px, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-news {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .blog-news__eyebrow {
    margin-inline: 28px;
    margin-bottom: 24px;
  }

  .blog-news__track {
    grid-auto-columns: minmax(280px, 78vw);
    gap: 24px;
  }

  .blog-card {
    --blog-card-gap: 18px;
    --blog-card-meta-gap: 18px;
  }

  .blog-card__meta {
    margin-bottom: 12px;
    font-size: var(--font-size-20, 20px);
  }

  .blog-card__title {
    margin-bottom: 24px;
    font-size: var(--font-size-24, 24px);
    line-height: 1.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card__media img,
  .blog-card__link,
  .blog-card__link-icon {
    transition: none;
  }

  .blog-card:hover .blog-card__media img,
  .blog-card.is-hover .blog-card__media img {
    transform: none;
  }
}


/* === design-system/blog-post-card.css === */
/* ============================================================================
   CANTOVI · Blog Post Card (nuevo componente, listado del blog)
   Fuente Figma: 52110:7521 (Card blog article — light on white)
   Anatomía:
     .blog-post-card
       └ .blog-post-card__media  (aspect 4/3, hover: scale 1.03)
       └ .blog-post-card__body
           ├ .blog-post-card__kicker  (tag/categoría — muted, uppercase small)
           ├ .blog-post-card__title   (h3, dark, 18px)
           └ .blog-post-card__meta    (fecha · lectura, muted)
   Usa tokens del DS; sin colores hard-coded.
   ========================================================================== */

.blog-post-card {
  /* Tokens de Figma (Foreground/Static/*) mapeados a los grises del DS.
     Editando estas variables se re-tematiza toda la card. */
  --bpc-bg: transparent;                             /* Card_blog sin fill: hereda el fondo de la sección */
  --bpc-fg: var(--grey-950, #1b2124);                /* Foreground/Static/Default — título */
  --bpc-kicker: var(--grey-900, #1a2431);            /* Foreground/Static/Dim1  — tag */
  --bpc-meta: var(--grey-800, #333d48);              /* Foreground/Static/Dim2  — meta */
  --bpc-divider: var(--grey-300, #bfc2c6);           /* Foreground/Static/Divider */
  --bpc-media-bg: var(--grey-100, #e6e7e8);
  --bpc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  color: var(--bpc-fg);
  background: var(--bpc-bg);
  text-decoration: none;
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
}

.blog-post-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bpc-media-bg);
}

.blog-post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bpc-ease);
}

.blog-post-card:hover .blog-post-card__media img,
.blog-post-card:focus-visible .blog-post-card__media img {
  transform: scale(1.035);
}

.blog-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
}

.blog-post-card__kicker {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bpc-kicker);
}

.blog-post-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--bpc-fg);
  /* Fallback: si motion.js no ha partido el texto en spans, el underline
     va directamente sobre el <h3>. */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s var(--bpc-ease);
}

/* Cuando motion.js parte el título en .word-reveal (display: inline-block),
   el underline del <h3> se fragmenta. Aplicamos underline a cada span
   para que se dibuje palabra a palabra en cualquier número de líneas. */
.blog-post-card__title .word-reveal {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s var(--bpc-ease);
}

.blog-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--bpc-meta);
}

.blog-post-card__meta-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bpc-divider);
}

/* ─── Hover / Focus ────────────────────────────────────────────────────── */
.blog-post-card:hover .blog-post-card__title,
.blog-post-card:focus-visible .blog-post-card__title,
.blog-post-card:hover .blog-post-card__title .word-reveal,
.blog-post-card:focus-visible .blog-post-card__title .word-reveal {
  text-decoration-color: currentColor;
}

.blog-post-card:focus-visible {
  outline: 3px solid var(--yellow-300, #ffd970);
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blog-post-card__media img,
  .blog-post-card__title {
    transition: none;
  }
  .blog-post-card:hover .blog-post-card__media img,
  .blog-post-card:focus-visible .blog-post-card__media img {
    transform: none;
  }
}


/* === design-system/blog-page.css === */
/* ============================================================================
   CANTOVI · Blog page (index/listado)
   Fuente Figma: 52110:8522 (desktop) · 52110:13136 (mobile)
   Estructura:
     .blog-page
       ├ .blog-page__hero         (breadcrumb + h1 + lead + hero image)
       ├ .blog-page__filter       (dropdown "Todas las categorías" centrado)
       ├ .blog-page__grid         (grid de blog-post-card, 2 cols desktop)
       └ (section-related__categorias — reutiliza componente existente)
   Contenedor: 1184px como el resto del sitio.
   ========================================================================== */

.blog-page {
  --blog-container: 1184px;
  --blog-gutter: clamp(20px, 4vw, 32px);
  --blog-fg: var(--fg-default, #1b2124);
  --blog-fg-muted: var(--grey-600, #666d76);
  --blog-divider: var(--grey-200, #d4d6d8);
  --blog-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: #ffffff;
  color: var(--blog-fg);
  font-family: var(--font-family-base, 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif);
}

.blog-page__container {
  width: 100%;
  max-width: var(--blog-container);
  margin-inline: auto;
  padding-inline: var(--blog-gutter);
  box-sizing: border-box;
}

/* ─── HERO ─────────────────────────────────────────────────────────────── */
.blog-page__hero {
  padding: 32px 0 24px;
}

.blog-page__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--blog-fg);
}

.blog-page__lead {
  margin: 0 0 32px;
  max-width: 720px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--blog-fg-muted);
}

/* Hero image full-bleed: vive fuera del .blog-page__container para tocar
   los bordes del viewport. Su ratio se relaja en móvil para no ser muy alta. */
.blog-page__hero-media {
  width: 100%;
  aspect-ratio: 1512 / 380;
  overflow: hidden;
  background: var(--grey-100, #e6e7e8);
}

.blog-page__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── FILTER ───────────────────────────────────────────────────────────── */
.blog-page__filter {
  display: flex;
  justify-content: flex-end;    /* Figma: alineado a la derecha */
  padding: 40px 0 24px;
}

.blog-filter-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 260px;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--blog-divider);
  color: var(--blog-fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.18s var(--blog-ease);
}

.blog-filter:hover,
.blog-filter:focus-visible {
  border-color: var(--blog-fg);
  outline: none;
}

.blog-filter__label {
  flex: 1 1 auto;
  text-align: left;
}

.blog-filter__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: transform 0.2s var(--blog-ease);
}

.blog-filter[aria-expanded="true"] .blog-filter__icon {
  transform: rotate(180deg);
}

/* Dropdown panel — hermano del botón, no anidado.
   Estructura:  <ul>   ← .blog-filter__list (opciones)
                <div>  ← .blog-filter__actions (botón "Mostrar resultados") */
.blog-filter__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--blog-divider);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin: 0;
}

.blog-filter__menu[hidden] {
  display: none;
}

.blog-filter__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: min(360px, 60vh);
  overflow-y: auto;
}

/* Opción: la línea indicadora izquierda aparece en hover/focus y en el
   estado pending/selected. Mejora la identificación visual y refuerza
   accesibilidad (WCAG 1.4.11 non-text contrast). */
.blog-filter__option {
  display: block;
  width: 100%;
  padding: 10px 16px 10px 13px;      /* 13px = 16px - 3px del border-left */
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--blog-fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s var(--blog-ease),
    border-left-color 0.15s var(--blog-ease);
}

.blog-filter__option:hover,
.blog-filter__option:focus-visible,
.blog-filter__option[data-pending="true"],
.blog-filter__option[aria-selected="true"] {
  background: var(--grey-50, #f7f8f8);
  border-left-color: var(--blog-fg);
  outline: none;
}

.blog-filter__option[aria-selected="true"],
.blog-filter__option[data-pending="true"] {
  font-weight: 500;
}

/* Footer con el botón "Mostrar resultados" — confirma cambio de contexto */
.blog-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--blog-divider);
  background: #ffffff;
}

.blog-filter__apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  background: var(--grey-950, #1b2124);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s var(--blog-ease);
}

.blog-filter__apply:hover,
.blog-filter__apply:focus-visible {
  background: var(--grey-900, #1a2431);
  outline: none;
}

.blog-filter__apply:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--yellow-300, #ffd970);
}

.blog-filter__apply[disabled] {
  background: var(--grey-300, #bfc2c6);
  cursor: not-allowed;
}

/* ─── GRID ─────────────────────────────────────────────────────────────── */
.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding: 16px 0 64px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-page__hero {
    padding: 24px 0 16px;
  }
  .blog-page__title {
    font-size: 28px;
    line-height: 1.15;
  }
  .blog-page__lead {
    margin-bottom: 24px;
  }
  .blog-page__hero-media {
    aspect-ratio: 4 / 3;
  }
  .blog-page__filter {
    padding: 24px 0 16px;
  }
  .blog-filter-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .blog-filter {
    width: 100%;
  }
  .blog-page__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0 48px;
  }
}

@media (max-width: 520px) {
  .blog-page__title {
    font-size: 26px;
  }
}


/* === design-system/input.css === */
/* ============================================================================
   CANTOVI · Input / Textarea / Select (shared)
   Fuente de verdad: Figma 1996:206674 (Input component_set)
   Aplicado a: .contact-form fields en contacto.html y forms futuros.

   Anatomía:
     .field         → wrapper con label + control
     .field-label   → label con opcional required indicator
     .field-hint    → hint text a la derecha del label
     .field-input   → input, textarea, select (control)
     .field-error   → mensaje de error debajo del control

   Estilo aprobado (per Figma):
     · Solo border-bottom, sin border-radius, sin box
     · Padding vertical cómodo, sin fondo
     · Estados: default · hover · focus · error · disabled · completed
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  color: #071323;
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #071323;
}

.field-required {
  color: #dc2626;
  font-weight: 400;
}

.field-hint {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  color: #666d76;
}

/* ─── Control base: input, textarea, select ─────────────────────────────── */
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #404953;   /* --border-default (Grey/700) */
  border-radius: 0;
  color: #071323;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.field-input::placeholder {
  color: #8c9298;         /* Grey/500 */
  opacity: 1;
  font-weight: 300;
}

/* Textarea override */
textarea.field-input {
  min-height: 96px;
  padding: 12px 0;
  resize: vertical;
  line-height: 24px;
}

/* Select — remove browser chrome + add caret */
select.field-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23404953' stroke-width='1.5'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

/* ─── States ─────────────────────────────────────────────────────────────── */
.field-input:hover:not(:disabled) {
  border-bottom-color: #1a2431;   /* Grey/900 */
}

.field-input:focus,
.field-input:focus-visible {
  border-bottom-color: #071323;   /* Grey/950 dark */
  outline: none;
  box-shadow: 0 1px 0 0 #071323;  /* thicker visual "focus underline" */
}

/* Completed (has value) — same as default but darker text */
.field-input:not(:placeholder-shown):not(:focus) {
  color: #071323;
  border-bottom-color: #333d48;
}

/* Error */
.field.is-error .field-input,
.field-input[aria-invalid="true"] {
  border-bottom-color: #dc2626;  /* Red/600 */
}
.field.is-error .field-input:focus,
.field-input[aria-invalid="true"]:focus {
  box-shadow: 0 1px 0 0 #dc2626;
}

/* Disabled */
.field-input:disabled,
.field-input[aria-disabled="true"] {
  color: #8c9298;
  border-bottom-color: #d4d6d8;
  cursor: not-allowed;
}
.field-input:disabled::placeholder,
.field-input[aria-disabled="true"]::placeholder {
  color: #bfc2c6;
}

/* ─── Error message below control ───────────────────────────────────────── */
.field-error {
  font-size: 13px;
  line-height: 18px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.field.is-error .field-error {
  display: block;
}

/* ─── Legacy aliases for existing .line-input / .line-textarea ──────────── */
.line-input,
.line-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #404953;
  border-radius: 0;
  color: #071323;
  font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.line-textarea {
  min-height: 96px;
  resize: vertical;
}

.line-input::placeholder,
.line-textarea::placeholder {
  color: #8c9298;
  opacity: 1;
  font-weight: 300;
}

.line-input:hover:not(:disabled),
.line-textarea:hover:not(:disabled) {
  border-bottom-color: #1a2431;
}

.line-input:focus,
.line-textarea:focus {
  border-bottom-color: #071323;
  outline: none;
  box-shadow: 0 1px 0 0 #071323;
}

/* === design-system/footer-link.css === */
/* ============================================================================
   CANTOVI · Footer · enlace externo (WhatsApp, Email)
   Fuente Figma: Button Link-neutral-inverse con icono derecho (node 52381:7082),
   usado en Footer / Device=Mobile (node 52381:5944).
   Marcado:
     <a class="footer-link footer-link--external" href="…">
       <span class="footer-link__label">WhatsApp</span>
       <span class="footer-link__icon" aria-hidden="true"></span>
     </a>
   Selector con `footer a` para ganar a los .footer-link de cada página.
   ========================================================================== */

footer a.footer-link.footer-link--external {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.48px;
  color: var(--grey-300);
  text-decoration: none;
  transition: color 0.2s;
}

footer a.footer-link.footer-link--external .footer-link__label {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

footer a.footer-link.footer-link--external .footer-link__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("../source/img/icons/icon_external.svg") center / contain no-repeat;
  mask: url("../source/img/icons/icon_external.svg") center / contain no-repeat;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

footer a.footer-link.footer-link--external:hover,
footer a.footer-link.footer-link--external:focus-visible {
  color: var(--base-white);
  text-decoration: none;
}

footer a.footer-link.footer-link--external:hover .footer-link__icon {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  footer a.footer-link.footer-link--external .footer-link__icon { transition: none; }
}

/* === design-system/product-sections.css === */
/* Secciones de producto unificadas (Figma › "section que son" / "section por que elegir"):
   · ¿Qué es…?        .product-info  → foto bajo el texto (.info-media)
   · ¿Por qué elegir? .why-section   → fondo beige, rejilla de líneas, numeración 01… */
.subcategory-page .info-media { width: 100%; max-width: 561px; margin: 32px 0 0; aspect-ratio: 561 / 383; overflow: hidden; background: #ececec; }
.subcategory-page .info-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.subcategory-page .why-section { padding: 96px 0 104px; background: #f3f0ea; }
.subcategory-page .why-grid { gap: 0; margin-top: 40px; counter-reset: cantovi-why; border-top: 1px solid #bfc2c6; border-left: 1px solid #bfc2c6; }
.subcategory-page .why-card { display: flex; flex-direction: column; gap: 12px; min-height: 154px; padding: 24px; background: transparent; border-right: 1px solid #bfc2c6; border-bottom: 1px solid #bfc2c6; counter-increment: cantovi-why; }
.subcategory-page .why-card::before { content: counter(cantovi-why, decimal-leading-zero); color: #999999; font-size: 14px; line-height: 20px; font-weight: 300; }
.subcategory-page .why-dot { display: none; }
.subcategory-page .why-card h3 { margin: 0; color: #1b2124; font-size: 24px; line-height: 32px; font-weight: 300; }
.subcategory-page .why-card p { color: #666e75; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0.01em; }
@media (max-width: 900px) { .subcategory-page .info-media { max-width: none; } }
@media (max-width: 640px) {
  .subcategory-page .info-media { margin-top: 24px; aspect-ratio: 335 / 230; }
  .subcategory-page .why-section { padding: 56px 0 64px; }
  .subcategory-page .why-grid { margin-top: 28px; }
  .subcategory-page .why-card { min-height: 0; padding: 20px; }
  .subcategory-page .why-card h3 { font-size: 20px; line-height: 28px; }
  .subcategory-page .why-card p { font-size: 15px; line-height: 22px; }
}

/* Imagen no disponible: hueco neutro cuando un producto está pendiente de
   material fotográfico oficial (ACF product_photos_pending). Ocupa el hueco
   de la imagen y conserva sus proporciones. */
.media-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #ececec;
  color: #8a9199;
  text-align: center;
}
.media-unavailable svg { width: 28px; height: 28px; flex-shrink: 0; }
.media-unavailable__label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-tile--unavailable,
.project-media--unavailable { display: block; }

/* === design-system/page-hero-title.css === */
/* ============================================================================
   Page hero title — H1 del hero de las páginas interiores
   ----------------------------------------------------------------------------
   Una sola regla tipográfica para el título principal (H1) de las páginas
   interiores: Blog, Contacto, Sobre Cantovi, Productos, categorías
   (Puertas, Pavimentos, Frisos, Tarimas…), fichas de subcategoría/producto y
   las páginas de plugin (Suelos vinílicos SPC y WPC, Frisos Floor Step).

   Desktop: 48px / 56px / Bold (700) (Figma 52656:17886). Familia y color: los de cada página.
   Tablet (≤900px): 40px / 48px. Mobile (≤640px): 28px / 36px (Figma 52632:5809).

   Para un H1 nuevo de este patrón: añadir la clase .page-hero-title.
   NO se aplica a la Home (body.home: título especial de 72px) ni a los
   títulos que no son de hero (formulario de Pedir presupuesto, artículo del
   blog). Los valores viven en los tokens --page-hero-title-*; no declarar
   tamaños de H1 en el CSS de cada página.

   Especificidad (0,2,2): gana a los estilos heredados de cada página
   (.hero-title, .subcategory-title, body.cantovi-page-sobre-cantovi …),
   que siguen en sus CSS pero ya no mandan en tamaño/interlineado/peso.
   Se concatena al final de assets/css/main.css.
   ========================================================================== */
:root {
  --page-hero-title-size: 48px;
  --page-hero-title-line-height: 56px;
  --page-hero-title-weight: var(--font-weight-bold, 700);
}

@media (max-width: 900px) {
  :root {
    --page-hero-title-size: 40px;
    --page-hero-title-line-height: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-hero-title-size: 28px;   /* Figma Heading/Mobile/H2/Bold */
    --page-hero-title-line-height: 36px;
  }
}

body:not(.home) h1:is(
  .page-hero-title,
  .hero-title,
  .subcategory-title,
  .intro-title,
  .contact-heading,
  .blog-page__title,
  .spc-title,
  .sobre-hero__title
) {
  font-size: var(--page-hero-title-size);
  line-height: var(--page-hero-title-line-height);
  font-weight: var(--page-hero-title-weight);
  overflow-wrap: break-word;
}

/* === design-system/size-guide.css === */
/* ============================================================================
   Size guide — bloque «Medidas estándar» de las fichas de producto
   ----------------------------------------------------------------------------
   Tablas HTML accesibles (caption + th scope) con paso libre / hueco de obra,
   tamaño máximo fabricado, nota y etiqueta opcional de servicio rápido.
   Datos: campos ACF «Medidas estándar y plazos» (functions.php).
   Marcado: single-producto.php. Se concatena al final de assets/css/main.css.
   ========================================================================== */
.size-guide { background: var(--white, #fff); padding: 84px 0; }
.size-guide__head { max-width: 720px; margin-bottom: 36px; }
.size-guide__title { margin: 0 0 16px; }
.size-guide__intro { margin: 0; color: #59616b; font-size: 15px; line-height: 24px; font-weight: 300; }
.size-guide__badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 0; }
.size-guide__badge-label { display: inline-block; padding: 7px 12px; background: #071323; color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.size-guide__badge-text { color: #59616b; font-size: 13px; line-height: 19px; font-weight: 300; }
.size-guide__tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.size-table { width: 100%; border-collapse: collapse; background: #f6f6f6; table-layout: fixed; }
.size-table caption { caption-side: top; padding: 22px 24px 12px; background: #f6f6f6; color: #071323; font-size: 16px; line-height: 22px; font-weight: 700; text-align: left; }
.size-table th { padding: 10px 24px; border-bottom: 1px solid #e3e5e8; color: #9299a2; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.size-table td { padding: 14px 24px; border-bottom: 1px solid #e3e5e8; color: #071323; font-size: 15px; line-height: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table__w, .size-table__h { white-space: nowrap; }
.size-guide__max { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 24px 0 0; color: #071323; font-size: 15px; line-height: 22px; }
.size-guide__max-label { color: #9299a2; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.size-guide__note { max-width: 720px; margin: 12px 0 0; color: #646c75; font-size: 13px; line-height: 19px; font-weight: 300; }

@media (max-width: 900px) {
  .size-guide__tables { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .size-guide { padding: 56px 0; }
  .size-guide__head { margin-bottom: 24px; }
  .size-table caption { padding: 18px 16px 10px; font-size: 15px; }
  .size-table th { padding: 10px 16px; font-size: 10px; letter-spacing: .06em; }
  .size-table td { padding: 12px 16px; font-size: 14px; line-height: 20px; }
}


/* === design-system/card-scroll.css · fix carrusel de familias === */
/* Las páginas de familia (Puertas, Pavimentos, Frisos, Casetones, Seguridad,
   Alistonados, Tarimas…) ponían a ≤900px `.scroll-card { width:100% }` dentro
   de un carrusel flex: cada tarjeta encogía al ancho de su texto y la imagen
   cuadrada salía de tamaños distintos. Aquí manda el componente: tarjeta fija
   de --cscroll-width (165px) que no encoge, con snap. Especificidad mayor que
   las reglas de cada página, que se quedan pero ya no deciden el tamaño. */
.carrusel > .scroll-card {
  flex: 0 0 var(--cscroll-width, 165px);
  width: var(--cscroll-width, 165px);
  max-width: none;
  scroll-snap-align: start;
}
.carrusel > .scroll-card .scroll-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* === design-system/card-scroll.css · variante circular (--circle) === */
/* Figma CANTOVI · UI › Productos - new (52643:14823): misma Card scroll
   (thumbnail + label, subrayado en hover/focus), con media circular 103px,
   tarjeta 104px y label P3/Medium 12/18 centrado. Uso: anclas a categorías. */
.cscroll--circle {
  --cscroll-width:          104px;
  --cscroll-media-size:     103px;
  --cscroll-radius:         var(--radius-full, 9999px);
  --cscroll-label-size:     var(--font-size-12, 12px);
  --cscroll-label-line:     18px;                 /* Line-height/Leading 18 */
  --cscroll-label-tracking: 0;
  --cscroll-label-pad:      4px 0 2px;
  flex: 0 0 var(--cscroll-width);
  align-items: center;
}
.cscroll--circle .cscroll__media {
  width: var(--cscroll-media-size);
  height: var(--cscroll-media-size);
}
.cscroll--circle .cscroll__label {
  width: 100%;
  text-align: center;
}

/* === design-system/divider.css === */
/* Divider horizontal · Figma «dIVIDER» (52643:14436): 1px, Foreground/Static/Divider. */
.ds-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--grey-300, #bfc2c6);
}

/* === design-system/footer-wordmark.css === */
/* Wordmark «CANTOVI.» del footer en móvil. Las páginas interiores lo declaran
   con clamp(72px, 15vw, 179px): por debajo de ~370px el mínimo de 72px no cabe
   y la página entera hace scroll lateral. Se limita al ancho disponible
   («CANTOVI.» ≈ 4.6× su font-size; 48px = padding lateral máximo del footer),
   manteniendo el tamaño de cada página donde ya cabía. Blog (56px) ya cabe:
   queda fuera; Home conserva su propia fórmula, también limitada. Especificidad 0,3,1 > reglas de página. */
@media (max-width: 640px) {
  body:not(.home):not(.cantovi-page-blog) .footer-wordmark {
    font-size: min(clamp(72px, 15vw, 179px), calc((100vw - 48px) / 4.65));
  }
  /* Home: su propio clamp(56px, 20vw, 86px) sin tracking tampoco cabía (texto recortado). */
  body.home .footer-wordmark {
    font-size: min(clamp(56px, 20vw, 86px), calc((100vw - 48px) / 4.65));
  }
}

/* === design-system/reg-systems.css === */
/* ============================================================================
   Reg systems — bloque «Sistemas registrables» (Fachada / Techo ventilado)
   ----------------------------------------------------------------------------
   Reutiliza .section-label/.section-heading, .finishes-grid/.finish-card y la
   tabla .size-table. Añade intro, fila de cabecera por fila y la etiqueta de
   estado (Sí / No / Sin verificar). Datos: grupo ACF «Sistemas registrables».
   Se concatena al final de assets/css/main.css.
   ========================================================================== */
.reg-systems { background: var(--white, #fff); padding: 84px 0; border-top: 1px solid #eceef0; }
.reg-systems__head { max-width: 760px; margin-bottom: 34px; }
.reg-systems__title { margin: 0 0 18px; }
.reg-systems__intro { margin: 0 0 14px; color: #071323; font-size: 18px; line-height: 27px; font-weight: 400; }
.reg-systems__text { margin: 0; color: #59616b; font-size: 15px; line-height: 24px; font-weight: 300; }
.reg-systems__media { margin: 0 0 36px; }
.reg-systems__table col, .reg-systems__table th:nth-child(1) { width: 42%; }
.reg-systems__table th:nth-child(3) { width: 24%; }
.size-table.reg-systems__table tbody th[scope="row"] { padding: 14px 24px; border-bottom: 1px solid #e3e5e8; color: #071323; font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left; }
.size-table.reg-systems__table tbody tr:last-child th { border-bottom: 0; }
.reg-badge { display: inline-block; padding: 3px 10px; font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.reg-badge--yes { background: #071323; color: #fff; }
.reg-badge--no { background: #e3e5e8; color: #071323; }
.reg-badge--pending { background: #fff; color: #59616b; box-shadow: inset 0 0 0 1px #c9ced4; }
.reg-systems__note { max-width: 760px; margin: 14px 0 0; color: #646c75; font-size: 13px; line-height: 19px; font-weight: 300; }
.reg-systems__link-wrap { margin: 22px 0 0; }
.reg-systems__link { color: #071323; font-size: 15px; line-height: 22px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.reg-systems__link:hover { text-decoration-thickness: 2px; }
.reg-systems__link:focus-visible { outline: 2px solid #071323; outline-offset: 3px; }

@media (max-width: 640px) {
  .reg-systems { padding: 56px 0; }
  .reg-systems__intro { font-size: 16px; line-height: 24px; }
  .reg-systems__media { margin-bottom: 28px; }
  .size-table.reg-systems__table th, .size-table.reg-systems__table td,
  .size-table.reg-systems__table tbody th[scope="row"] { padding: 10px 12px; font-size: 13px; line-height: 18px; }
  .size-table.reg-systems__table th, .size-table.reg-systems__table td,
  .size-table.reg-systems__table tbody th[scope="row"] { padding: 10px 8px; }
  .size-table.reg-systems__table thead th { font-size: 10px; letter-spacing: 0; }
  .reg-systems__table th:nth-child(1) { width: 38%; }
  .reg-systems__table th:nth-child(3) { width: 28%; }
  .reg-badge { padding: 2px 6px; font-size: 10px; letter-spacing: .02em; white-space: normal; }
}

/* === design-system/family-hero.css === */
/* ============================================================================
   Hero de familia — categorías de primer nivel (Puertas, Pavimentos, Frisos,
   Casetones, Puertas de seguridad, Alistonados exterior, Tarimas exterior).
   Marcado: <section class="hero hero--family section"> con .carrusel de
   .scroll-card y .carrusel-nav (contador + Button arrow) justo después.
   Fuente: Figma CANTOVI · UI › Tarimas Exterior 52661:18388 (mobile 375).
   Las páginas siguen teniendo su CSS propio; aquí solo lo compartido.
   ========================================================================== */

/* ---- Todas las anchuras: carrusel a sangre hasta el borde derecho --------
   El primer card sigue alineado con breadcrumb/H1; el carrusel se extiende
   hasta el borde del viewport y, al final del scroll, el último card queda
   alineado con el borde derecho del contenido (padding final = sangrado).
   Requiere que el contenido del hero esté centrado (padding simétrico). */
.hero--family { overflow-x: clip; }              /* nunca ensancha el documento */
.hero--family .carrusel {
  margin-right: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
}

/* ---- Controles: contador «n/total» + Button arrow (Figma 52661:18400) ----
   Solo visibles cuando el carrusel tiene contenido oculto (section-related.js). */
.carrusel-nav {
  --sr-fg: #071323;
  --sr-fg-muted: #666d76;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 8px;
}
.carrusel-nav[hidden] { display: none; }
.carrusel-nav__count {
  font-family: var(--font-family-base);
  font-size: var(--font-size-18, 18px);
  line-height: 24px;
  font-weight: var(--font-weight-medium, 500);
  color: var(--fg-default, #1b2124);
  font-variant-numeric: tabular-nums;
}
.carrusel-nav .section-related__nav { gap: 16px; }
.carrusel-nav .arrow-btn { width: 50px; height: 40px; }
.carrusel-nav .arrow-btn svg { width: 40px; }

/* ---- Tablet (641–900): las páginas quitan el padding derecho del hero;
   se restablece para que el contenido quede centrado y el sangrado cuadre. */
@media (min-width: 641px) and (max-width: 900px) {
  .hero--family .hero-inner { padding-right: clamp(20px, 4vw, 32px); }
}

/* ---- Mobile (≤640) · Figma 52661:18388 -----------------------------------
   Márgenes 16 · header→breadcrumb 16 · breadcrumb→H1 24 · H1→descripción 16
   · descripción→anclas 36 · anclas→controles 8 · controles→sección 36.
   Card scroll mobile: 104 de ancho, imagen 103×103, label 12/18, gap 12. */
@media (max-width: 640px) {
  .hero.hero--family,
  .hero--family ~ .section:not(.section-related) { padding-left: 0; padding-right: 0; }
  .hero--family > .section-inner,
  .hero--family ~ .section:not(.section-related) > .section-inner {
    padding-left: 16px; padding-right: 16px;
    width: 100%; max-width: none;     /* varias páginas limitan a 100vw − 40px (+20px de margen extra) */
  }
  .hero--family :is(.hero-title, .hero-lead),
  .hero--family ~ .about :is(.about-title, .about-text) { width: auto; max-width: none; }

  .hero.hero--family { padding-top: 16px; padding-bottom: 36px; }
  .hero--family ~ .about { padding-top: 0; padding-bottom: 36px; }
  .hero--family .hero-inner { gap: 0; }
  .hero--family .breadcrumb { margin: 0 0 24px; gap: 8px !important; }
  .hero--family .breadcrumb .crumb-link,
  .hero--family .breadcrumb .crumb-current { font-size: 14px !important; line-height: 20px !important; }
  .hero--family .breadcrumb .crumb-sep { font-size: 16px !important; line-height: 16px !important; }
  .hero--family .hero-title { margin: 0 0 16px; }
  .hero--family .hero-lead { margin: 0 0 36px; font-size: 18px; line-height: 24px; }

  .hero--family .carrusel { gap: 12px; padding-bottom: 0; }
  .hero--family .carrusel > .scroll-card {
    flex: 0 0 104px; width: 104px; max-width: none;
  }
  .hero--family .carrusel > .scroll-card .scroll-img {
    width: 103px; height: 103px; aspect-ratio: auto;
  }
  .hero--family .scroll-label {
    padding: 4px 0 2px; margin: 0;
    font-size: var(--font-size-12, 12px); line-height: 18px;
    font-weight: var(--font-weight-medium, 500); letter-spacing: 0;
    text-align: left;
  }
}

/* === design-system/section-related.css · card-sub hover (Figma 51699:7683) === */
/* Card_product · Type=Image+body. Default: título y «Descubrir» sin subrayar.
   Hover/Focus: se subrayan los dos y el kicker pasa a Dim (#999999).
   El subrayado está siempre presente pero transparente para poder animarlo;
   la flecha (::after, inline-block) no se subraya. */
.card-sub__title,
.card-sub__link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--sr-ease);
}
.card-sub__kicker { transition: color 0.2s var(--sr-ease); }
.card-sub:hover .card-sub__title,
.card-sub:hover .card-sub__link,
.card-sub:focus-visible .card-sub__title,
.card-sub:focus-visible .card-sub__link { text-decoration-color: currentColor; }
.card-sub:hover .card-sub__kicker,
.card-sub:focus-visible .card-sub__kicker { color: #999999; }
@media (prefers-reduced-motion: reduce) {
  .card-sub__title, .card-sub__link, .card-sub__kicker { transition: none; }
}

/* ============================================================================
   CANTOVI · Bloque editorial · 3 fotografías
   Figma CANTOVI UI 52672:7205 («Image strip»). Sustituye a la imagen única de
   material (.wide-image) entre «¿Qué es…?» y «¿Por qué elegir…?».
   Markup: functions.php › cantovi_editorial_trio_render().

   Desktop (frame 1298): franja a sangre, fondo bg-default, padding 16 / 27,
   gap 16, fotos alineadas arriba: 595×406 (flexible) · 312×312 · 359×358.
   Columnas en fr con esos anchos + aspect-ratio por foto → a 1298 px coincide
   al píxel con Figma y escala de forma proporcional en tablet (sin alturas fijas).
   Móvil (sin frame en Figma): la grande arriba a todo el ancho; debajo las dos
   medianas en fila, manteniendo sus proporciones y la alineación superior.
   ========================================================================== */
.editorial-trio { padding: 16px 0 27px; background: var(--bg-default, #f7f8f8); overflow: hidden; }
.editorial-trio__grid { display: grid; grid-template-columns: minmax(0, 595fr) minmax(0, 312fr) minmax(0, 359fr); gap: 16px; align-items: start; }
.editorial-trio__item { margin: 0; overflow: hidden; background: var(--grey-100, #e6e7e8); }
.editorial-trio__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.editorial-trio__item--1 { aspect-ratio: 595 / 406; }
.editorial-trio__item--2 { aspect-ratio: 1 / 1; }
.editorial-trio__item--3 { aspect-ratio: 359 / 358; }
@media (max-width: 640px) {
  .editorial-trio__grid { grid-template-columns: minmax(0, 312fr) minmax(0, 359fr); }
  .editorial-trio__item--1 { grid-column: 1 / -1; }
}

/* === design-system/contact-float.css === */
/* ============================================================================
   CANTOVI · Contact float (Feedback 07)
   Accesos directos flotantes abajo a la derecha: Llamar + WhatsApp.
   Markup: template-parts/contact-float.php (se pinta en wp_footer, todas las páginas).
   JS:     design-system/contact-float.js (se oculta al llegar al pie del footer).
   Requiere tokens.css. Botones cuadrados (--radius-button) como el resto de CANTOVI.
   z-index 900: por debajo del mega-menú (999) y del menú móvil (1200).
   ========================================================================== */

.contact-float {
  --cf-size: 56px;
  --cf-icon: 26px;
  --cf-offset: 24px;
  --cf-gap: 8px;

  position: fixed;
  right: calc(var(--cf-offset) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--cf-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  transition: opacity .25s ease, transform .25s cubic-bezier(0.23, 1, 0.32, 1), visibility .25s;
}

.contact-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.contact-float__list {
  display: flex;
  flex-direction: column;
  gap: var(--cf-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-float__item { margin: 0; }

.contact-float__btn {
  --_bg: var(--btn-neutral-bg);
  --_fg: var(--btn-neutral-fg);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cf-size);
  height: var(--cf-size);
  border-radius: var(--radius-button);
  background: var(--_bg);
  color: var(--_fg);
  text-decoration: none;
  box-shadow: 0 6px 20px var(--opacity-dark-20), 0 1px 3px var(--opacity-dark-20);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

/* WhatsApp (oscuro): filo claro para que se distinga también sobre heros oscuros */
.contact-float__btn--whatsapp {
  box-shadow: inset 0 0 0 1px var(--opacity-light-30), 0 6px 20px var(--opacity-dark-20), 0 1px 3px var(--opacity-dark-20);
}

/* Llamar: superficie clara para diferenciarlo del acceso principal (WhatsApp) */
.contact-float__btn--phone {
  --_bg: var(--base-white);
  --_fg: var(--grey-950);
}

.contact-float__icon {
  width: var(--cf-icon);
  height: var(--cf-icon);
  display: block;
  flex: 0 0 auto;
}

.contact-float__btn:hover,
.contact-float__btn:active {
  --_bg: var(--btn-neutral-bg-hover);
  --_fg: var(--btn-primary-fg);
}

.contact-float__btn:active { box-shadow: 0 2px 8px var(--opacity-dark-30); }

.contact-float__btn:focus { outline: none; }
.contact-float__btn:focus-visible {
  outline: 2px solid var(--btn-focus-ring);
  outline-offset: 2px;
  /* anillo claro extra para que el foco se vea también sobre heros oscuros */
  box-shadow: 0 0 0 5px var(--base-white), 0 6px 20px var(--opacity-dark-20);
}

/* ---- Etiqueta (tooltip) a la izquierda, estilo cartela -------------------- */
.contact-float__tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: var(--base-white);
  color: var(--grey-950);
  font-family: var(--font-family-base);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  white-space: nowrap;
  box-shadow: 0 6px 20px var(--opacity-dark-20);
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition: opacity .2s ease, transform .2s cubic-bezier(0.23, 1, 0.32, 1), visibility .2s;
  pointer-events: none;
}

.contact-float__tip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .contact-float__btn:hover .contact-float__tip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}

.contact-float__btn:focus-visible .contact-float__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

/* ---- Tablet / mobile ------------------------------------------------------ */
@media (max-width: 767px) {
  .contact-float {
    --cf-size: 48px;
    --cf-icon: 24px;
    --cf-offset: 16px;
  }
}

/* Mientras el menú móvil está abierto no compite con él */
body.cantovi-menu-locked .contact-float { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .contact-float,
  .contact-float__tip { transition: none; }
}

@media print {
  .contact-float { display: none !important; }
}

/* === Header · borde inferior (2026-11-24) ===
   Figma «Header» (1512 Fill × 72 Hug): Stroke inside 1px #BFC2C6 al 60 %.
   Solo cabeceras blancas de interior (--light / --solid); como sombra inset
   para no cambiar la altura de la cabecera. */
body #header.cantovi-header.cantovi-header--light,
body #header.cantovi-header.cantovi-header--solid,
body.cantovi-inner-page #header.cantovi-header.cantovi-header--light,
body.cantovi-inner-page #header.cantovi-header.cantovi-header--solid {
  box-shadow: inset 0 -1px 0 rgba(191, 194, 198, 0.6);
}

/* === design-system/finishes-swatch.css === */
/* ==========================================================================
   Finishes swatch — variante de .finishes-grid para muestras verticales
   (paneles de lamas, frisos…). Activar en la ficha con el campo ACF
   «Formato de la galería de acabados» = «Muestras verticales».
   Subir la foto del panel recortada al borde (sin margen blanco); se ajusta
   con object-fit: cover a proporción vertical 1:2,8.
   Se concatena al final de assets/css/main.css.
   ========================================================================== */
.finishes-grid.finishes-grid--swatch {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px 16px;
}
.finishes-grid--swatch .finish-card { margin: 0; }
.finishes-grid--swatch .finish-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2.8;
  object-fit: cover;
  object-position: 50% 50%;
  background: #ececec;
}
@media (max-width: 1100px) {
  .finishes-grid.finishes-grid--swatch { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .finishes-grid.finishes-grid--swatch { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .finishes-grid.finishes-grid--swatch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
}
@media (max-width: 340px) {
  .finishes-grid.finishes-grid--swatch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* === design-system/door-showcase.css === */
/* ============================================================================
   Door showcase — bloque destacado de modelos de puerta (fotos sobre blanco)
   ----------------------------------------------------------------------------
   Primer uso: ficha producto «Puertas lacadas» › «Puertas lacadas blancas enrasadas» (Feedback 04).
   Marcado: functions.php › cantovi_lacadas_blancas_render(). Reutiliza
   .subcategory-container, .section-label y .section-heading de la página.
   Cabecera editorial en 2 columnas (título | texto) + rejilla de tarjetas
   3:4 con la puerta centrada (object-fit: cover solo recorta blanco lateral).
   4 → 2 columnas (≤ 900) → 2 columnas compactas (≤ 640). Sin alturas fijas.
   Se concatena al final de assets/css/main.css.
   ========================================================================== */
.door-showcase { padding: 0 0 92px; background: var(--white, #fff); }
.door-showcase__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 86px; align-items: end; padding-top: 72px; border-top: 1px solid #eceef0; }
.door-showcase .door-showcase__title { margin-bottom: 0; }
.door-showcase__text { max-width: 480px; margin: 0; color: #071323; font-size: 18px; line-height: 27px; font-weight: 300; }
.door-showcase__note { max-width: 480px; margin: 14px 0 0; color: #646c75; font-size: 13px; line-height: 19px; font-weight: 300; }
.door-showcase__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.door-showcase__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.door-showcase__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door-showcase__grid--1 { grid-template-columns: minmax(0, 360px); }
.door-showcase__item { margin: 0; }
.door-showcase__card { margin: 0; }
.door-showcase__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border: 1px solid #eceef0; box-sizing: border-box; }
.door-showcase__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .32s var(--ease, cubic-bezier(.22,1,.36,1)); }
.door-showcase__card:hover .door-showcase__media img { transform: scale(1.035); }
.door-showcase__caption { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.door-showcase__name { color: #071323; font-size: 16px; line-height: 20px; font-weight: 500; }
.door-showcase__detail { color: #646c75; font-size: 13px; line-height: 19px; font-weight: 300; }

@media (max-width: 900px) {
  .door-showcase__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .door-showcase__grid, .door-showcase__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .door-showcase { padding-bottom: 56px; }
  .door-showcase__head { gap: 16px; padding-top: 48px; }
  .door-showcase__text { font-size: 16px; line-height: 24px; }
  .door-showcase__grid { gap: 24px 12px; margin-top: 28px; }
  .door-showcase__grid--1 { grid-template-columns: minmax(0, 1fr); }
  .door-showcase__caption { padding-top: 10px; }
  .door-showcase__name { font-size: 15px; line-height: 19px; }
  .door-showcase__detail { font-size: 12px; line-height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .door-showcase__media img { transition: none; }
  .door-showcase__card:hover .door-showcase__media img { transform: none; }
}

/* ---- Ghost inverse (icon button sobre fondo oscuro · Figma 52823:59728) -- */
.btn--ghost-inverse { --_bg: transparent; --_fg: var(--base-white); --_border: transparent; }
.btn--ghost-inverse:hover, .btn--ghost-inverse.is-hover { --_bg: var(--opacity-light-10); }
.btn--ghost-inverse.is-pressed, .btn--ghost-inverse:active { --_bg: var(--opacity-light-20); }
.btn--ghost-inverse.is-focus,
.btn--ghost-inverse:focus-visible { box-shadow: 0 0 0 2px var(--bg-inverse), 0 0 0 4px var(--btn-focus-ring-inverse); }

/* === design-system/text-min-desktop.css === */
/* ============================================================================
   CANTOVI · Tamaño mínimo de texto en desktop = 14px
   Regla de marca (feedback 26-nov-2026): en desktop ningún texto baja de 14px.
   Auditoría a 1440px de todas las páginas: estas clases estaban a 11–13px.
   Vive en main.css (que carga antes que el CSS de página) → `html body` + !important.
   Móvil (≤1024px) no se toca.
   ========================================================================== */
@media (min-width: 1025px) {
  /* Etiquetas, kickers, badges y botones */
  html body .spec-card-title,
  html body .spec-label,
  html body .section-label,
  html body .btn-label,
  html body .card-sub__kicker,
  html body .card-cat__link-text,
  html body .spc-eyebrow,
  html body .spc-eyebrow span,
  html body .spc-sub__kicker,
  html body .spc-animal__badge,
  html body .spc-animal__kicker,
  html body .spc-swatch span,
  html body .spc-swatch strong,
  html body main thead th,
  html body .reg-badge,
  html body .media-unavailable__label,
  html body .blog-post-card__kicker,
  html body .blog-single__kicker,
  html body .blog-post-card__meta,
  html body .blog-post-card__meta span,
  html body .blog-single__tag,
  html body .submit-btn,
  html body .also-text,
  html body .also-email,
  html body .whatsapp-label,
  html body .contact-detail-label,
  html body .size-guide__max-label,
  html body .wide-caption {
    font-size: 14px !important;
  }

  /* Textos de varias líneas: 14/20 */
  html body .spec-value,
  html body .door-showcase__note,
  html body .door-showcase__detail,
  html body .reg-systems__note,
  html body .form-note,
  html body .idea-note,
  html body .size-guide__note,
  html body .armor-detail__text,
  html body figcaption,
  html body .wp-element-caption {
    font-size: 14px !important;
    line-height: 20px !important;
  }
}

/* === Header · estados de navegación desktop (2026-11-29) ===
   Ref. puntmobles.com: línea inferior que entra de izquierda a derecha
   y sale hacia la derecha. Un único bloque para todos los .cantovi-header-nav-item.
   · --nav-strong     color del texto en hover / selected
   · --nav-indicator  color de la línea y del borde de foco
   Transparente (opacity) → blanco · Sólido (solid/light/scrolled/menú) → negro.
   La línea es un ::after absoluto escalado con transform: no mueve el layout. */
@media (min-width: 901px) {
  #header.cantovi-header .cantovi-header-nav-item {
    --nav-strong: var(--header-white);
    --nav-indicator: var(--header-white);
    --nav-indicator-ease: cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: color 0.7s var(--header-ease);
  }

  #header.cantovi-header.cantovi-header--solid .cantovi-header-nav-item,
  #header.cantovi-header.cantovi-header--light .cantovi-header-nav-item,
  #header.cantovi-header.scrolled .cantovi-header-nav-item,
  #header.cantovi-header.products-menu-open .cantovi-header-nav-item {
    --nav-strong: var(--header-dark);
    --nav-indicator: var(--header-dark);
  }

  /* Línea: ancho del contenido (texto + chevron), sin el padding del item. */
  #header.cantovi-header .cantovi-header-nav-item::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 1px;
    background: var(--nav-indicator);
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right center;          /* salida: se recoge hacia la derecha */
    transition:
      transform 0.5s var(--nav-indicator-ease),
      background-color 0.7s var(--header-ease);
  }

  #header.cantovi-header .cantovi-header-nav-item:hover::after,
  #header.cantovi-header .cantovi-header-nav-item[aria-expanded="true"]::after,
  #header.cantovi-header .cantovi-header-nav-item[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left center;           /* entrada: crece desde la izquierda */
  }

  #header.cantovi-header .cantovi-header-nav-item:is(:hover, :focus-visible, [aria-expanded="true"], [aria-current="page"]) {
    color: var(--nav-strong);
    background: transparent;
    text-decoration: none;
  }

  /* Foco por teclado: borde de 1px, sin radio, sin tocar dimensiones. */
  #header.cantovi-header .cantovi-header-nav-item:focus {
    outline: none;
  }

  #header.cantovi-header .cantovi-header-nav-item:focus-visible {
    outline: 1px solid var(--nav-indicator);
    outline-offset: 0;
    box-shadow: none;
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  #header.cantovi-header .cantovi-header-nav-item::after {
    transition: none;
  }
}

/* Teclado: paneles cerrados fuera del orden de tabulación.
   El menú móvil y el mega menú cerrados solo tenían opacity: 0 y sus enlaces
   seguían recibiendo foco. visibility se oculta al terminar el fade de cierre
   y vuelve al instante al abrir, así que las animaciones no cambian. */
#mobile-nav.cantovi-mobile-nav:not(.open) {
  visibility: hidden;
  transition:
    opacity 0.22s var(--header-ease),
    transform 0.22s var(--header-ease),
    visibility 0s linear 0.22s;
}

.cantovi-products:not(.open) .cantovi-products-menu {
  visibility: hidden;
  transition:
    opacity 0.2s var(--header-ease),
    transform 0.2s var(--header-ease),
    visibility 0s linear 0.2s;
}

/* ==========================================================================
   Budget CTA «¿Tienes un proyecto en mente?» — capa compartida (light)
   Feedback 30-nov «Alineación botón bloque contacto»:
   · versión light (fondo claro, texto oscuro)
   · botones con etiqueta + flecha centradas (sin caja de icono)
   · galería flotante visible también en móvil (arco bajo los botones)
   El marcado vive duplicado en templates/*.php y single-producto.php; las
   reglas base en assets/css/pages/*.css. Este bloque va al final de main.css
   con prefijo `body` para ganar especificidad a las hojas de página, que se
   cargan después.
   ========================================================================== */
body .budget-cta {
  --cta-bg: color-mix(in srgb, var(--grey-100, #e6e7e8) 45%, var(--grey-50, #f7f8f8));
  --cta-fg: var(--grey-950, #1b2124);
  --cta-muted: var(--grey-700, #404953);
  background: var(--cta-bg);
  color: var(--cta-fg);
}
body .budget-cta .budget-cta-eyebrow { color: var(--cta-muted); }
body .budget-cta .budget-cta-title,
body .budget-cta .budget-cta-subtitle { color: var(--cta-fg); }
body .budget-cta .budget-cta-text { color: var(--cta-muted); }

/* Botones: etiqueta + flecha centradas como una sola unidad */
body .budget-cta .btn-primary,
body .budget-cta .btn-outline {
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 20px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: .01em;
}
body .budget-cta .btn-primary {
  background: var(--cta-fg);
  color: var(--base-white, #fff);
  border: 1px solid var(--cta-fg);
}
body .budget-cta .btn-primary:hover {
  background: var(--grey-800, #333d48);
  border-color: var(--grey-800, #333d48);
  color: var(--base-white, #fff);
}
body .budget-cta .btn-icon,
body .budget-cta .btn-primary:hover .btn-icon {
  width: 16px;
  height: 16px;
  margin: 0;
  background: transparent;
}
body .budget-cta .btn-icon svg,
body .budget-cta .btn-primary:hover .btn-icon svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}
body .budget-cta .btn-outline {
  background: transparent;
  color: var(--cta-fg);
  border: 1px solid var(--cta-fg);
}
body .budget-cta .btn-outline:hover {
  background: var(--cta-fg);
  border-color: var(--cta-fg);
  color: var(--base-white, #fff);
}
body .budget-cta .btn-primary:focus-visible,
body .budget-cta .btn-outline:focus-visible {
  outline: 2px solid var(--cta-fg);
  outline-offset: 3px;
}

/* Sombras más suaves sobre fondo claro */
body .budget-cta .fg-card {
  box-shadow: 0 10px 28px rgba(27,33,36,.16), 0 2px 8px rgba(27,33,36,.10);
}

/* ---------- Móvil: botones a ancho completo + arco de fotos abajo ---------- */
@media (max-width: 640px) {
  body .budget-cta { padding: 56px 0 0; }
  body .budget-cta .budget-cta-title { font-weight: 300; }
  body .budget-cta .btn-primary,
  body .budget-cta .btn-outline {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  body .budget-cta .float-gallery {
    display: block;
    position: relative;
    inset: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 240px;
    margin-top: 16px;
    transform: none;
    overflow: hidden;
  }
  body .budget-cta .fg-card { width: 92px !important; height: 92px !important; }
  body .budget-cta .fg-card:nth-child(n+6) { display: none; }
  body .budget-cta .fg-card:nth-child(1) { left: 6%  !important; top: 170px !important; --r: 14deg  !important; }
  body .budget-cta .fg-card:nth-child(2) { left: 22% !important; top: 94px  !important; --r: -16deg !important; }
  body .budget-cta .fg-card:nth-child(3) { left: 43% !important; top: 40px  !important; --r: 9deg   !important; }
  body .budget-cta .fg-card:nth-child(4) { left: 65% !important; top: 18px  !important; --r: -7deg  !important; }
  body .budget-cta .fg-card:nth-child(5) { left: 86% !important; top: 22px  !important; --r: 15deg  !important; }
}

@media (prefers-reduced-motion: reduce) {
  body .budget-cta .fg-card { animation: none !important; transform: rotate(var(--r)); }
}

/* === Header · entrada vertical al cambiar de estado (2026-11-30) ===
   Al volver arriba (o pasar a flotante) el header no se desliza desde la
   izquierda: se recoloca sin transición y baja desde arriba (header.js). */
#header.cantovi-header.is-state-swap,
#header.cantovi-header.is-state-swap::before {
  transition: none !important;
}

@keyframes cantovi-header-drop-in {
  from { translate: 0 -100%; opacity: 0; }
  to   { translate: 0 0;     opacity: 1; }
}

#header.cantovi-header.is-dropping-in {
  animation: cantovi-header-drop-in 0.5s var(--header-ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@media (prefers-reduced-motion: reduce) {
  #header.cantovi-header.is-dropping-in { animation: none; }
}

/* ==========================================================================
   Header · menú móvil, panel de categoría con el componente Link (2026-11-30)
   «Volver a productos» y «Ir a …» = .btn.btn--link-neutral; iconos del
   sistema (chevron izq. + arrow-right-24); alineados a la izquierda;
   label subrayado en reposo, sin subrayado + flecha animada en hover.
   ========================================================================== */
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back.btn,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global.btn {
  --btn-icon: 20px;
  --btn-gap: 8px;
  height: auto;
  min-height: 44px;
  max-height: none;
  padding: 8px 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  color: var(--_fg);
  text-align: left;
  white-space: normal;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back.btn {
  display: inline-flex;
  width: auto;
  justify-content: flex-start;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 24px;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global.btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 18px;
  line-height: 24px;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back .btn__label,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global .btn__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back:hover .btn__label,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global:hover .btn__label {
  text-decoration-color: transparent;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back:hover,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global:hover,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back:focus-visible,
#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global:focus-visible {
  text-decoration: none;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-back__icon {
  margin-left: -6px;
}

#mobile-nav.cantovi-mobile-nav .cantovi-mobile-global__icon {
  width: 24px;
  height: 24px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5962 21.8375L10.5347 20.7769L18.0249 13.2877L3.68016 13.2877L3.68016 11.7877L18.0239 11.7877L10.5347 4.29841L11.5962 3.23786L20.896 12.5386L11.5962 21.8375Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5962 21.8375L10.5347 20.7769L18.0249 13.2877L3.68016 13.2877L3.68016 11.7877L18.0239 11.7877L10.5347 4.29841L11.5962 3.23786L20.896 12.5386L11.5962 21.8375Z'/%3E%3C/svg%3E") center / contain no-repeat;
  --link-arrow-shift: 34px;
}
