/* ==========================================================================
   RegalosConMarca — Sistema de diseño
   Paleta sobria corporativa · tema claro comprometido
   ========================================================================== */

/* ---------- Tokens --------------------------------------------------------- */
:root {
  --ink:        #0E1F2E;   /* navy profundo — texto y fondos oscuros        */
  --ink-soft:   #1C3040;
  --slate:      #5B6B78;   /* texto secundario                              */
  --slate-2:    #8A97A1;
  --paper:      #F6F4EF;   /* off-white cálido — fondo general              */
  --paper-2:    #FBFAF6;   /* tarjetas                                      */
  --white:      #FFFFFF;
  --hair:       #E4DFD4;   /* líneas / bordes                               */
  --hair-2:     #EEEAE0;
  --brass:      #A9803F;   /* acento único — CTAs y detalles                */
  --brass-dark: #8A6631;
  --brass-tint: #F1E7D8;
  --success:    #3F6E4E;
  --danger:     #9B3B32;

  --font-serif: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 46, .06), 0 2px 8px rgba(14, 31, 46, .05);
  --shadow-md: 0 8px 24px rgba(14, 31, 46, .10), 0 2px 6px rgba(14, 31, 46, .06);
  --shadow-lg: 0 24px 60px rgba(14, 31, 46, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 116px;
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.12;
  letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }
::selection { background: var(--brass); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

/* ---------- Utilidades -------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-dark); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); max-width: 58ch; }
.muted { color: var(--slate); }
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Botones --------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; border-radius: var(--radius); transition: transform .25s var(--ease),
  background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn--brass { --bg: var(--brass); --bd: var(--brass); --fg: #fff; }
.btn--brass:hover { --bg: var(--brass-dark); --bd: var(--brass-dark); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn--light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.5); }
.btn--light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--sm { padding: .7rem 1.1rem; font-size: .72rem; }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--font-sans); font-weight: 600; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.link-arrow svg { width: 1.05em; height: 1.05em; flex-shrink: 0; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper);
  border-bottom: 1px solid var(--hair); transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(246,244,239,.92);
  backdrop-filter: blur(8px); }
.header-topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: .76rem;
  letter-spacing: .04em; }
.header-topbar .container { display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 1rem; }
.header-topbar a:hover { color: #fff; }
.header-topbar .topbar-links { display: flex; gap: 1.4rem; }
.header-main .container { display: flex; align-items: center; gap: 2rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand svg, .brand img { height: 34px; width: auto; }
.brand strong { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -.01em; }
.brand span { color: var(--brass-dark); }

.primary-nav { margin-left: auto; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.primary-nav > ul > li > a,
.primary-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: .35rem; padding: .7rem .9rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: none; border: 0; color: var(--ink); border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > button:hover,
.primary-nav > ul > li.is-open > button { color: var(--brass-dark); background: var(--hair-2); }
.primary-nav .caret { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.primary-nav li.is-open .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0;
  background: none; border-radius: 50%; position: relative; color: var(--ink);
  transition: background .2s var(--ease); }
.icon-btn:hover { background: var(--hair-2); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brass); color: #fff; font-family: var(--font-sans); font-size: .66rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; line-height: 1; }
.cart-count.is-empty { display: none; }
.cart-count.pulse { animation: pulse .4s var(--ease); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.nav-toggle { display: none; }

/* ---------- Mega menú -------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.primary-nav li.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 2rem;
  padding-block: 2.6rem; }
.mega-col h4 { font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-dark); margin: 0 0 .9rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--hair); }
.mega-col h4 a:hover { color: var(--ink); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mega-col a { font-size: .9rem; color: var(--slate); transition: color .18s var(--ease), padding .18s var(--ease); }
.mega-col a:hover { color: var(--ink); padding-left: 4px; }
.mega-feature { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 1.8rem;
  display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  grid-column: 2 / -1; }
.mega-feature .eyebrow { color: var(--brass); margin: 0; }
.mega-feature h4 { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; margin: .3rem 0 0; border: 0; padding: 0; }
.mega-feature p { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; max-width: 60ch; }
@media (min-width: 1025px) {
  .mega--productos .mega-feature { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .mega--productos .mega-feature > div { min-width: 220px; }
  .mega--productos .mega-feature .link-arrow { margin-left: auto; }
}

.nav-scrim { position: fixed; inset: 0; background: rgba(14,31,46,.4); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s; z-index: 90; }
.nav-scrim.is-active { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 85% 0%, rgba(169,128,63,.22), transparent 55%);
  pointer-events: none; }
.hero-track { display: flex; transition: transform .7s var(--ease); }
.hero-slide { min-width: 100%; }
.hero-slide .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--brass); }
.hero-copy h1 { color: #fff; max-width: 16ch; }
.hero-copy p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.hero-visual svg { width: 100%; height: 100%; }
.hero-dots { display: flex; gap: .5rem; justify-content: center; padding-bottom: 2.2rem; position: relative; z-index: 1; }
.hero-dots button { width: 34px; height: 3px; border: 0; background: rgba(255,255,255,.25); border-radius: 2px;
  transition: background .25s var(--ease); }
.hero-dots button[aria-current="true"] { background: var(--brass); }

/* Barra de confianza bajo el hero */
.trust-strip { background: var(--ink-soft); color: rgba(255,255,255,.7); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between;
  align-items: center; padding-block: 1.1rem; font-size: .82rem; letter-spacing: .03em; }
.trust-strip span { display: inline-flex; align-items: center; gap: .55rem; }
.trust-strip svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; }

