/* ==========================================================================
   BORVEN · Tokens
   Tema claro en :root. El tema oscuro redefine solo los tokens, y se activa
   con el sistema (prefers-color-scheme) o con el switch del header (data-theme).
   ========================================================================== */
:root{
  color-scheme: light;
  --brand:#674e39;        /* marrón del logo */
  --brand-deep:#4d3828;
  --ink:#231b16;          /* fondo header / hero / footer */
  --ink-2:#2f251e;
  --paper:#fcfaf7;        /* fondo de página */
  --linen:#efe9e1;        /* superficie de fichas */
  --linen-2:#e6ddd1;
  --card:#ffffff;         /* fondo de tarjetas e inputs */
  --oak:#b8956d;
  --oak-light:#d6bb98;
  --text:#2a2320;
  --muted:#7b6e65;
  --line:#e1d8cd;
  --line-dark:rgba(255,255,255,.14);
  --cream:#f3ece2;        /* texto sobre fondos oscuros */
  --wa:#25d366;

  --font-display:"Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body:"Jost", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter:clamp(16px, 4vw, 48px);
  --container:1200px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
/* Tema oscuro por preferencia del sistema (salvo elección explícita de claro) */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --brand:#c9a57f;
    --brand-deep:#e0c4a4;
    --ink:#110d0b;
    --ink-2:#1a1411;
    --paper:#1a1512;
    --linen:#241d18;
    --linen-2:#2c241e;
    --card:#241d18;
    --text:#efe7dc;
    --muted:#a89a8c;
    --line:#3a2f27;
  }
}
/* Tema oscuro elegido con el switch */
:root[data-theme="dark"]{
  color-scheme: dark;
  --brand:#c9a57f;
  --brand-deep:#e0c4a4;
  --ink:#110d0b;
  --ink-2:#1a1411;
  --paper:#1a1512;
  --linen:#241d18;
  --linen-2:#2c241e;
  --card:#241d18;
  --text:#efe7dc;
  --muted:#a89a8c;
  --line:#3a2f27;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:var(--font-body);
  font-weight:300;
  font-size:1rem;
  line-height:1.7;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
:focus-visible{ outline:2px solid var(--oak); outline-offset:3px; }
.wrap{ width:min(100% - 2*var(--gutter), var(--container)); margin-inline:auto; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Tipografía */
h1,h2,h3{ font-family:var(--font-display); font-weight:400; margin:0; text-wrap:balance; line-height:1.15; }
.eyebrow{
  font-family:var(--font-body); font-weight:400; font-size:.72rem; letter-spacing:.24em;
  text-transform:uppercase; color:var(--muted); margin:0 0 .9rem;
}
.title{ font-size:clamp(1.7rem, 3.2vw, 2.5rem); color:var(--text); }
.title-tracked{
  font-size:clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing:.28em; text-transform:uppercase; text-align:center;
}
.lead{ max-width:62ch; color:var(--muted); margin:1.2rem 0 0; }
p{ margin:0; }

/* Botones con borde, como la referencia */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  padding:.95rem 2.1rem; border:1px solid currentColor;
  font-family:var(--font-body); font-weight:400; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-dark{ color:var(--text); }
.btn-dark:hover{ background:var(--text); color:var(--paper); }
.btn-light{ color:var(--cream); }
.btn-light:hover{ background:var(--cream); color:var(--ink); }
.btn-brand{ color:var(--brand); }
.btn-brand:hover{ background:var(--brand); color:var(--cream); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar{
  background:var(--ink); color:var(--cream); border-bottom:1px solid var(--line-dark);
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; font-weight:400;
}
.topbar .wrap{ display:flex; gap:1.5rem; justify-content:center; align-items:center; min-height:34px; text-align:center; }
.topbar span{ opacity:.85; }
.topbar .dot{ opacity:.4; }

.header{
  position:sticky; top:0; z-index:50;
  background:var(--ink); color:var(--cream);
}
.header .wrap{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  min-height:76px; gap:1rem;
}
.logo{ width:clamp(150px, 16vw, 200px); height:auto; color:var(--cream); }
.logo-link{ display:block; justify-self:center; }
.nav{ display:flex; align-items:center; gap:clamp(1rem, 3vw, 2.6rem); font-size:.8rem; letter-spacing:.06em; font-weight:400; }
.nav-left{ justify-self:start; }
.nav-right{ justify-self:end; }
.nav a{ position:relative; padding:.4rem 0; opacity:.92; }
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--oak-light);
  transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease);
}
.nav a:hover::after{ transform:scaleX(1); }
.burger{ display:none; width:44px; height:44px; align-items:center; justify-content:center; }
.burger span{ display:block; width:22px; height:1.5px; background:var(--cream); position:relative; }
.burger span::before,.burger span::after{
  content:""; position:absolute; left:0; width:22px; height:1.5px; background:var(--cream);
}
.burger span::before{ top:-7px; } .burger span::after{ top:7px; }

