/* ==========================================================================
   Festejos Monsalve — Estilos
   Dirección: "Editorial magazine" + "Warm nonprofit". Mobile-first.
   Neutros cálidos y mucho aire; los colores del escudo (azul, fucsia,
   verde, amarillo) se usan SOLO como acentos en CTAs, letras e íconos.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Neutros */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --muted: #F3F1EC;
  --ph: #ECEAE5;
  --line: #E5E1D8;
  --ink: #1D1C1A;
  --ink-2: #57534C;
  --ink-3: #8C877E;

  /* Color primario de marca: champaña (tomado del video del hero).
     --primary      fondo de CTAs y elementos activos (texto encima: --on-primary)
     --primary-hi   hover de CTAs
     --primary-ink  MISMO tono, más profundo: texto, íconos y bordes sobre fondos
                    claros (contraste 5,1:1 sobre --bg; el champaña puro daría ~2:1)
     --primary-tint fondo suave para íconos y estados seleccionados */
  --primary: #D9A95F;
  --primary-hi: #E6BE7E;
  --primary-ink: #8C6420;
  --primary-tint: #F6ECDC;
  --on-primary: #1D1C1A;
  --primary-glow: rgba(217, 169, 95, .32);

  /* Semánticos (sólo para estados, no decorativos) */
  --danger: #B4235F;
  --warning-ink: #8A6400;

  /* Hero: paleta extraída del video (brindis con champaña, luces cálidas) */
  --noche: #090B0C;        /* negro profundo dominante del video (30 %) */
  --champagne-soft: #E3B66F; /* variante clara del primario para fondos muy oscuros */
  --marfil: #F3E9DC;       /* marfil de mantel y luces suaves */

  /* Tipografía */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif; /* encabezados y títulos */
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;     /* texto, botones y enlaces */

  /* Medidas */
  --nav-h: 64px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 28, 26, .04), 0 8px 24px rgba(29, 28, 26, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);   /* salida larga y suave (expo-out) */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* pequeño rebote para íconos */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.eyebrow--light { color: rgba(243, 233, 220, .85); }
/* Etiqueta sobre el video: fondo propio para que su contraste no dependa de la escena */
.hero .eyebrow--light {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(9, 11, 12, .55); box-shadow: inset 0 0 0 1px rgba(243, 233, 220, .16);
  backdrop-filter: blur(6px); color: var(--marfil); margin-bottom: 14px;
  font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; max-width: 100%;
}
@media (min-width: 560px) { .hero .eyebrow--light { font-size: 12px; letter-spacing: .14em; } }


