/* =============================================================
   MATERIALES MATADEROS — styles.css
   Arquetipo: Editorial Dark Warm (industrial / ámbar + acero)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>"; inherits: false; initial-value: 0deg;
}

:root {
  /* Color — dark warm industrial */
  --bg:        #1E1A14;   /* warm charcoal — aclarado para no quedar tan oscuro */
  --bg-2:      #29231B;
  --bg-3:      #322A21;   /* card */
  --bg-4:      #3C3227;
  --cream:     #F1E9DA;   /* text on dark, never pure white */
  --cream-2:   #D8CCB6;
  --cream-3:   #998B73;   /* metadata */
  --accent:    #D98A2B;   /* ámbar / ocre construcción */
  --accent-2:  #B5641A;   /* ámbar quemado */
  --steel:     #8C97A0;   /* gris hormigón / acero */
  --gold:      #C9A35B;   /* secundario cálido */
  --blue:      #2E2E86;   /* azul del logo (navy) — secundario de marca */
  --blue-soft: #6A6CDA;   /* azul claro para acentos sobre fondo oscuro */
  --line:      rgba(241,233,218,.12);
  --line-2:    rgba(241,233,218,.20);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --maxw: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; }
::selection { background: var(--accent); color: #1a1410; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow-mono {
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .72rem;
}
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-2);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 0 rgba(106,108,218,.55);
}
.dot[data-live] { animation: livePulse 2.4s var(--ease-out) infinite; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(106,108,218,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(106,108,218,0); }
  100% { box-shadow: 0 0 0 0 rgba(106,108,218,0); }
}

/* =============================================================
   4. Components — buttons
   ============================================================= */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out),
              color .35s var(--ease-out), border-color .35s var(--ease-out),
              box-shadow .35s var(--ease-out);
  will-change: transform;
}
.btn-lg { --pad-y: 1.05rem; --pad-x: 1.9rem; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #20160c;
  box-shadow: 0 10px 30px -12px rgba(217,138,43,.7);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(217,138,43,.85);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--blue-soft);
  color: var(--blue-soft);
  transform: translateY(-2px);
}

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(52% 42% at 50% 44%, rgba(74,76,180,.34), transparent 70%), var(--bg);
  animation: splashSafety .01s 4.5s forwards; /* safety net if JS fails */
}
.splash.is-out {
  animation: splashOut 1s var(--ease-in) forwards;
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-mark {
  color: var(--accent);
  animation: markRise 1s var(--ease-out) both;
}
.splash-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  letter-spacing: .01em;
  opacity: 0;
  animation: fadeUp .8s .25s var(--ease-out) forwards;
}
@keyframes markRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(30,26,20,.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .85rem var(--gutter);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--cream); }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand-text small { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); }
.brand-mark img { display: block; width: auto; height: 38px; }
.splash-mark img { display: block; width: auto; height: 120px; }
.footer-brand .brand-mark img { height: 52px; }
.nav-links { margin-left: auto; display: none; gap: 1.7rem; }
.nav-links a {
  font-size: .92rem; color: var(--cream-2); position: relative; padding: .2rem 0;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }

.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-grid; place-content: center; gap: 5px;
  border: 1px solid var(--line-2); border-radius: 10px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .25s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(30,26,20,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .2rem;
  padding: .6rem var(--gutter) 1.4rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav.is-open .nav-drawer { opacity: 1; transform: none; pointer-events: auto; }
.nav-drawer a { padding: .85rem .2rem; font-size: 1.05rem; color: var(--cream); border-bottom: 1px solid var(--line); }
.nav-drawer a.btn { border: 0; margin-top: .8rem; justify-content: center; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7.5rem var(--gutter) 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.04); }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30,26,20,.46) 0%, rgba(30,26,20,.36) 42%, rgba(30,26,20,.74) 100%),
    radial-gradient(120% 80% at 18% 22%, rgba(30,26,20,.12), rgba(30,26,20,.56) 80%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 50% at 20% 30%, rgba(217,138,43,.42), transparent 70%),
    radial-gradient(34% 46% at 82% 26%, rgba(181,100,26,.34), transparent 72%),
    radial-gradient(46% 54% at 66% 84%, rgba(74,76,180,.42), transparent 74%);
  filter: blur(60px) saturate(135%);
  transform: rotate(var(--mesh-angle));
  animation: meshSpin 26s linear infinite;
  opacity: .9;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 1.3rem 0 1.4rem;
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 60; }
.hero-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  color: var(--cream-2);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 6vw, 3.5rem);
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats .stat dt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1;
  color: var(--cream);
}
.hero-stats .stat dd {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-3); margin-top: .45rem;
}
.hero-stats .ast { color: var(--accent); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-3); z-index: 2;
}
.hero-scroll svg { animation: bob 2s var(--ease-soft) infinite; color: var(--accent); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =============================================================
   8. Marquee
   ============================================================= */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  color: var(--cream-2);
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   9. About / Nosotros
   ============================================================= */
.about {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.about-head { margin-bottom: 2.6rem; }
.about-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin-top: 1rem; max-width: 18ch;
}
.about-title em { font-style: italic; color: var(--accent); }
.about-grid { display: grid; gap: 2.8rem; }
.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.42; color: var(--cream); max-width: 30ch;
}
.pillars { display: grid; gap: 1.6rem; }
.pillar { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.pillar-num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font-family: var(--serif); font-size: 1.3rem; margin: .5rem 0 .55rem; }
.pillar p { color: var(--cream-2); font-size: .96rem; }

/* =============================================================
   10. Showcase (pinned horizontal)
   ============================================================= */
.showcase { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 7rem); position: relative; }
.showcase-head {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter); margin-bottom: 2.6rem;
}
.showcase-head h2 {
  font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin-top: 1rem; max-width: 16ch;
}
.showcase-head h2 em { font-style: italic; color: var(--accent); }
.showcase-hint { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); margin-top: 1rem; }

.showcase-viewport {
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
}
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase.is-pinned .showcase-viewport { overflow: visible; scroll-snap-type: none; }

.showcase-track {
  display: flex; gap: clamp(1rem, 2.5vw, 1.8rem);
  width: max-content;
  padding-block: .6rem 1.5rem;
}
.cat-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(270px, 80vw, 380px);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.cat-card::after {
  /* halo following cursor (vars set by JS) */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(180px 180px at var(--hx, 50%) var(--hy, 0%), rgba(106,108,218,.22), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.cat-card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.cat-card:hover::after { opacity: 1; }
.cat-media {
  aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 1.6rem; background: #ffffff;
}
.cat-media img {
  max-width: 84%; max-height: 66%; object-fit: contain; display: block;
  transition: transform .6s var(--ease-out);
}
.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-media .brand-logo-ph {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: #a4937a;
}
.cat-body { padding: 1.3rem 1.3rem 1.5rem; position: relative; z-index: 4; }
.cat-num { font-family: var(--mono); font-size: .78rem; color: var(--blue-soft); letter-spacing: .1em; }
.cat-body h3 { font-family: var(--serif); font-size: 1.55rem; margin: .35rem 0 .6rem; }
.cat-items { color: var(--cream-2); font-size: .92rem; line-height: 1.5; }
.cat-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--cream-3); margin-top: .55rem; text-transform: uppercase; }
.cat-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem; font-weight: 600; font-size: .92rem; color: var(--accent);
}
.cat-link span { transition: transform .3s var(--ease-out); }
.cat-link:hover span { transform: translateX(5px); }

/* =============================================================
   12. Steps / Cómo comprar
   ============================================================= */