/* Switch de tema claro / oscuro */
.theme-toggle{
  width:40px; height:40px; display:grid; place-items:center; border-radius:50%; color:var(--cream); opacity:.85;
  transition:opacity .2s, background .2s;
}
.theme-toggle:hover{ opacity:1; background:rgba(255,255,255,.08); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .ic-sun{ display:none; }
.theme-toggle-m{ display:none; }
:root[data-theme="dark"] .theme-toggle .ic-moon{ display:none; }
:root[data-theme="dark"] .theme-toggle .ic-sun{ display:block; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-toggle .ic-moon{ display:none; }
  :root:not([data-theme="light"]) .theme-toggle .ic-sun{ display:block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative; isolation:isolate; overflow:hidden;
  background:#1b1411;
  color:var(--cream);
  min-height:clamp(520px, 74vh, 760px);
  display:grid; place-items:center;
  text-align:center;
}
/* Fotos de fondo: una por portada, con velo oscuro para que el texto se lea */
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.hero-bg img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 55%;
  opacity:0; transition:opacity 1.1s var(--ease);
}
.hero-bg img.is-active{ opacity:1; }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(18,13,10,.58) 0%, rgba(18,13,10,.38) 45%, rgba(18,13,10,.74) 100%);
}
.hero-slides{ position:relative; width:min(100% - 2*var(--gutter), 1000px); padding-block:6rem 7rem; }
.slide{
  display:none; flex-direction:column; align-items:center; gap:1.4rem;
  animation:fade .9s var(--ease) both;
}
.slide.is-active{ display:flex; }
.slide .eyebrow{ color:var(--oak-light); margin:0; }
.slide h1{
  font-size:clamp(1.9rem, 6.2vw, 4.4rem); letter-spacing:.2em; text-transform:uppercase; line-height:1.1;
  padding-left:.2em; /* compensa el tracking para centrar visualmente */
}
.slide .btn{ margin-top:.8rem; }
@keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }

.hero-meta{
  position:absolute; left:0; right:0; bottom:1.4rem;
  width:min(100% - 2*var(--gutter), var(--container)); margin-inline:auto;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:1rem;
  font-size:.7rem; letter-spacing:.06em; opacity:.8;
}
.hero-meta .copy{ justify-self:start; text-align:left; line-height:1.5; }
.dots{ display:flex; gap:.7rem; justify-self:center; }
.dots button{
  width:12px; height:12px; border-radius:50%; border:1px solid var(--cream); padding:0; opacity:.6;
  display:grid; place-items:center;
}
.dots button.is-active{ opacity:1; }
.dots button.is-active::after{ content:""; width:4px; height:4px; border-radius:50%; background:var(--cream); }
.socials{ display:flex; gap:1rem; justify-self:end; }
.socials svg{ width:16px; height:16px; }
.scroll-cue{
  position:absolute; right:calc(var(--gutter) + .2rem); top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  font-size:.62rem; letter-spacing:.3em; text-transform:uppercase; opacity:.7;
}
.scroll-cue span{ writing-mode:vertical-rl; }
.scroll-cue i{ display:block; width:1px; height:44px; background:var(--cream); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section{ padding-block:clamp(4rem, 8vw, 7rem); }
.section-tight{ padding-block:clamp(3rem, 6vw, 5rem); }
.section + .section{ padding-top:0; }
.center{ text-align:center; }
.title-tracked.left{ text-align:left; }

/* Nosotros: ilustración + texto */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem, 6vw, 6rem); align-items:center; }
.figure{ background:var(--linen); aspect-ratio:4/3; overflow:hidden; max-width:100%; }
.figure img{ width:100%; height:100%; object-fit:cover; }
.about .btn{ margin-top:2rem; }