/* ---------- 3. Espacios reservados (imágenes) ---------- */
.ph {
  position: relative;
  display: grid; place-items: center;
  width: 100%;
  background: var(--ph);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(29, 28, 26, .18); border-radius: 8px; pointer-events: none;
}
.ph span {
  position: relative;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.45; letter-spacing: .02em;
  color: var(--ink-3);
  max-width: 28ch;
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--1x1 { aspect-ratio: 1 / 1; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
/* CTA principal (todo el sitio): champaña con texto oscuro, contraste 7:1 */
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hi); }
.btn--primary, .btn--wa { box-shadow: 0 2px 8px rgba(29, 28, 26, .08); }
.btn--primary:hover, .btn--wa:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--primary-glow); }
.btn--primary:active, .btn--wa:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.btn--outline { border-color: var(--line); background: var(--surface); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn--ghost-light { border-color: rgba(243, 233, 220, .55); color: var(--marfil); background: rgba(243, 233, 220, .06); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(243, 233, 220, .14); border-color: var(--marfil); }
/* Champaña: CTA principal sobre el video (texto oscuro, contraste 7:1) */
.hero .btn--primary { box-shadow: 0 4px 18px rgba(9, 11, 12, .3); }
/* Botón de envío por WhatsApp: mismo primario, con el ícono de WhatsApp como señal */
.btn--wa { background: var(--primary); color: var(--on-primary); white-space: normal; text-align: center; }
.btn--wa:hover { background: var(--primary-hi); }
.btn--added { background: var(--primary-tint); color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.btn--added:hover { background: #fff; border-color: var(--danger); color: var(--danger); }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-text {
  display: block; margin: 10px auto 0; padding: 6px 10px;
  border: 0; background: none; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.btn-text:hover { color: var(--danger); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--sm { width: 36px; height: 36px; border-color: transparent; color: var(--ink-3); }
.icon-btn--sm:hover { color: var(--danger); border-color: var(--line); }

.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; line-height: 1;
}
.badge.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--primary-ink); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5. Navbar ----------
   Flota sobre el video (transparente). Al hacer scroll aparece un cristal
   oscuro con desenfoque; pasado el hero, el cristal se vuelve más denso para
   que el texto marfil conserve su contraste sobre las secciones claras. */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  color: var(--marfil);
  background-color: rgba(9, 11, 12, 0);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(0) saturate(1);
  backdrop-filter: blur(0) saturate(1);
  transition:
    background-color .5s var(--ease-soft), border-color .5s var(--ease-soft),
    backdrop-filter .5s var(--ease-soft), -webkit-backdrop-filter .5s var(--ease-soft),
    box-shadow .5s var(--ease-soft);
}
/* Sombra superior suave: legibilidad sobre la parte alta del video sin "barra" visible */
.navbar::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 11, 12, .55), rgba(9, 11, 12, 0));
  transition: opacity .5s var(--ease-soft);
}
.navbar.is-scrolled, .navbar.menu-open {
  background-color: rgba(9, 11, 12, .62);
  border-color: rgba(243, 233, 220, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(9, 11, 12, .18);
}
.navbar.is-scrolled::before, .navbar.menu-open::before { opacity: 0; }
.navbar.is-past-hero { background-color: rgba(9, 11, 12, .84); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.navbar :focus-visible { outline-color: var(--primary); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marfil); }
/* Escudo sin fondo: borde marfil de 1px + sombra para separarlo del video */
.brand__logo {
  width: 30px; height: auto; background: transparent;
  filter: drop-shadow(0 0 .6px rgba(243, 233, 220, .85)) drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
  transition: transform .5s var(--ease-spring);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__name {
  font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(9, 11, 12, .55);
}
.brand__name em { font-style: italic; font-weight: 400; color: var(--champagne-soft); }

/* Menú móvil: panel de cristal oscuro bajo la barra */
.nav {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: rgba(9, 11, 12, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243, 233, 220, .1);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav a {
  padding: 14px 0; border-bottom: 1px solid rgba(243, 233, 220, .1);
  font-family: var(--font-body); font-size: 20px; font-weight: 500; text-decoration: none; color: var(--marfil);
}
.nav a:hover { color: var(--champagne-soft); }
.nav a:last-child { border-bottom: 0; }

.navbar__actions { display: flex; align-items: center; gap: 8px; }
/* Botones de la barra: cristal con borde marfil */
.cart-btn, .menu-btn {
  border: 1px solid rgba(243, 233, 220, .38);
  background: rgba(243, 233, 220, .08);
  color: var(--marfil);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.cart-btn {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
}
.cart-btn svg, .fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover, .menu-btn:hover { border-color: var(--primary); background: rgba(217, 169, 95, .14); }

.menu-btn {
  display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%;
}
.menu-btn span { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh;
  min-height: max(620px, 100svh);
  padding-top: var(--nav-h);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--noche);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Video: tono cinematográfico (algo desaturado y oscuro) + zoom lento */
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) brightness(.9) contrast(1.04);
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease-soft), filter 1.2s var(--ease-soft);
  animation: fm-kenburns 22s ease-in-out infinite alternate;
}
.js .hero__video { opacity: 0; }                     /* aparece al tener imagen */
.js .hero.has-video .hero__video { opacity: 1; }
.hero.no-video .hero__video { display: none; }
@keyframes fm-kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}

