/* ==========================================================
   Borgo Natural Stone — estilos
   Colores de marca aproximados a partir del logo original
   ========================================================== */

:root {
  --orange: #F7941D;
  --orange-deep: #9A5300;
  --graphite: #58595B;

  --ink: #0E0D0C;
  --ink-2: #161513;
  --ink-3: #201E1B;
  --cream: #F3EFE8;
  --cream-2: #E8E2D8;
  --paper: #FAF8F4;

  --on-dark: #F3EFE8;
  --on-dark-2: rgba(243, 239, 232, .66);
  --on-dark-3: rgba(243, 239, 232, .14);
  --text: #1B1A18;
  --text-2: #5A5751;
  --line: rgba(27, 26, 24, .12);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --logo: "Montserrat", var(--sans);

  --gutter: clamp(20px, 4vw, 64px);
  --container: 1440px;
  --section: clamp(96px, 13vw, 200px);
  --radius: 6px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--orange); color: var(--ink); }

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

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

/* ---------- Tipografía ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
}
[data-dark] .eyebrow { color: var(--orange); }
.eyebrow.dark { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-size: clamp(42px, 6.2vw, 104px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 400;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* SplitText: líneas con máscara */
.split-line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }

/* ---------- Botones ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary::before { background: var(--on-dark); }
.btn-outline-light { border-color: rgba(243,239,232,.35); color: var(--on-dark); }
.btn-outline-light::before { background: var(--on-dark); }
.btn-outline-light:hover { color: var(--ink); border-color: var(--on-dark); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .3s;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover { color: var(--orange-deep); }
.link-arrow:hover svg { transform: translateX(5px); }

.u-link {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.u-link:hover { background-size: 100% 1px; background-position: 0 100%; color: var(--orange); }

/* ---------- Preloader (solo si hay JS de animación) ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--ink);
  color: var(--on-dark);
}
.js-motion .preloader { display: flex; animation: preloaderFailsafe .6s 6s forwards; }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
.preloader-mark {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  grid-template-rows: repeat(3, 22px);
}
.preloader-mark i { display: block; background: #6B6C6E; }
.preloader-mark i:nth-child(odd) { background: var(--orange); }
.preloader-mark i.empty { background: transparent; }
.preloader-word {
  font-family: var(--logo);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3em;
}
.preloader-word span { font-weight: 400; color: var(--orange); }

/* ---------- Extras globales ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s;
}
.has-cursor .cursor { display: flex; }
.cursor-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(247,148,29,.25); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--orange); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--on-dark);
  transition: transform .6s var(--ease-out), background-color .5s;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--on-dark-3);
  opacity: 0;
  transition: opacity .5s;
}
.header.is-solid {
  background-color: rgba(14, 13, 12, .8);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.header.is-solid::after { opacity: 1; }
.header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.menu-open .header { transform: none; background-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .header::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  padding: 0 var(--gutter);
  max-width: 1680px;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--logo);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-name span { font-weight: 400; color: var(--orange); }
.brand-tag {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-2);
  border-radius: 999px;
  transition: color .3s, background-color .3s;
}
.nav a:hover { color: var(--on-dark); }
.nav a.is-active { color: var(--on-dark); background-color: rgba(243,239,232,.1); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-2);
  transition: color .3s;
}
.header-phone:hover { color: var(--orange); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--on-dark-3);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 16px; height: 1.5px;
  background: var(--on-dark);
  transition: transform .45s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--ink);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: clamp(34px, 9vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.05;
  border-bottom: 1px solid var(--on-dark-3);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .6s var(--ease-out);
}
.mobile-menu nav a small { font-size: 12px; color: var(--orange); letter-spacing: .1em; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .45s; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 6px; color: var(--on-dark-2); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-tex {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease-io), transform 7s linear;
}
.hero-tex.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,13,12,.95) 0%, rgba(14,13,12,.8) 38%, rgba(14,13,12,.28) 75%, rgba(14,13,12,.12) 100%),
    linear-gradient(0deg, rgba(14,13,12,.92) 0%, rgba(14,13,12,0) 40%),
    linear-gradient(180deg, rgba(14,13,12,.6) 0%, rgba(14,13,12,0) 22%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 150px) var(--gutter) 0;
}
.hero-eyebrow { color: var(--on-dark-2) !important; }
.hero-eyebrow::before { background: var(--orange); }
.hero-title {
  font-size: clamp(52px, min(8.6vw, 15vh), 164px);
  line-height: .92;
  letter-spacing: -.045em;
  margin-bottom: 36px;
}
.hero-title .line { display: block; }
.rotator {
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--orange);
}
.rotator-word {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  transform: translateY(160%);
  transition: transform .9s var(--ease-out);
}
.rotator-word.is-active { transform: none; }
.rotator-word.is-leaving { transform: translateY(-160%); transition: transform .7s var(--ease-io); }

.hero-lead {
  max-width: 52ch;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--on-dark-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 48px;
  width: 100%;
  max-width: 1680px;
  margin: clamp(32px, 6vh, 72px) auto 0;
  padding: 24px var(--gutter) 28px;
}
.hero-foot::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--on-dark-3);
}
.hero-indicator { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--on-dark-2); }
.hero-index b { color: var(--on-dark); font-weight: 500; }
.hero-bar { position: relative; width: 120px; height: 1px; background: var(--on-dark-3); overflow: hidden; }
.hero-bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.hero-name { color: var(--on-dark); letter-spacing: .02em; min-width: 9ch; }
.hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid var(--on-dark-3);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .3s;
}
.hero-pause:hover { border-color: var(--orange); }
.hero-pause i { width: 2px; height: 9px; background: var(--on-dark); }
.hero-pause.is-paused i:first-child {
  width: 0; height: 0;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--on-dark);
  margin-left: 2px;
}
.hero-pause.is-paused i:last-child { display: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-stats { display: flex; gap: 48px; }
.hero-stats div { display: flex; align-items: baseline; gap: 12px; }
.hero-stats b { font-size: 34px; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.hero-stats span { font-size: 13px; line-height: 1.3; max-width: 11ch; color: var(--on-dark-2); }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.hero-scroll i { position: relative; width: 1px; height: 44px; background: var(--on-dark-3); overflow: hidden; }
.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: scrollHint 2.2s var(--ease-io) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span {
  padding: 0 clamp(20px, 2.6vw, 44px);
  font-size: clamp(44px, 7vw, 120px);
  letter-spacing: -.04em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
}
.marquee span:nth-of-type(even) {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.marquee svg { width: clamp(22px, 2.4vw, 38px); height: clamp(22px, 2.4vw, 38px); flex-shrink: 0; }

/* ---------- Secciones ---------- */