/* Puertas de entrada: casa / local */
.doors{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:1rem; margin-top:2.2rem; }
.door{
  display:grid; grid-template-columns:72px 1fr; gap:1rem; align-items:center;
  padding:1rem 1.1rem; border:1px solid var(--line); background:var(--card);
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.door:hover{ border-color:var(--oak); transform:translateY(-2px); }
.door img{ width:72px; height:72px; object-fit:cover; }
.door strong{ display:block; font-family:var(--font-display); font-weight:400; font-size:1rem; letter-spacing:.1em; text-transform:uppercase; }
.door small{ display:block; color:var(--muted); font-size:.8rem; line-height:1.5; margin-top:.15rem; }

/* Locales comerciales */
.section.locales{ background:var(--linen); padding-top:clamp(4rem, 8vw, 7rem); }
.locales-head{ max-width:62ch; }
.section.medida{ padding-top:clamp(4rem, 8vw, 7rem); }

/* Galerías de fotos (locales, cocinas, vestidores) */
.gallery{ display:grid; grid-template-columns:repeat(4, 1fr); gap:1rem; margin-top:1.6rem; }
.gallery-3{ grid-template-columns:repeat(3, 1fr); }
.gallery figure{ margin:0; }
.gallery .ph{ aspect-ratio:4/5; overflow:hidden; background:var(--linen); max-width:100%; }
.gallery-wide .ph{ aspect-ratio:4/3; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.gallery figure:hover img{ transform:scale(1.03); }
.gallery figcaption{ font-size:.8rem; color:var(--muted); margin-top:.6rem; line-height:1.5; }
.subhead{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem 2rem; margin-top:3rem; }
.subhead h3{ font-size:1rem; letter-spacing:.22em; text-transform:uppercase; }
.subhead p{ color:var(--muted); font-size:.9rem; max-width:56ch; }
.pills{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.8rem; }
.pill{
  padding:.45rem 1rem; border:1px solid var(--line); border-radius:999px; background:var(--card);
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:400;
}
.steps{ display:grid; grid-template-columns:repeat(4, 1fr); gap:1.5rem 2rem; margin-top:3rem; padding:0; list-style:none; counter-reset:step; }
.steps li{ counter-increment:step; border-top:1px solid var(--brand); padding-top:1rem; }
.steps li::before{ content:counter(step, decimal-leading-zero); display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--brand); margin-bottom:.3rem; }
.steps h3{ font-family:var(--font-body); font-weight:500; font-size:.95rem; }
.steps p{ color:var(--muted); font-size:.88rem; line-height:1.55; margin-top:.3rem; }
.locales-cta{ margin-top:2.8rem; display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:center; }
.locales-cta p{ color:var(--muted); font-size:.9rem; max-width:48ch; }

/* Taller: banda con veta de madera */
.wood{
  position:relative; aspect-ratio:16/6; max-width:100%; min-height:220px; overflow:hidden;
  background:
    repeating-linear-gradient(94deg, rgba(0,0,0,.07) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, #8a6b50 0%, #67503b 55%, #55402f 100%);
}
.wood::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 120% at 20% 50%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(40% 80% at 80% 40%, rgba(0,0,0,.18), transparent 60%);
}
.wood .caption{
  position:absolute; left:clamp(1rem, 4vw, 3rem); bottom:clamp(1rem, 3vw, 2rem); z-index:1;
  color:var(--cream); font-size:.68rem; letter-spacing:.24em; text-transform:uppercase; opacity:.9;
}
.taller-text{ max-width:62ch; margin-top:clamp(2rem, 5vw, 3.5rem); }
.taller-text .btn{ margin-top:2rem; }

/* Colecciones: pestañas como la referencia */
.tabs{ display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem clamp(1.2rem, 3vw, 2.6rem); margin-top:2.4rem; }
.tab{
  padding:.5rem .1rem; font-family:var(--font-display); font-size:1.25rem; color:var(--muted);
  border-bottom:1px solid transparent; transition:color .25s, border-color .25s;
}
.tab:hover{ color:var(--text); }
.tab[aria-selected="true"]{ color:var(--text); border-color:var(--brand); }
.panel{ display:none; text-align:center; max-width:60ch; margin:2.2rem auto 0; color:var(--muted); }
.panel.is-active{ display:block; animation:fade .5s var(--ease) both; }
.swatches{ display:flex; justify-content:center; gap:.8rem; margin-top:1.4rem; }
.swatch{ width:34px; height:34px; border-radius:50%; border:1px solid rgba(0,0,0,.08); box-shadow:inset 0 0 0 3px var(--paper); }
.panel .materials{ margin-top:.6rem; font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; }

/* Categorías: grilla 3 × 2 */
.cats{ display:grid; grid-template-columns:repeat(3, 1fr); gap:2.6rem 2rem; margin-top:3rem; }
.cat{ text-align:center; }
.cat .art{
  aspect-ratio:1; overflow:hidden; background:var(--linen); border:1px solid var(--line);
  transition:transform .4s var(--ease), border-color .4s var(--ease);
}
.cat img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.cat:hover .art{ transform:translateY(-4px); border-color:var(--oak); }
.cat:hover img{ transform:scale(1.04); }
.cat h3{ font-size:.92rem; letter-spacing:.22em; text-transform:uppercase; margin-top:1.2rem; }
.cat small{ display:block; color:var(--muted); font-size:.82rem; margin-top:.2rem; }

/* Destacados: fichas de producto */
.section-head{ display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:1rem 2rem; }
.chips{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{
  padding:.45rem 1rem; border:1px solid var(--line); border-radius:999px;
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:400;
  transition:background .2s, color .2s, border-color .2s;
}
.chip:hover{ border-color:var(--oak); color:var(--text); }
.chip[aria-pressed="true"]{ background:var(--text); color:var(--paper); border-color:var(--text); }
.products{ display:grid; grid-template-columns:repeat(4, 1fr); gap:2.2rem 1.5rem; margin-top:2.6rem; }
.product{ display:flex; flex-direction:column; }
.product.is-hidden{ display:none; }
.product .art{ position:relative; overflow:hidden; background:var(--linen); aspect-ratio:1; }
.product .art img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.product:hover .art img{ transform:scale(1.04); }
.tag{
  position:absolute; top:.8rem; left:.8rem; font-size:.6rem; letter-spacing:.18em; text-transform:uppercase;
  background:var(--ink); color:var(--cream); padding:.3rem .6rem; font-weight:400;
}
.tag-soft{ background:var(--oak); }
.product h3{ font-family:var(--font-body); font-weight:500; font-size:.95rem; margin-top:1rem; line-height:1.4; }
.product .spec{ color:var(--muted); font-size:.82rem; margin-top:.15rem; }
.product .dims{ font-variant-numeric:tabular-nums; }
.product .price{
  display:flex; justify-content:space-between; align-items:baseline; gap:1rem;
  margin-top:.55rem; font-variant-numeric:tabular-nums; font-weight:400;
}
.product .price a{ font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color:var(--brand); border-bottom:1px solid var(--brand); }
.products-foot{ margin-top:2.5rem; text-align:center; font-size:.85rem; color:var(--muted); }

/* Banner proyectos a medida */
.banner{ position:relative; isolation:isolate; color:var(--cream); text-align:center; padding-block:clamp(5rem, 12vw, 9rem); overflow:hidden; }
.banner::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(20,14,11,.72), rgba(20,14,11,.78)),
    repeating-linear-gradient(92deg, rgba(0,0,0,.14) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, #7a5b42, #4d3828);
}
.banner .eyebrow{ color:var(--oak-light); }
.banner h2{ font-size:clamp(1.3rem, 3vw, 2rem); letter-spacing:.28em; text-transform:uppercase; }
.banner p{ max-width:52ch; margin:1.2rem auto 2.2rem; opacity:.85; }

/* Social */
.social{ text-align:center; }
.social h2{ font-size:clamp(2.6rem, 6vw, 4rem); }
.social .eyebrow{ margin-top:.4rem; }
.social-links{
  display:flex; flex-wrap:wrap; justify-content:center; gap:1rem 2.6rem; margin-top:1.4rem;
  font-size:.74rem; letter-spacing:.24em; text-transform:uppercase; font-weight:400;
}
.social-links a{ display:inline-flex; align-items:center; gap:.6rem; }
.social-links svg{ width:16px; height:16px; }

/* Newsletter */
.newsletter{ background:var(--linen); }
.newsletter .wrap{ display:grid; grid-template-columns:1.1fr 1fr; gap:2rem 4rem; align-items:center; }
.newsletter h2{ font-size:clamp(1.5rem, 2.6vw, 2rem); }
.newsletter form{ display:flex; gap:.6rem; }
.newsletter input{ flex:1; min-width:0; padding:.9rem 1rem; border:1px solid var(--line); background:var(--card); color:var(--text); font:inherit; font-weight:300; }
.newsletter .btn{ background:var(--text); color:var(--paper); border-color:var(--text); white-space:nowrap; }
.newsletter .btn:hover{ opacity:.85; }
.form-note{ font-size:.85rem; color:var(--brand); margin-top:.7rem; min-height:1.4em; }

/* Footer */
.footer{ background:var(--ink); color:var(--cream); }
.footer-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:2.5rem 2rem; padding-block:4rem 3rem; font-size:.85rem; }
.footer h4{ font-family:var(--font-display); font-weight:400; font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; margin:0 0 1rem; }
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.footer a{ opacity:.85; }
.footer a:hover{ opacity:1; text-decoration:underline; text-underline-offset:3px; }
.footer address{ font-style:normal; display:grid; gap:.45rem; opacity:.85; }
.footer-bottom{
  border-top:1px solid var(--line-dark); padding-block:1.6rem;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:1rem;
  font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
}
.footer-bottom .logo{ width:140px; justify-self:center; }
.footer-bottom .credit{ justify-self:end; opacity:.6; }