/* ==========================================================================
   SECCIÓN: encabezado con acción
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head .lead { margin-top: .5rem; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   CARRUSEL DE PRODUCTOS
   ========================================================================== */
.carousel { position: relative; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -ms-overflow-style: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem); }
@media (min-width: 900px) { .carousel-track { grid-auto-columns: minmax(300px, calc(25% - 1.2rem)); } }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { position: absolute; top: -3.6rem; right: 0; display: flex; gap: .5rem; }
.carousel-nav button { width: 44px; height: 44px; border: 1px solid var(--hair); background: var(--paper-2);
  border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), opacity .2s; }
.carousel-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel-nav button:disabled { opacity: .35; cursor: not-allowed; }
.carousel-nav svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .carousel-nav { display: none; } }

/* ==========================================================================
   TARJETA DE PRODUCTO
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem); }
.product-card { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--hair); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--hair-2); overflow: hidden; }
.product-card__media svg, .product-card__media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease); }
.product-card:hover .product-card__media svg,
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badges { position: absolute; top: .8rem; left: .8rem; display: flex; flex-direction: column;
  gap: .4rem; align-items: flex-start; }
.badge { font-family: var(--font-sans); font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: .35rem .6rem; border-radius: 2px; background: var(--ink); color: #fff; }
.badge--promo { background: var(--brass); }
.badge--new { background: var(--success); }
.product-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.product-card__cat { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-2); }
.product-card__title { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.2; margin: 0; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__desc { font-size: .86rem; color: var(--slate); margin: 0; }
.product-card__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: .8rem; border-top: 1px solid var(--hair-2); }
.price { font-family: var(--font-sans); }
.price small { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-2); }
.price b { font-size: 1.02rem; font-weight: 700; }
.price .price-old { text-decoration: line-through; color: var(--slate-2); font-weight: 400; font-size: .82rem;
  margin-right: .35rem; }
.add-btn { position: relative; z-index: 1; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--white); display: grid; place-items: center; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.add-btn:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.add-btn:active { transform: scale(.92); }
.add-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   FRANJA DE CATEGORÍAS
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.cat-tile { background: var(--paper-2); padding: 2rem 1.6rem; display: flex; flex-direction: column;
  gap: .6rem; min-height: 210px; position: relative; transition: background .25s var(--ease); }
.cat-tile:hover { background: var(--white); }
.cat-tile__icon { width: 40px; height: 40px; color: var(--brass-dark); }
.cat-tile h3 { font-size: 1.15rem; margin: .4rem 0 0; }
.cat-tile p { font-size: .82rem; color: var(--slate); margin: 0; }
.cat-tile .link-arrow { margin-top: auto; font-size: .72rem; }
.cat-tile a.stretched::after { content: ""; position: absolute; inset: 0; }
.cat-tile--cta { background: var(--ink); color: #fff; }
.cat-tile--cta:hover { background: var(--ink-soft); }
.cat-tile--cta h3 { color: #fff; }
.cat-tile--cta p { color: rgba(255,255,255,.7); }
.cat-tile--cta .link-arrow { color: #fff; }

/* ==========================================================================
   BANDA "YA CONFIARON" (marquee)
   ========================================================================== */
.clients { background: var(--white); border-block: 1px solid var(--hair); overflow: hidden; }
.clients .container { padding-block: 2.6rem; }
.clients p { text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate-2); margin: 0 0 1.6rem; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent,
  #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__group { display: flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; flex-shrink: 0;
  animation: scroll-x 32s linear infinite; }