.section { padding: var(--section) 0; }
.section-head { max-width: 1100px; margin-bottom: clamp(56px, 8vw, 120px); }

/* ---------- Quiénes somos ---------- */

.about { background: var(--paper); }
.about-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2.2fr;
  gap: clamp(40px, 8vw, 140px);
  margin-bottom: clamp(72px, 10vw, 160px);
}
.about-counter { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.about-num {
  font-size: clamp(110px, 14vw, 220px);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.about-num-label { font-size: 15px; color: var(--text-2); }
.about-statement {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -.028em;
  color: var(--text);
}
.about-statement .w { opacity: .22; }

.about-media {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-bottom: clamp(72px, 10vw, 160px);
}
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.media-frame img {
  width: 100%;
  height: 118%;
  margin-top: -9%;
  object-fit: cover;
}
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 11; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 40px clamp(20px, 3vw, 48px) 8px 0;
  border-right: 1px solid var(--line);
}
.pillar + .pillar { padding-left: clamp(20px, 3vw, 48px); }
.pillar:last-child { border-right: 0; }
.pillar-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 40px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--orange-deep);
}
.pillar h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.03em; margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--text-2); max-width: 36ch; }

/* ---------- Productos ---------- */

.products {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
}
.products-pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(84px, 11vh, 120px) 0 clamp(32px, 5vh, 56px);
}
.products .display { font-size: clamp(40px, min(5.4vw, 10vh), 96px); }
.products-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(28px, 4vh, 56px);
}
.products-meta p { margin: 0 0 28px; color: var(--on-dark-2); max-width: 44ch; }
.products-progress { position: relative; height: 1px; background: var(--on-dark-3); }
.products-progress span {
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(.125);
}