/* WhatsApp flotante */
.wa{
  position:fixed; right:18px; bottom:18px; z-index:60; width:56px; height:56px; border-radius:50%;
  background:var(--wa); color:#fff; display:grid; place-items:center; box-shadow:0 10px 24px rgba(0,0,0,.22);
  transition:transform .25s var(--ease);
}
.wa:hover{ transform:translateY(-2px); }
.wa svg{ width:28px; height:28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px){
  .products{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width: 860px){
  .header .wrap{ grid-template-columns:auto 1fr auto auto; min-height:64px; gap:.4rem; }
  .logo-link{ grid-row:1; grid-column:1; justify-self:start; }
  .logo{ width:150px; }
  .theme-toggle-m{ display:grid; grid-row:1; grid-column:3; }
  .nav .theme-toggle{ display:none; }
  .burger{ display:flex; grid-row:1; grid-column:4; }
  .nav{ display:none; }
  .header.is-open .nav{
    display:flex; flex-direction:column; gap:0; grid-column:1 / -1; padding-block:.4rem;
  }
  .header.is-open .nav-left{ grid-row:2; border-top:1px solid var(--line-dark); padding-top:.8rem; }
  .header.is-open .nav-right{ grid-row:3; padding-bottom:1.2rem; }
  .header.is-open .nav a{ padding:.65rem 0; font-size:.95rem; }
  .about{ grid-template-columns:1fr; }
  .cats{ grid-template-columns:repeat(2, 1fr); gap:2rem 1.2rem; }
  .gallery, .gallery-3{ grid-template-columns:repeat(2, 1fr); }
  .steps{ grid-template-columns:repeat(2, 1fr); }
  .products{ grid-template-columns:repeat(2, 1fr); gap:1.8rem 1rem; }
  .footer-grid{ grid-template-columns:repeat(2, 1fr); }
  .newsletter .wrap{ grid-template-columns:1fr; }
  .topbar .wrap{ gap:.8rem; font-size:.62rem; }
  .topbar .hide-sm{ display:none; }
  .scroll-cue{ display:none; }
  .hero-slides{ padding-block:4.5rem 5.5rem; }
  .hero-meta{ grid-template-columns:1fr; justify-items:center; }
  .hero-meta .copy, .hero-meta .socials{ display:none; }
}
@media (max-width: 480px){
  .cats{ gap:1.6rem .9rem; }
  .cat h3{ font-size:.78rem; letter-spacing:.16em; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ grid-template-columns:1fr; justify-items:center; text-align:center; }
  .footer-bottom .credit{ justify-self:center; }
  .newsletter form{ flex-direction:column; }
  .section-head{ flex-direction:column; align-items:flex-start; }
  .wa{ width:50px; height:50px; right:14px; bottom:14px; }
  .topbar{ font-size:.6rem; letter-spacing:.08em; }
  .topbar .wrap{ gap:.6rem; white-space:nowrap; }
  .gallery, .gallery-3{ grid-template-columns:repeat(2, 1fr); gap:.7rem; }
  .doors{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}


/* ==========================================================================
   Extra · sitio en varias páginas: menú móvil, animaciones, producto, contacto
   ========================================================================== */

/* Link activo en la navegación */
.nav a[aria-current="page"]{ opacity:1; }
.nav a[aria-current="page"]::after{ transform:scaleX(1); }

/* Header que se compacta al hacer scroll */
.header .wrap{ transition:min-height .3s var(--ease); }
.logo{ transition:width .3s var(--ease); }
.header.is-scrolled{ box-shadow:0 8px 24px rgba(0,0,0,.28); }
.header.is-scrolled .wrap{ min-height:60px; }
.header.is-scrolled .logo{ width:clamp(130px, 13vw, 160px); }

/* Menú colapsado hasta 1024px (seis links no entran antes) */
@media (max-width:1024px){
  .header .wrap{ grid-template-columns:auto 1fr auto auto; min-height:64px; gap:.4rem; }
  .logo-link{ grid-row:1; grid-column:1; justify-self:start; }
  .logo{ width:150px; }
  .theme-toggle-m{ display:grid; grid-row:1; grid-column:3; }
  .nav{ display:none !important; }
  .burger{ display:flex; grid-row:1; grid-column:4; }
}

/* Hamburguesa que se convierte en X */
.burger span{ transition:background .2s; }
.burger span::before,.burger span::after{ transition:transform .3s var(--ease), top .3s var(--ease); }
.burger.is-open span{ background:transparent; }
.burger.is-open span::before{ top:0; transform:rotate(45deg); }
.burger.is-open span::after{ top:0; transform:rotate(-45deg); }

/* Cajón lateral del menú móvil */
.drawer{ position:fixed; inset:0; z-index:80; }
.drawer-backdrop{ position:absolute; inset:0; background:rgba(12,8,6,.55); opacity:0; transition:opacity .35s var(--ease); }
.drawer-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(88vw, 400px);
  background:var(--ink); color:var(--cream); display:flex; flex-direction:column; gap:1.6rem;
  padding:1.1rem 1.6rem 2rem; overflow-y:auto;
  transform:translateX(100%); transition:transform .42s var(--ease);
}
.drawer.is-open .drawer-backdrop{ opacity:1; }
.drawer.is-open .drawer-panel{ transform:none; }
.drawer-top{ display:flex; align-items:center; justify-content:space-between; min-height:44px; }
.drawer-top .logo{ width:140px; }
.drawer-close{ width:44px; height:44px; display:grid; place-items:center; font-size:1.8rem; line-height:1; color:var(--cream); }
.drawer-links{ list-style:none; margin:0; padding:0; display:grid; }
.drawer-links li{ border-top:1px solid var(--line-dark); opacity:0; transform:translateX(18px); transition:opacity .4s var(--ease), transform .4s var(--ease); }
.drawer-links li:last-child{ border-bottom:1px solid var(--line-dark); }
.drawer.is-open .drawer-links li{ opacity:1; transform:none; }
.drawer.is-open .drawer-links li:nth-child(1){ transition-delay:.08s; }
.drawer.is-open .drawer-links li:nth-child(2){ transition-delay:.14s; }
.drawer.is-open .drawer-links li:nth-child(3){ transition-delay:.20s; }
.drawer.is-open .drawer-links li:nth-child(4){ transition-delay:.26s; }
.drawer.is-open .drawer-links li:nth-child(5){ transition-delay:.32s; }
.drawer.is-open .drawer-links li:nth-child(6){ transition-delay:.38s; }
.drawer-links a{ display:block; padding:.85rem 0; font-family:var(--font-display); font-size:1.35rem; line-height:1.2; }
.drawer-links a small{ display:block; font-family:var(--font-body); font-size:.78rem; color:var(--oak-light); letter-spacing:.04em; margin-top:.1rem; }
.drawer-links a[aria-current="page"]{ color:var(--oak-light); }
.drawer-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; font-size:.9rem; opacity:.85; }
.drawer-foot .socials{ display:flex; gap:1rem; }
.drawer-foot .socials svg{ width:18px; height:18px; }
.btn-wa{ background:var(--wa); border-color:var(--wa); color:#fff; }
.btn-wa:hover{ background:#1ebe5b; border-color:#1ebe5b; color:#fff; }
.btn-wa svg{ width:18px; height:18px; }
body.no-scroll{ overflow:hidden; }

/* Transición entre páginas y aparición suave de bloques */
main.page-enter{ animation:pageIn .5s var(--ease) both; }
main.page-leave{ animation:pageOut .22s var(--ease) both; }
@keyframes pageIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes pageOut{ from{ opacity:1; } to{ opacity:0; } }
.js [data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .65s var(--ease), transform .65s var(--ease); }
.js [data-reveal].is-in{ opacity:1; transform:none; }
.js [data-reveal="stagger"]{ opacity:1; transform:none; }
.js [data-reveal="stagger"] > *{ opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal="stagger"].is-in > *{ opacity:1; transform:none; }

/* Encabezado de página interna y migas */
.page-head{ padding-block:clamp(2.6rem, 6vw, 4.5rem) 0; }
.page-head .title{ font-size:clamp(2rem, 4vw, 3rem); }
.crumbs{ display:flex; flex-wrap:wrap; gap:.5rem; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:1.4rem; }
.crumbs a:hover{ color:var(--text); }

/* Accesos del home (3 tarjetas con foto) */
.cats-3{ grid-template-columns:repeat(3, 1fr); }
.cats-3 .cat .art{ aspect-ratio:4/3; }

/* Adelantos del home (texto + dos fotos) */
.teaser{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem, 5vw, 5rem); align-items:center; }
.teaser-media{ display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.teaser-media .ph{ aspect-ratio:4/5; overflow:hidden; background:var(--linen); }
.teaser-media .ph:nth-child(2){ margin-top:2.5rem; }
.teaser-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.teaser-media .ph:hover img{ transform:scale(1.03); }
.teaser .btn{ margin-top:1.8rem; }
.teaser.is-flipped .teaser-media{ order:-1; }
.section-cta{ margin-top:2.4rem; text-align:center; }

/* Fichas de producto: toda la tarjeta es un link */
.product{ color:inherit; }
.product .price .more{ font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color:var(--brand); border-bottom:1px solid var(--brand); }
.products-3{ grid-template-columns:repeat(3, 1fr); }

/* Página de producto */
.product-layout{ display:grid; grid-template-columns:7fr 5fr; gap:clamp(2rem, 5vw, 4.5rem); align-items:start; }
.product-info .title{ margin-top:.2rem; }
.product-info .spec{ color:var(--muted); margin-top:.6rem; }
.product-info .lead{ margin-top:1.2rem; }
.options{ margin-top:2rem; display:grid; gap:1.2rem; }
.opt-group h3{ font-family:var(--font-body); font-weight:500; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; margin-bottom:.6rem; }
.product-cta{ margin-top:2rem; padding-top:1.6rem; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; }
.price-tag{ display:block; font-family:var(--font-display); font-size:1.5rem; line-height:1; }
.product-cta small{ display:block; color:var(--muted); font-size:.8rem; margin-top:.35rem; }
.selection{ margin-top:1rem; font-size:.85rem; color:var(--muted); min-height:1.4em; }
.details{ list-style:none; margin:1.6rem 0 0; padding:0; display:grid; gap:.5rem; font-size:.9rem; }
.details li{ display:flex; gap:.8rem; }
.details li::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--brand); flex:0 0 auto; margin-top:.6em; }