.clients:hover .marquee__group { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-100%); } }
.marquee__logo { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: .02em; color: var(--slate);
  white-space: nowrap; opacity: .8; }

/* ==========================================================================
   BANDA DE NÚMEROS
   ========================================================================== */
.stats { background: var(--ink); color: #fff; }
.stats .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat b { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); display: block; color: #fff; }
.stat span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 720px) { .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-band { background: var(--brass-tint); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.6rem; }

/* ==========================================================================
   PÁGINA INTERNA: encabezado
   ========================================================================== */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .eyebrow { color: var(--brass); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; letter-spacing: .04em;
  color: rgba(255,255,255,.55); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ==========================================================================
   LANDING DE CATEGORÍA
   ========================================================================== */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.filters h4 { font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-dark); margin: 0 0 1rem; }
.filters ul { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .2rem; }
.filters button { width: 100%; text-align: left; background: none; border: 0; padding: .55rem .7rem;
  font-size: .9rem; color: var(--slate); border-radius: var(--radius);
  transition: background .18s var(--ease), color .18s var(--ease); }
.filters button:hover { background: var(--hair-2); color: var(--ink); }
.filters button[aria-current="true"] { background: var(--ink); color: #fff; }
.catalog-main .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.6rem; flex-wrap: wrap; }
.catalog-main .toolbar .count { font-size: .85rem; color: var(--slate); }
.select { padding: .6rem 2.2rem .6rem .9rem; border: 1px solid var(--hair); background: var(--paper-2)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235B6B78' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
  no-repeat right .8rem center; border-radius: var(--radius); font-size: .85rem; color: var(--ink);
  -webkit-appearance: none; appearance: none; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; border: 1px solid var(--hair); border-radius: var(--radius-lg);
    padding: 1.4rem; background: var(--paper-2); }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ==========================================================================
   FICHA DE PRODUCTO
   ========================================================================== */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.product-gallery__main { aspect-ratio: 1; border: 1px solid var(--hair); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--hair-2); }
.product-gallery__main svg, .product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: .7rem; }
.product-gallery__thumbs button { width: 72px; aspect-ratio: 1; border: 1px solid var(--hair);
  border-radius: var(--radius); overflow: hidden; background: var(--hair-2); padding: 0; }
.product-gallery__thumbs button[aria-current="true"] { border-color: var(--brass); }
.product-info h1 { margin-bottom: .4rem; }
.product-info .product-card__cat { margin-bottom: .8rem; display: block; }
.product-price-row { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; flex-wrap: wrap; }
.product-price-row .now { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brass-dark); }
.product-price-row .was { text-decoration: line-through; color: var(--slate-2); }
.product-note { font-size: .8rem; color: var(--slate); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.stepper button { width: 44px; height: 46px; background: none; border: 0; font-size: 1.1rem; color: var(--ink); }
.stepper button:hover { background: var(--hair-2); }
.stepper input { width: 64px; height: 46px; border: 0; border-inline: 1px solid var(--hair); text-align: center;
  font: inherit; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field-inline { display: grid; gap: .35rem; }
.field-inline label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); }
.field-inline select, .field-inline input { padding: .7rem .9rem; border: 1px solid var(--hair);
  border-radius: var(--radius); font: inherit; background: var(--paper-2); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--slate); font-family: var(--font-sans); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1.4rem; }
.chip { font-size: .78rem; padding: .4rem .8rem; border: 1px solid var(--hair); border-radius: 999px;
  background: var(--paper-2); color: var(--slate); }
.accordion { border-top: 1px solid var(--hair); }
.accordion__item { border-bottom: 1px solid var(--hair); }
.accordion__btn { width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; background: none; border: 0; font-family: var(--font-serif); font-size: 1.1rem;
  text-align: left; color: var(--ink); }
.accordion__btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); flex-shrink: 0; }
.accordion__item.is-open .accordion__btn svg { transform: rotate(45deg); }
.accordion__panel { display: none; padding-bottom: 1.2rem; color: var(--slate); font-size: .92rem; }
.accordion__item.is-open .accordion__panel { display: block; }