.products-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.products-viewport::-webkit-scrollbar { display: none; }
.products-viewport.is-pinned { overflow: hidden; scroll-snap-type: none; }
.card { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.products-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  padding: 0 var(--gutter);
}
.card {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 26vw, 420px);
  height: clamp(300px, calc(100svh - 360px), 560px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
}
.card.is-tilting { transition: transform .12s linear; }
.card-tex {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.card:hover .card-tex { transform: scale(1.1); }
.tex-collection {
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 1px, transparent 1px) 0 0 / 33.34% 100%,
    linear-gradient(0deg, rgba(0,0,0,.28) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, #EDEAE4 0 33.33%, #B9A88E 33.33% 66.66%, #54575C 66.66%);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14,13,12,.94) 0%, rgba(14,13,12,.55) 36%, rgba(14,13,12,0) 64%);
  pointer-events: none;
}
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.4), transparent 50%);
  mix-blend-mode: soft-light;
  transition: opacity .4s;
}
.card:hover .card-glare { opacity: 1; }
.card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2vw, 32px);
}
.card-num { font-size: 12px; letter-spacing: .16em; color: var(--orange); }
.card h3 { margin: 8px 0; font-size: clamp(28px, 2.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.card p { margin: 0; font-size: 15px; color: var(--on-dark-2); max-width: 30ch; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.card-cta svg { width: 16px; height: 16px; }
.card:hover .card-cta,
.card:focus-visible .card-cta { opacity: 1; transform: none; }

/* ---------- Servicios (tarjetas apiladas) ---------- */

.services { background: var(--cream); }
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 72px);
  min-height: min(600px, 70vh);
  padding: clamp(24px, 3.4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 -20px 60px -40px rgba(14,13,12,.35);
  transform-origin: 50% 0;
}
.stack-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--ink);
  opacity: var(--dim, 0);
  pointer-events: none;
}
.stack-card:nth-child(2) { top: 130px; }
.stack-card:nth-child(3) { top: 150px; }
.stack-text { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.stack-num {
  margin-bottom: auto;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-2);
}
.stack-card h3 {
  margin: 40px 0 16px;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.stack-card p { margin: 0 0 28px; color: var(--text-2); max-width: 44ch; }
.stack-img { margin: 0; overflow: hidden; border-radius: var(--radius); min-height: 280px; }
.stack-img img { width: 100%; height: 100%; object-fit: cover; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: background-color .3s, color .3s, border-color .3s;
}
.tag:hover { background-color: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tag.accent { border-color: rgba(154,83,0,.45); color: var(--orange-deep); }

/* ---------- Galería ---------- */

.gallery {
  padding: var(--section) 0;
  background: var(--paper);
  overflow: hidden;
}
.gallery-head { margin-bottom: clamp(48px, 6vw, 96px); }
.gallery-row {
  display: flex;
  gap: clamp(12px, 1.4vw, 24px);
  width: max-content;
  padding-left: var(--gutter);
  margin-bottom: clamp(12px, 1.4vw, 24px);
  will-change: transform;
}
.gallery-row[data-dir="1"] { margin-left: -18vw; }
.gallery figure {
  margin: 0;
  width: clamp(260px, 30vw, 520px);
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Promociones ---------- */

.promo {
  background: var(--orange);
  color: var(--ink);
  padding: clamp(80px, 10vw, 160px) 0;
}
.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.promo .display { max-width: 14ch; }
.promo-text { margin: 28px 0 0; font-size: 19px; max-width: 46ch; color: rgba(14,13,12,.78); }
.promo-btn {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color .4s, color .4s;
}
.promo-btn svg { width: 24px; height: 24px; transition: transform .5s var(--ease-out); }
.promo-btn:hover { background-color: var(--paper); color: var(--ink); }
.promo-btn:hover svg { transform: rotate(45deg); }

/* ---------- Contacto ---------- */

.contact { background: var(--ink); color: var(--on-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
}
.contact-lead { margin: 28px 0 48px; color: var(--on-dark-2); font-size: 19px; }
.contact-list { margin: 0 0 40px; }
.contact-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--on-dark-3);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--on-dark-3); }
.contact-list dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 18px; }
.phones { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.map {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(1) invert(.9) contrast(.9);
}

.form {
  align-self: start;
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink-2);
  border: 1px solid var(--on-dark-3);
  border-radius: calc(var(--radius) * 2);
}
.form-head { margin-bottom: 28px; }
.form-head h3 { font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -.03em; }
.form-head p { margin: 8px 0 0; color: var(--on-dark-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.field { position: relative; padding-top: 20px; }
.field.full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  font: inherit;
  font-size: 17px;
  color: var(--on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243,239,232,.24);
  border-radius: 0;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select option { color: var(--ink); }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE8' stroke-opacity='.6' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px;
}
.field label {
  position: absolute;
  left: 0; top: 32px;
  font-size: 17px;
  color: var(--on-dark-2);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .4s var(--ease-out), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field label.static {
  transform: translateY(-30px) scale(.72);
  color: var(--orange);
}
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; }
.form-error { min-height: 22px; margin: 16px 0 0; font-size: 14px; color: var(--orange); }
.form .btn { margin-top: 12px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding: clamp(72px, 8vw, 120px) 0 32px;
  border-top: 1px solid var(--on-dark-3);
  overflow: hidden;
}
.footer .brand { color: var(--on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-brand p { margin: 24px 0 0; max-width: 30ch; }
.footer h4 {
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.brand) { width: fit-content; transition: color .3s; }
.footer-grid a:not(.brand):hover { color: var(--orange); }
.footer-word {
  margin: clamp(48px, 6vw, 96px) 0 0;
  font-family: var(--logo);
  font-weight: 800;
  font-size: clamp(72px, 19vw, 330px);
  line-height: .8;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  color: rgba(243,239,232,.045);
  user-select: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--on-dark-3);
  font-size: 14px;
}
.to-top:hover { color: var(--orange); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 1023px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-scroll { display: none; }
  .about-top,
  .products-head,
  .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar-num { margin-bottom: 20px; }

  /* Productos: carrusel táctil nativo */
  .products-pin { min-height: 0; }
  .card { width: min(78vw, 400px); height: min(70vh, 520px); }

  /* Galería: deslizable a mano */
  .gallery-row {
    width: auto;
    margin-left: 0 !important;
    padding-right: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-row::-webkit-scrollbar { display: none; }
  .gallery figure { width: min(78vw, 420px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }

  .stack-card { grid-template-columns: 1fr; position: relative; top: auto !important; min-height: 0; }
  .stack-img { aspect-ratio: 4 / 3; min-height: 0; order: -1; }
  .stack-text .stack-num { margin-bottom: 0; }
  .stack-card h3 { margin-top: 16px; }

  .promo-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .header-actions .btn { display: none; }
  .brand-name { font-size: 14px; }
  .brand-tag { display: none; }
  .hero-content { padding-top: 120px; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .hero-stats { gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .about-media { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card { transform: none !important; }
}