/* Carrusel de fotos */
.carousel-view{ position:relative; overflow:hidden; aspect-ratio:4/3; background:var(--linen); touch-action:pan-y; user-select:none; }
.carousel-track{ display:flex; height:100%; transition:transform .5s var(--ease); }
.carousel-track.is-dragging{ transition:none; }
.carousel-slide{ flex:0 0 100%; margin:0; height:100%; }
.carousel-slide img{ width:100%; height:100%; object-fit:cover; pointer-events:none; }
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%;
  background:rgba(20,14,11,.55); color:#fff; display:grid; place-items:center; font-size:1.7rem; line-height:1; padding-bottom:.15em;
  transition:background .2s; backdrop-filter:blur(4px);
}
.carousel-btn:hover{ background:rgba(20,14,11,.8); }
.carousel-btn.prev{ left:.8rem; }
.carousel-btn.next{ right:.8rem; }
.carousel-count{ position:absolute; right:.9rem; bottom:.8rem; font-size:.7rem; letter-spacing:.14em; background:rgba(20,14,11,.55); color:#fff; padding:.3rem .6rem; backdrop-filter:blur(4px); font-variant-numeric:tabular-nums; }
.carousel-thumbs{ display:grid; grid-template-columns:repeat(6, 1fr); gap:.5rem; margin-top:.6rem; }
.thumb{ aspect-ratio:4/3; overflow:hidden; padding:0; border:2px solid transparent; opacity:.55; transition:opacity .2s, border-color .2s; background:var(--linen); }
.thumb img{ width:100%; height:100%; object-fit:cover; }
.thumb.is-active, .thumb:hover{ opacity:1; }
.thumb.is-active{ border-color:var(--brand); }

/* Contacto */
.contact-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.2rem; margin-top:2.4rem; }
.contact-card{ background:var(--card); border:1px solid var(--line); padding:1.6rem; display:flex; flex-direction:column; gap:.6rem; }
.contact-card h3{ font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; }
.contact-card p, .contact-card a{ font-size:.95rem; }
.contact-card .big{ font-family:var(--font-display); font-size:1.5rem; }
.contact-card .btn{ margin-top:auto; align-self:flex-start; }
.contact-card .muted{ color:var(--muted); font-size:.85rem; }

@media (max-width:860px){
  .cats-3{ grid-template-columns:repeat(3, 1fr); gap:1.2rem .8rem; }
  .teaser{ grid-template-columns:1fr; }
  .teaser.is-flipped .teaser-media{ order:0; }
  .product-layout{ grid-template-columns:1fr; }
  .products-3{ grid-template-columns:repeat(2, 1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .carousel-thumbs{ grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:480px){
  .cats-3{ grid-template-columns:1fr; }
  .products-3{ grid-template-columns:1fr; }
  .teaser-media .ph:nth-child(2){ margin-top:1.5rem; }
  .carousel-thumbs{ grid-template-columns:repeat(4, 1fr); }
  .carousel-btn{ width:38px; height:38px; }
}
@media (prefers-reduced-motion: reduce){
  .js [data-reveal], .js [data-reveal="stagger"] > *{ opacity:1; transform:none; transition:none; }
  main.page-enter, main.page-leave{ animation:none; }
  .drawer-panel, .drawer-backdrop, .drawer-links li, .carousel-track{ transition:none; }
}