/* ==========================================================================
   CÓMO COMPRAR
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--paper-2); padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  align-items: start; }
.step__num { counter-increment: step; font-family: var(--font-serif); font-size: 1.6rem; color: var(--brass-dark);
  width: 52px; height: 52px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: .2rem 0 .4rem; }
.step p { margin: 0; color: var(--slate); font-size: .92rem; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.method { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: .8rem; }
.method__icon { width: 44px; height: 44px; color: var(--brass-dark); }
.method h3 { margin: 0; font-size: 1.2rem; }
.method p { margin: 0; font-size: .9rem; color: var(--slate); }
.method .link-arrow { margin-top: auto; font-size: .72rem; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.info-card { border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 1.8rem; background: var(--paper-2); }
.info-card h3 { font-size: 1.15rem; }
.info-card ul { margin: 0; padding-left: 1.1rem; color: var(--slate); font-size: .9rem; }
.info-card li { margin-bottom: .5rem; }
@media (max-width: 860px) { .method-grid { grid-template-columns: 1fr; } .step { grid-template-columns: 1fr; } }

/* ==========================================================================
   COTIZACIÓN / PRESUPUESTO
   ========================================================================== */
.quote-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.quote-list { display: grid; gap: 1rem; }
.quote-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.2rem; padding: 1.2rem;
  border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--paper-2); }
.quote-item__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--hair-2); }
.quote-item h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.quote-item .product-card__cat { display: block; margin-bottom: .8rem; }
.quote-item__controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.quote-item__controls .field-inline label { font-size: .64rem; }
.quote-item__controls .stepper button { width: 36px; height: 40px; }
.quote-item__controls .stepper input { width: 52px; height: 40px; }
.quote-item__remove { background: none; border: 0; color: var(--slate-2); font-size: .78rem;
  display: inline-flex; align-items: center; gap: .3rem; align-self: start; }
.quote-item__remove:hover { color: var(--danger); }
.quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); background: var(--paper-2); padding: 1.8rem; }
.quote-aside h3 { font-size: 1.2rem; }
.quote-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.field input, .field textarea { padding: .8rem .9rem; border: 1px solid var(--hair); border-radius: var(--radius);
  font: inherit; background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.quote-summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .5rem 0;
  border-bottom: 1px dashed var(--hair); }
.quote-summary-row.total { font-weight: 700; font-size: 1rem; border-bottom: 0; padding-top: 1rem; }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--hair); border-radius: var(--radius-lg); }
.empty-state svg { width: 54px; height: 54px; color: var(--slate-2); margin-bottom: 1rem; }
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .quote-item { grid-template-columns: 72px 1fr; }
  .quote-item__remove { grid-column: 2; }
}

/* ==========================================================================
   FORM DE CONTACTO
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info dl { display: grid; gap: 1.4rem; margin: 0; }
.contact-info dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: .2rem; }
.contact-info dd { margin: 0; font-size: 1rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 200;
  display: grid; gap: .6rem; width: min(92vw, 400px); }
.toast { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-lg); font-size: .9rem;
  animation: toast-in .3s var(--ease); }
.toast svg { width: 20px; height: 20px; color: var(--brass); flex-shrink: 0; }
.toast a { color: var(--brass); font-weight: 600; margin-left: auto; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.toast.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-main { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-main .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand span { color: var(--brass); }
.footer-about p { font-size: .88rem; margin-top: 1rem; max-width: 34ch; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; color: #fff; transition: background .2s var(--ease), border-color .2s var(--ease); }
.footer-social a:hover { background: var(--brass); border-color: var(--brass); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin: 0 0 1.2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: .9rem; margin: 0 0 .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem; font-size: .78rem; color: rgba(255,255,255,.5); flex-wrap: wrap; }
@media (max-width: 900px) { .footer-main .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main .container { grid-template-columns: 1fr; } }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   NAV MÓVIL (drawer)
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 96px; }
  .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: var(--white);
    z-index: 110; transform: translateX(100%); transition: transform .34s var(--ease); overflow-y: auto;
    padding: 5rem 1.5rem 2rem; box-shadow: var(--shadow-lg); margin: 0; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--hair); }
  .primary-nav > ul > li > a, .primary-nav > ul > li > button { width: 100%; justify-content: space-between;
    padding: 1rem .4rem; font-size: .9rem; }
  .primary-nav .caret { width: 12px; height: 12px; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); background: var(--paper); }
  .primary-nav li.is-open .mega { max-height: 1400px; }
  .mega .container { grid-template-columns: 1fr; gap: 1.2rem; padding: .5rem .4rem 1.5rem; }
  .mega-feature { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-close { position: absolute; top: 1.4rem; right: 1.4rem; }
}
@media (min-width: 1025px) { .nav-close { display: none; } }

@media (max-width: 1024px) {
  .hero-slide .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact-layout { gap: 2.5rem; }
}
@media (max-width: 640px) {
  .header-topbar .topbar-links { display: none; }
  .stats .grid { gap: 1.5rem; }
}