/* Overlay inteligente en 2 capas:
   1) velo general que baja el brillo del video (se aclara al pasar el cursor)
   2) sombra dirigida a la zona del texto (abajo-izquierda) + bordes superior/inferior
      para la navbar y la barra de categorías. El centro queda libre para el video. */
.hero__veil {
  position: absolute; inset: 0;
  background: rgba(9, 11, 12, .34);
  transition: opacity 1.1s var(--ease-soft);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 95% at 0% 100%, rgba(9, 11, 12, .88) 0%, rgba(9, 11, 12, .62) 40%, rgba(9, 11, 12, 0) 75%),
    linear-gradient(180deg, rgba(9, 11, 12, .55) 0%, rgba(9, 11, 12, .1) 18%, rgba(9, 11, 12, .55) 38%, rgba(9, 11, 12, .66) 60%, rgba(9, 11, 12, .72) 80%, rgba(9, 11, 12, .88) 100%);
}
/* Escritorio: el texto va a la izquierda → sombra lateral; la derecha deja ver el video */
@media (min-width: 768px) {
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(9, 11, 12, .82) 0%, rgba(9, 11, 12, .62) 40%, rgba(9, 11, 12, .15) 62%, rgba(9, 11, 12, 0) 76%),
      linear-gradient(180deg, rgba(9, 11, 12, .5) 0%, rgba(9, 11, 12, 0) 18%, rgba(9, 11, 12, 0) 60%, rgba(9, 11, 12, .7) 100%);
  }
}
/* Escritorio: al pasar el cursor el video "se enciende" (el texto sigue protegido por la capa 2) */
.hero.is-hover .hero__veil { opacity: .35; }
.hero.is-hover .hero__video { filter: saturate(1.06) brightness(1) contrast(1.04); }

.hero :focus-visible, .footer :focus-visible { outline-color: var(--primary); }

.hero__content { padding-top: 48px; padding-bottom: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 12.5vw, 112px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__title { text-shadow: 0 2px 30px rgba(9, 11, 12, .45); }
.hero__title em { font-style: italic; }
.hero__ellipsis { color: var(--champagne-soft); }
.hero__lead { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--marfil); text-shadow: 0 1px 16px rgba(9, 11, 12, .5); }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.hero__shortcuts { border-top: 1px solid rgba(243, 233, 220, .14); background: rgba(9, 11, 12, .5); backdrop-filter: blur(10px); }
.hero__shortcuts-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.shortcut {
  display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 4px;
  text-decoration: none; color: var(--marfil); font-weight: 600; font-size: 17px;
  border-bottom: 1px solid rgba(243, 233, 220, .12);
}
.shortcut:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); padding-right: 12px; }
.shortcut:nth-child(even) { padding-left: 14px; }
.shortcut:nth-last-child(-n+2) { border-bottom: 0; }
.shortcut__icon {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  border-radius: 50%; color: #fff;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-soft), background-color .35s var(--ease), color .35s var(--ease);
}
.shortcut__icon .ico { width: 27px; height: 27px; transition: transform .5s var(--ease-spring); }
.shortcut__icon { background: rgba(243, 233, 220, .08); box-shadow: inset 0 0 0 1px rgba(217, 169, 95, .4); color: var(--champagne-soft); }
.shortcut:hover .shortcut__icon, .shortcut:focus-visible .shortcut__icon { background: var(--primary); box-shadow: inset 0 0 0 1px var(--primary), 0 6px 16px rgba(0, 0, 0, .35); color: var(--on-primary); }
.shortcut:hover .shortcut__icon, .shortcut:focus-visible .shortcut__icon { transform: translateY(-2px) scale(1.08); }
.shortcut:hover .shortcut__icon .ico { transform: rotate(-8deg); }
.shortcut__name { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-soft); padding-bottom: 2px; }
.shortcut:hover .shortcut__name { background-size: 100% 1px; }