.steps { max-width: var(--maxw); margin-inline: auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.steps-head { margin-bottom: 2.8rem; }
.steps-head h2 { font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.6rem); margin-top: 1rem; max-width: 16ch; }
.steps-head h2 em { font-style: italic; color: var(--accent); }
.steps-list { display: grid; gap: 1.4rem; }
.step {
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  position: relative; overflow: hidden;
}
.step-num {
  font-family: var(--mono); font-size: .9rem; color: var(--accent); letter-spacing: .1em;
}
.step h3 { font-family: var(--serif); font-size: 1.35rem; margin: .55rem 0 .55rem; }
.step p { color: var(--cream-2); font-size: .96rem; }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0; }
.contact-halo {
  position: absolute; inset: -40% -10% -20% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 40% at 50% 40%, rgba(217,138,43,.30), transparent 72%);
  filter: blur(110px);
}
.contact-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 2.8rem;
}
.contact-copy h2 { font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.4rem); margin-top: 1rem; max-width: 16ch; }
.contact-copy h2 em { font-style: italic; color: var(--accent); }
.contact-lead { color: var(--cream-2); margin-top: 1.1rem; max-width: 42ch; }
.contact-direct { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-direct li { display: grid; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-direct .ci, .contact-hours .ci {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3);
}
.contact-direct a { font-size: 1.05rem; color: var(--cream); transition: color .3s var(--ease-out); }
.contact-direct a:hover { color: var(--accent); }
.contact-hours { margin-top: 1.4rem; }
.contact-hours p { color: var(--cream-2); margin-top: .25rem; }
.contact-hours strong { color: var(--cream); font-weight: 600; }

.cta-form {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; gap: .45rem; }
.form-row label { font-size: .88rem; color: var(--cream-2); font-weight: 500; }
.form-row .opt { color: var(--cream-3); font-weight: 400; }
.form-row input, .form-row textarea {
  font: inherit; color: var(--cream);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .85rem .95rem; resize: vertical;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--cream-3); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.form-submit { margin-top: .3rem; position: relative; }
.form-check { display: none; }
.cta-form.is-sent .form-submit-label { opacity: 0; }
.cta-form.is-sent .form-check { display: block; position: absolute; }
.cta-form.is-sent .fc-ring { stroke-dasharray: 88; stroke-dashoffset: 88; animation: drawRing .5s var(--ease-out) forwards; }
.cta-form.is-sent .fc-tick { stroke-dasharray: 26; stroke-dashoffset: 26; animation: drawTick .35s .4s var(--ease-out) forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
.form-note { font-size: .82rem; color: var(--cream-3); text-align: center; }
.form-note.is-error { color: var(--accent); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-top {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
  display: grid; gap: 2.6rem;
}
.footer-brand .brand-mark { color: var(--accent); margin-bottom: .9rem; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; }
.footer-legal { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); margin-top: .3rem; }
.footer-tag { color: var(--cream-2); margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a, .footer-contact a { color: var(--cream-2); font-size: .96rem; transition: color .3s var(--ease-out); width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-hours { color: var(--cream-3); font-size: .88rem; margin-top: .3rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin-inline: auto; padding: 1.4rem var(--gutter);
  display: grid; gap: .6rem;
  color: var(--cream-3); font-size: .82rem;
}
.footer-credits a { color: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.footer-credits a:hover { color: var(--accent); }

/* =============================================================
   15. Reveal animations
   ============================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

[data-reveal] { opacity: 0; transform: scale(1.02); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* split words */
.split-word { display: inline-block; will-change: transform; }
[data-split] .split-word {
  opacity: 0; transform: translateY(0.5em);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
[data-split].is-inview .split-word { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-split] .split-word { transition-duration: .3s; }
}

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
  .pillars { gap: 2rem; }
  .steps-list { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1.4fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 0; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none; }
  .hero-title { margin-block: 1.6rem 1.6rem; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .steps-list { grid-template-columns: repeat(4, 1fr); }

  /* Marcas: grilla estática en desktop — no secuestra el scroll vertical */
  .showcase-viewport { overflow: visible; scroll-snap-type: none; }
  .showcase-track {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem; width: auto; max-width: var(--maxw);
    margin-inline: auto; padding-block: .4rem 0;
  }
  .cat-card { width: auto; scroll-snap-align: none; }
  .showcase-hint { display: none; }
}

/* =============================================================
   17. Reduced motion — only gate intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .marquee-track { animation-duration: 90s; }
  .dot[data-live] { animation: none; }
  .hero-scroll svg { animation: none; }
  /* Keep: hovers, tilts, reveals, fades, count-up, form check */
}