/* Ícono de categoría (tarjetas y encabezados del catálogo) */
.cat-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  color: var(--primary-ink);
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px rgba(217, 169, 95, .4);
  transition: transform .5s var(--ease-spring), background-color .35s var(--ease), color .35s var(--ease);
}
.cat-icon .ico { width: 24px; height: 24px; }
.cat-icon--lg { width: 56px; height: 56px; border-radius: 18px; }
.cat-icon--lg .ico { width: 30px; height: 30px; }

/* ---------- 7. Secciones ---------- */
.section { padding: 64px 0; }
.section--tight { padding-bottom: 32px; }
.section--muted { background: var(--muted); }
.section__head { margin-bottom: 28px; }
.section__head--row { display: flex; flex-direction: column; gap: 18px; }
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 8vw, 56px); letter-spacing: -.02em; line-height: 1.04;
  text-wrap: balance;
}
.section__title em { font-style: italic; }

/* Tarjetas de categoría */
.cat-cards { display: grid; gap: 28px; }
.cat-card { display: block; text-decoration: none; }
.cat-card .ph { transition: transform .4s var(--ease); }
.cat-card:hover .ph { transform: scale(.985); }
/* Foto de categoría: mismo marco que el espacio reservado (4:3 móvil, 3:4 escritorio) */
.cat-card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--ph); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { padding-top: 14px; }
.cat-card .cat-icon { margin-bottom: 12px; }
.cat-card:hover .cat-icon { transform: translateY(-3px) rotate(-6deg); background: var(--primary); color: var(--on-primary); }
.cat-card__more span { display: inline-block; transition: transform .4s var(--ease-soft); }
.cat-card:hover .cat-card__more span { transform: translateX(5px); }
.cat-card__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 2px; letter-spacing: -.01em; }
.cat-card__text { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.cat-card__more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--primary-ink); }

/* ---------- 8. Catálogo ---------- */
.catalog { padding-top: 48px; }
.search {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }

.filters {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: rgba(251, 250, 247, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 8px;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chips--sub { margin-top: 8px; }
.chip {
  flex: none; min-height: 40px; padding: 8px 16px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--sub .chip { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.chips--sub .chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.cat-block { padding-top: 40px; }
.cat-block + .cat-block { margin-top: 24px; border-top: 1px solid var(--line); }
.cat-block__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.cat-block__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 6.5vw, 36px); letter-spacing: -.015em; }
.cat-block__intro { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }

.notice {
  margin-bottom: 22px; padding: 14px 16px;
  background: #FFF8E4; border: 1px solid #F2DFA6; border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); font-size: 14px; color: #5B4A1A;
}

.subhead {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.subhead:first-of-type { margin-top: 0; }

.grid { display: grid; gap: 16px; }
.card--cantidad, .card--peso { /* tarjetas compactas en móvil */ }

/* Tarjeta de producto */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: #DAD5CA; }
.card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--ph); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Fotos de producto sobre fondo blanco (ej. sillas con lazo): se muestran completas */
/* Mismo marco para todas las tarjetas de producto (foto vertical u horizontal):
   así el texto de las tarjetas de una misma fila queda alineado.
   La foto se muestra completa y centrada dentro del marco. */
.card__media--photo, .card__ph { aspect-ratio: 4 / 5; }
.card__media--photo { display: grid; place-items: center; background: #fff; }
.card__media--photo img { object-fit: contain; object-position: center; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 6px 6px; }
.card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.card__desc { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.card__controls { padding-top: 16px; } /* sin empuje al fondo: sin huecos entre texto y colores */
.card__actions { display: flex; gap: 10px; align-items: center; }
.card__actions .btn--primary:not(.btn--block) { flex: 1; }
.card__incart { margin-top: 10px; font-size: 13px; color: var(--primary-ink); font-weight: 600; }

.card__meta { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.card__meta li { display: flex; gap: 8px; }
.card__meta span { flex: none; min-width: 64px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.tag {
  padding: 4px 10px; border-radius: 999px;
  background: var(--muted); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}

.includes { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.includes__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.includes ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; font-size: 14px; }
.includes li::before { content: "·"; margin-right: 6px; color: var(--primary-ink); font-weight: 700; }

/* Swatches de color */
.swatches, .options { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.swatches__legend, .options__legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.swatches__legend strong { color: var(--ink); }
.swatches__list { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 2px solid transparent; border-radius: 50%; background: transparent;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.swatch span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--ink); }
/* Lunares blancos SÓLIDOS (sin degradados) para manteles con puntos */
.has-dots { position: relative; overflow: hidden; }
.has-dots::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 3px; height: 3px; border-radius: 50%;
  background: #fff;
  box-shadow: 8px 0 #fff, 16px 0 #fff, 4px 6px #fff, 12px 6px #fff, 0 12px #fff, 8px 12px #fff, 16px 12px #fff, 4px 18px #fff, 12px 18px #fff;
}
.cart-item__swatch.has-dots::after { top: 2px; left: 2px; width: 2px; height: 2px; box-shadow: 5px 0 #fff, 2px 5px #fff, 7px 5px #fff; }
.is-invalid { animation: shake .35s; }
.swatches.is-invalid .swatches__legend, .options.is-invalid .options__legend { color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Opciones (Sonido) */
.options__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.option {
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-weight: 600; font-size: 14px;
}
.option:hover { border-color: var(--primary); }
.option.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Selector de cantidad */
.stepper {
  display: inline-flex; align-items: center; flex: none;
  height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.stepper__btn {
  width: 40px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-2);
  border-radius: 999px;
}
.stepper__btn:hover { color: var(--ink); background: var(--muted); }
.stepper__input {
  width: 44px; border: 0; background: transparent; text-align: right; font-weight: 600; font-size: 16px;
  -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__unit { font-size: 12px; color: var(--ink-3); padding-left: 3px; }
.stepper--sm { height: 36px; }
.stepper--sm .stepper__btn { width: 32px; font-size: 18px; }
.stepper--sm .stepper__input { width: 36px; font-size: 15px; }

.empty-search { padding: 48px 0; text-align: center; color: var(--ink-2); }

/* ---------- 9. Cómo funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.step { padding-top: 18px; border-top: 1px solid #D9D4C9; }
.step__num { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--primary-ink); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin-top: 6px; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 36ch; }
.steps__note { margin-top: 32px; font-size: 14px; color: var(--ink-3); }

/* ---------- 10. Portafolio ---------- */
.portfolio { display: grid; gap: 16px; }
.portfolio__item { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--ph); }
.portfolio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.portfolio__item:hover img { transform: scale(1.04); }

/* ---------- 11. Footer ---------- */
.footer { background: #1D1C1A; color: #D8D4CC; padding: 56px 0 24px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 36px; }
.footer__brand img { width: 44px; height: auto; filter: drop-shadow(0 0 .6px rgba(243, 233, 220, .7)); }
.footer__name { margin-top: 14px; font-family: var(--font-display); font-size: 26px; color: #fff; }
.footer__slogan { font-family: var(--font-display); font-style: italic; color: #A9A499; }
.footer__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8C877E; margin-bottom: 12px; }
.footer__person { font-family: var(--font-display); font-size: 22px; color: #fff; margin-bottom: 8px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__list a, .footer__list li > span { display: inline-flex; align-items: center; gap: 10px; }
.footer__list svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #36332F;
  font-size: 13px; color: #8C877E;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__legal a { color: #B5B0A6; text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Nota legal del cotizador */
.drawer__legal { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.drawer__legal a { color: var(--ink-2); text-underline-offset: 2px; }
.drawer__legal a:hover { color: var(--primary-ink); }

/* ==========================================================================
   Páginas legales (terminos.html · privacidad.html)
   ========================================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px;
  border: 1px solid rgba(243, 233, 220, .38); border-radius: 999px; background: rgba(243, 233, 220, .08); color: var(--marfil);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: border-color .2s var(--ease), transform .4s var(--ease-soft);
}
.back-link:hover { border-color: var(--primary); transform: translateX(-2px); }
.back-link, .brand__name { white-space: nowrap; }
.back-link__short { display: none; }
@media (max-width: 479px) {
  .back-link__long { display: none; }
  .back-link__short { display: inline; }
}

.legal { padding: calc(var(--nav-h) + 48px) 0 80px; }
.legal__inner { max-width: 760px; }
.legal__head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 9vw, 60px); line-height: 1.02; letter-spacing: -.02em;
}
.legal__title em { font-style: italic; }
.legal__meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.legal__intro { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 62ch; }

.legal__toc {
  margin: 28px 0 8px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal__toc p { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }

.legal__section { padding-top: 36px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal__section h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 5.5vw, 28px); letter-spacing: -.01em;
}
.legal__num { font-style: italic; font-weight: 400; color: var(--primary-ink); font-size: .8em; }
.legal__section p, .legal__section li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal__section p { margin-top: 12px; }
.legal__section ol, .legal__section ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__section strong { color: var(--ink); }
.legal__section a { color: var(--primary-ink); text-underline-offset: 3px; }

.legal__callout {
  margin-top: 16px; padding: 14px 16px;
  background: #FFF8E4; border: 1px solid #F2DFA6; border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); font-size: 15px; color: #5B4A1A;
}
.legal__callout p { margin: 0; color: inherit; }

.legal__contact {
  margin-top: 48px; padding: 22px; display: grid; gap: 14px;
  background: var(--muted); border-radius: var(--radius);
}
.legal__contact h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.legal__contact p { color: var(--ink-2); }


/* ---------- 12. Botón flotante (móvil) ---------- */
.fab {
  position: fixed; z-index: 35;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 20px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; translate: 0 16px;
  transition: opacity .25s var(--ease), translate .25s var(--ease);
}
.fab.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }

/* ---------- 13. Drawer del carrito ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(20, 19, 17, .45);
  opacity: 0; transition: opacity .28s var(--ease);
}
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: 92svh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
  outline: none;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 20px var(--gutter) 14px; border-bottom: 1px solid var(--line);
}
.drawer__head .eyebrow { margin-bottom: 4px; }
.drawer__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 24px; overscroll-behavior: contain; }
.drawer__foot {
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.drawer__summary { font-size: 13px; color: var(--ink-3); text-align: center; margin-bottom: 10px; }

.cart-group { padding-top: 16px; }
.cart-group__title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--primary); }
.cart-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; }
.cart-item__sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cart-item__swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }

.cart-empty { padding: 48px 8px; text-align: center; color: var(--ink-2); }
.cart-empty__title { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.cart-empty .btn { margin-top: 20px; }

/* Formulario */
.quote-form { margin-top: 28px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quote-form__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  font-size: 16px; /* evita zoom en iOS */
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary-ink); box-shadow: 0 0 0 3px var(--primary-glow); }
.field input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 95, .12); }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__hint.is-warning { color: var(--warning-ink); font-weight: 600; }
.field-row { display: grid; gap: 0 12px; }
.req { color: var(--primary-ink); }
.form-error {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: #FBEAF0; color: #8E1A4A; font-size: 14px; font-weight: 600;
}

/* ---------- 14. Toast ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; text-align: center;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1.4fr 1fr; }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .options__list { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --nav-h: 72px; }
  .section { padding: 96px 0; }
  .section--tight { padding-bottom: 48px; }
  .section__head { margin-bottom: 40px; }
  .section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .search { width: 340px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer { padding-bottom: 32px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .hero__shortcuts-inner { grid-template-columns: repeat(4, 1fr); }
  .shortcut, .shortcut:nth-child(odd), .shortcut:nth-child(even) {
    border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .12); padding: 18px 16px;
  }
  .shortcut:first-child { padding-left: 0; }
  .shortcut:last-child { border-right: 0; }
  .hero__content { padding-bottom: 56px; }
  .cat-icon--lg { width: 68px; height: 68px; border-radius: 22px; }
  .cat-icon--lg .ico { width: 34px; height: 34px; }
  .card { padding: 12px; }

  /* El carrito pasa a panel lateral */
  .fab { display: none; }
  .cart-btn { display: inline-flex; }
  .toast { bottom: 24px; }
  .drawer__panel {
    left: auto; top: 0; width: 460px; max-height: none;
    border-radius: 0; transform: translateX(100%);
  }
}

@media (min-width: 960px) {
  .nav {
    position: static; flex-direction: row; gap: 28px;
    padding: 0; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav a { padding: 0; border: 0; font-family: var(--font-body); font-size: 17px; font-weight: 500; color: rgba(243, 233, 220, .86); text-shadow: 0 1px 10px rgba(9, 11, 12, .5); }
  .nav a:hover { color: var(--marfil); }
  .nav a { position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
    background: var(--primary); border-radius: 2px;
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-soft);
  }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .menu-btn { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cat-cards { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .cat-cards .ph, .cat-card__media { aspect-ratio: 3 / 4; }
  .portfolio { gap: 24px; }
}

@media (min-width: 1200px) {
  .grid--wide { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Animación e interactividad (js/efectos.js)
   El contenido sólo se oculta para animarlo cuando <html> tiene .js (que se
   quita solo si los efectos no arrancan). Sin JS, todo se ve normal.
   ========================================================================== */

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 45; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary-ink), var(--primary) 55%, var(--primary-hi));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* Eslogan: palabras que suben en cascada */
.js .hero__title.is-split .split-word {
  display: inline-block;
  animation: fm-word-up 1s var(--ease-soft) both;
  animation-delay: calc(120ms + var(--w, 0) * 90ms);
}
@keyframes fm-word-up {
  from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* Resto del hero: aparece después del eslogan (CSS puro, no depende de JS) */
.hero__content > .eyebrow, .hero__lead, .hero__ctas, .hero__shortcuts {
  animation: fm-fade-up .9s var(--ease-soft) both;
}
.hero__content > .eyebrow { animation-delay: .05s; }
.hero__lead      { animation-delay: .45s; }
.hero__ctas      { animation-delay: .6s; }
.hero__shortcuts { animation-delay: .75s; }
@keyframes fm-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll, escalonado con --i */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .9s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js.no-reveal [data-reveal] { opacity: 1; transform: none; }
/* Una vez visible, la tarjeta recupera su hover sin retraso */
.js .card[data-reveal].is-revealed {
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), opacity .8s var(--ease-soft), transform .9s var(--ease-soft);
}
.js .card[data-reveal].is-revealed:hover { transition-delay: 0s; }

/* Foto del lazo: fundido al cambiar de color */
.card__media--photo img { transition: opacity .3s var(--ease), transform .5s var(--ease-soft); }
.card__media--photo img.is-swapping { opacity: .35; transform: scale(.985); }

/* Movimiento reducido: se suaviza sólo lo intrusivo (desplazamientos y desenfoque);
   cambios de color, fundidos y micro-interacciones se mantienen. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title.is-split .split-word { animation-name: fm-fade; animation-duration: .6s; }
  .hero__content > .eyebrow, .hero__lead, .hero__ctas, .hero__shortcuts { animation-name: fm-fade; }
  .js [data-reveal] { transform: none; }
  .hero__video { animation: none; transform: scale(1.02); }
  .badge.is-bump, .is-invalid { animation: none; }
}
@keyframes fm-fade { from { opacity: 0; } to { opacity: 1; } }

/* Selector de piezas (ej. Cubiertos): dos columnas para que los nombres largos no se partan */
.swatches--piezas .options__list { grid-template-columns: repeat(2, 1fr); }

/* Teléfonos estrechos (<400 px): accesos del hero algo más compactos para que quepan */
@media (max-width: 399px) {
  .shortcut { gap: 10px; font-size: 16px; }
  .shortcut__icon { width: 44px; height: 44px; }
  .shortcut__icon .ico { width: 24px; height: 24px; }
  .shortcut:nth-child(even) { padding-left: 12px; }
}

/* Crédito "Desarrollado por KEHO" */
.footer__credit { color: #B5B0A6; text-decoration: none; transition: color .2s var(--ease); }
.footer__credit:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
