/* =========================================================
   Estancia Guañizuil — estilos
   Paleta tomada del logo: cobre sobre negro carbón.
   ========================================================= */

/* Fuentes alojadas en el sitio (subconjunto latino, archivos variables) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/inter.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../assets/fonts/oswald.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0e0c0a;
  --char: #15120f;
  --char-2: #1c1814;
  --char-3: #26211c;
  --paper: #faf6f0;
  --cream: #f3ece2;
  --cream-2: #e8ddcd;

  --copper: #c47a45;
  --copper-l: #e3a774;
  --copper-d: #8e4f27;
  --copper-grad: linear-gradient(110deg, #f4c79c 0%, #c47a45 30%, #8e4f27 52%, #d99561 74%, #f4c79c 100%);

  --text: #efe8de;
  --text-dim: #b2a798;
  --text-dark: #1e1a16;
  --text-dark-dim: #5f564c;
  --line-dark: rgba(227, 167, 116, .16);
  --line-light: rgba(30, 26, 22, .12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Oswald", "Inter", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 16px;
  --nav-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--copper); color: #fff; }
:focus-visible { outline: 2px solid var(--copper-l); outline-offset: 3px; border-radius: 4px; }

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

.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section--cream { background: var(--cream); color: var(--text-dark); }
.section--paper { background: var(--paper); color: var(--text-dark); }
.section--dark { background: var(--char); }
.section--ink { background: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 300;
  padding: .7rem 1.1rem;
  border-radius: 100px;
  background: var(--copper);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Íconos (Lucide, como sprite SVG dentro de la página) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lucide { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
.eyebrow, .kicker {
  font-family: var(--label);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--copper-d);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before, .kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light, .section--dark .kicker, .section--ink .kicker { color: var(--copper-l); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
/* Gradiente cobre fijo para los destacados (el brillo animado queda solo en la portada) */
.h2 em, .h3 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #f0bf8f 0%, #d38b55 45%, #b8693a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.section--cream .h2 em, .section--paper .h2 em, .section--cream .h3 em {
  background-image: linear-gradient(100deg, #b06a35 0%, #8e4f27 100%);
}
.copper-text {
  background: var(--copper-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.6rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s, box-shadow .4s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn .lucide { transition: transform .4s var(--ease); }
.btn:hover .lucide { transform: translateX(3px); }

.btn--copper { background: linear-gradient(135deg, #d68b54, #a9612f); color: #fff; box-shadow: 0 10px 30px -12px rgba(196, 122, 69, .7); }
.btn--copper::after { background: var(--text); }
.btn--copper:hover { color: var(--ink); }

.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }

.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark::after { background: var(--copper); }
.btn--dark:hover { color: #fff; }

.btn--line { border: 1px solid var(--line-light); color: var(--text-dark); background: transparent; }
.btn--line::after { background: var(--ink); }
.btn--line:hover { color: var(--text); border-color: var(--ink); }

.btn--sm { padding: .78rem 1.25rem; font-size: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 500;
  font-size: .95rem;
  color: var(--copper-d);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease), gap .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; gap: .9rem; }
.link-arrow--light { color: var(--copper-l); }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  background: var(--ink);
  transition: transform 1.1s var(--ease-io), visibility 0s linear 1.1s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__emblem { position: relative; width: 150px; height: 150px; }
.loader__logo {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.12);
  opacity: 0;
  clip-path: circle(46% at 50% 50%);
  animation: logoIn .9s var(--ease) .1s forwards;
}
.loader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__ring circle {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.5;
  stroke-dasharray: 610;
  stroke-dashoffset: 610;
  animation: ringDraw 1.1s var(--ease-io) forwards;
}
.loader__name, .loader__since {
  margin: 0;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .5em;
  padding-left: .5em;
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
}
.loader__name { font-size: .95rem; color: var(--text); animation-delay: .3s; }
.loader__since { font-size: .7rem; color: var(--copper-l); animation-delay: .45s; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes logoIn { to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: var(--copper-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), height .5s var(--ease), transform .6s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  --nav-h: 70px;
  background: rgba(14, 12, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line-dark);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .85rem; margin-right: auto; }
.brand__logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(227, 167, 116, .35), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .6s var(--ease);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; color: #fff; }
.brand__text small { font-family: var(--label); font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--copper-l); }

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  position: relative;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  padding: .4rem 0;
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--copper-l);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: #fff;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  padding: .3rem 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mmenu__links a span { font-family: var(--label); font-size: .75rem; letter-spacing: .2em; color: var(--copper-l); }
.mmenu__links a:hover { color: var(--copper-l); }
.mmenu.is-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__links a:nth-child(1) { transition-delay: .25s; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: .3s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: .35s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: .4s; }
.mmenu.is-open .mmenu__links a:nth-child(5) { transition-delay: .45s; }
.mmenu.is-open .mmenu__links a:nth-child(6) { transition-delay: .5s; }
.mmenu.is-open .mmenu__links a:nth-child(7) { transition-delay: .55s; }
.mmenu__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; color: var(--text-dim); font-size: .85rem; }
.mmenu__foot p { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 40px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.18);
  animation: heroZoom 2.8s var(--ease) .2s forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, .55) 0%, rgba(14, 12, 10, 0) 22%),
    linear-gradient(0deg, rgba(14, 12, 10, .96) 6%, rgba(14, 12, 10, .55) 42%, rgba(14, 12, 10, .05) 70%),
    linear-gradient(90deg, rgba(14, 12, 10, .55) 0%, rgba(14, 12, 10, 0) 60%);
}
.hero__content { position: relative; z-index: 2; margin-bottom: clamp(36px, 6vh, 64px); }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--label);
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: var(--hero-delay, 1.9s);
}
.hero__eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--copper-l); }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: .6rem 0 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.3s var(--ease) forwards;
  animation-delay: calc(var(--hero-delay, 1.9s) + .1s);
}
.hero__title .line:nth-child(2) > span { animation-delay: calc(var(--hero-delay, 1.9s) + .22s), 0s; animation-name: lineUp, shimmer; animation-duration: 1.3s, 8s; animation-timing-function: var(--ease), linear; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__lead {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, .82);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: calc(var(--hero-delay, 1.9s) + .45s);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: calc(var(--hero-delay, 1.9s) + .6s);
}

.hero__sectors {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.sector-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  background: rgba(20, 17, 14, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease) forwards;
  transition: background .5s var(--ease);
}
.sector-tile:nth-child(1) { animation-delay: calc(var(--hero-delay, 1.9s) + .7s); border-radius: var(--radius) 0 0 var(--radius); }
.sector-tile:nth-child(2) { animation-delay: calc(var(--hero-delay, 1.9s) + .8s); }
.sector-tile:nth-child(3) { animation-delay: calc(var(--hero-delay, 1.9s) + .9s); }
.sector-tile:nth-child(4) { animation-delay: calc(var(--hero-delay, 1.9s) + 1s); border-radius: 0 var(--radius) var(--radius) 0; }
.sector-tile::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 100%;
  background: var(--copper-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.sector-tile:hover { background: rgba(196, 122, 69, .22); }
.sector-tile:hover::before { transform: scaleX(1); }
.sector-tile__num { position: absolute; top: .7rem; right: 1rem; font-family: var(--label); font-size: .68rem; letter-spacing: .2em; color: rgba(255, 255, 255, .45); }
.sector-tile__icon { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--copper-l); stroke-width: 1.3; }
.sector-tile__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.sector-tile__desc { grid-column: 2; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.sector-tile__arrow { grid-row: 1 / 3; grid-column: 3; color: var(--copper-l); transition: transform .5s var(--ease); }
.sector-tile:hover .sector-tile__arrow { transform: translate(3px, -3px) rotate(45deg); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 2;
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--copper-l); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); border-block: 1px solid var(--line-dark); overflow: hidden; padding: 1.25rem 0; }
.marquee__track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--text); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--copper); font-size: .9rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal system ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s),
              translate .5s var(--ease), box-shadow .6s var(--ease), border-color .4s, background-color .5s;
}
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }
/* once split, the copper gradient moves from the <em> to each word */
.js [data-split] em { background: none; color: inherit; animation: none; padding: 0; }
.js [data-split] em .w { padding-right: .08em; margin-right: -.08em; }
.js [data-split] em .w > span {
  background: linear-gradient(100deg, #f0bf8f 0%, #d38b55 45%, #b8693a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .section--cream [data-split] em .w > span,
.js .section--paper [data-split] em .w > span {
  background-image: linear-gradient(100deg, #b06a35 0%, #8e4f27 100%);
}

.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js .reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: scale(1.08); }

[data-parallax] { will-change: translate; }
/* parallax photos get extra height so the shift never shows an edge */
.reveal-img img[data-parallax], .food-card__media img[data-parallax] { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__text > p { color: var(--text-dark-dim); font-size: 1.05rem; max-width: 540px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; margin: 2rem 0 2.2rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; font-weight: 500; line-height: 1.4; }
.checks .lucide { color: var(--copper); margin-top: .1em; width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.checks--light li { color: var(--text); }
.checks--light .lucide { color: var(--copper-l); }

.about__media { position: relative; aspect-ratio: 1 / 1.05; }
.about__img { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(30, 20, 10, .55); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { inset: 0 0 18% 14%; }
.about__img--small { left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1.1; border: 6px solid var(--cream); }

.badge-rotate { position: absolute; right: -22px; bottom: 8%; width: 138px; height: 138px; display: grid; place-items: center; z-index: 3; }
.badge-rotate svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-rotate::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); }
.badge-rotate text { font-family: var(--label); font-size: 13.4px; letter-spacing: .26em; fill: var(--copper-l); }
.badge-rotate span { position: relative; font-family: var(--serif); font-variant-numeric: lining-nums; font-weight: 600; font-size: 1.6rem; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(72px, 9vw, 120px);
}
.stat { padding: 1.8rem 1.2rem 0; border-top: 1px solid var(--line-light); border-right: 1px solid var(--line-light); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: clamp(2.2rem, 3.4vw, 3.1rem); font-weight: 600; line-height: 1; margin-bottom: .5rem; color: var(--text-dark); white-space: nowrap; }
.stat__value small { font-size: .45em; margin-left: .2em; color: var(--copper-d); font-weight: 600; }
.stat__label { font-size: .82rem; color: var(--text-dark-dim); margin: 0; }

/* ---------- Section heads (sectores) ---------- */
/* clip (not hidden) so position: sticky keeps working inside */
.sector { overflow: hidden; overflow: clip; }
.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.sec-head__num {
  position: absolute;
  top: -.42em;
  right: -.04em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 167, 116, .3);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section--cream .sec-head__num, .section--paper .sec-head__num { -webkit-text-stroke-color: rgba(142, 79, 39, .2); }
.sec-head__titles, .sec-head__lead { position: relative; z-index: 1; }
.sec-head .h2 { margin-bottom: 0; }
.sec-head__lead { font-size: 1.05rem; color: var(--text-dim); max-width: 470px; margin: 0; }
.section--cream .sec-head__lead, .section--paper .sec-head__lead { color: var(--text-dark-dim); }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- 01 Turismo ---------- */
.tour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.tour__media { position: sticky; top: 110px; aspect-ratio: 1 / 1.12; }
.tour__img { position: absolute; overflow: hidden; border-radius: var(--radius-lg); }
.tour__img img { width: 100%; height: 100%; object-fit: cover; }
.tour__img--a { inset: 0 16% 14% 0; }
.tour__img--b { right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 6px solid var(--char); }
.tour__img figcaption {
  position: absolute;
  left: 1.2rem; top: 1.2rem;
  font-family: var(--label);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  border-radius: 100px;
  background: rgba(14, 12, 10, .6);
  backdrop-filter: blur(6px);
}

.exp-list { counter-reset: exp; }
.exp {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.exp:first-child { border-top: 1px solid var(--line-dark); }
.exp::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--copper-l);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.exp:hover::after { transform: scaleX(1); }
.exp__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--copper-l);
  transition: background .5s var(--ease), color .5s, transform .6s var(--ease);
}
.exp__icon .lucide { width: 24px; height: 24px; stroke-width: 1.4; }
.exp:hover .exp__icon { background: var(--copper); color: #fff; transform: rotate(-8deg) scale(1.06); border-color: var(--copper); }
.exp h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; margin-bottom: .35rem; transition: color .4s; }
.exp:hover h3 { color: var(--copper-l); }
.exp p { color: var(--text-dim); margin: 0; font-size: .96rem; }
.exp-cta { padding-top: 2.2rem; }

/* ---------- 02 Empresas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  padding: 2.2rem 2rem 2.1rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1.1s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 122, 69, .14), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
}
.card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--copper-grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(60, 35, 15, .35); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  position: relative;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--copper-l);
  margin-bottom: 1.6rem;
  transition: transform .6s var(--ease);
}
.card__icon .lucide { width: 26px; height: 26px; stroke-width: 1.4; }
.card:hover .card__icon { transform: translateY(-4px) rotate(-6deg); }
.card h3 { position: relative; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin-bottom: .6rem; }
.card p { position: relative; color: var(--text-dark-dim); font-size: .95rem; margin: 0; }

.band { position: relative; height: clamp(420px, 70vh, 640px); margin: clamp(88px, 11vw, 150px) 0; overflow: hidden; display: flex; align-items: center; }
.band > img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; object-position: center 80%; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 12, 10, .88) 0%, rgba(14, 12, 10, .55) 55%, rgba(14, 12, 10, .2) 100%); }
.band__quote { position: relative; margin: 0 auto; }
.band__quote p { max-width: 820px; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 500; line-height: 1.15; color: #fff; margin: 0; }
.band__quote em { font-style: italic; background: linear-gradient(100deg, #f0bf8f 0%, #d38b55 45%, #b8693a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.steps-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem 5rem; }
.steps-head .h3 { max-width: 360px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 3rem; }
.step { position: relative; padding-left: 0; }
.step__dot {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(142, 79, 39, .4);
  font-family: var(--label);
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--copper-d);
  margin-bottom: 1.1rem;
  background: var(--cream);
  position: relative;
  transition: background .5s, color .5s;
}
.step:hover .step__dot { background: var(--ink); color: var(--copper-l); }
.step h4 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .4rem; }
.step p { color: var(--text-dark-dim); font-size: .95rem; margin: 0; }
.steps-cta { grid-column: 2; }

/* ---------- 03 Logística minera ---------- */
.topo {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23c47a45' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M-50 120 C 80 60 160 180 300 110 S 520 40 650 130'/%3E%3Cpath d='M-50 160 C 90 100 170 220 300 150 S 520 80 650 170'/%3E%3Cpath d='M-50 200 C 100 140 180 260 300 190 S 520 120 650 210'/%3E%3Cpath d='M-50 300 C 60 250 200 360 320 290 S 540 230 650 310'/%3E%3Cpath d='M-50 340 C 70 290 210 400 320 330 S 540 270 650 350'/%3E%3Cpath d='M-50 440 C 120 390 220 500 340 430 S 520 380 650 450'/%3E%3Cpath d='M-50 480 C 130 430 230 540 340 470 S 520 420 650 490'/%3E%3Cpath d='M-50 520 C 140 470 240 580 340 510 S 520 460 650 530'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.mining .container { position: relative; }

.svc-tabs { display: flex; flex-wrap: wrap; gap: .7rem; margin: -2rem 0 clamp(56px, 7vw, 90px); }
.svc-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.3rem;
  border-radius: 100px;
  border: 1px solid var(--line-dark);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, .02);
  transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.svc-tabs a .lucide { color: var(--copper-l); transition: color .4s; }
.svc-tabs a:hover { background: var(--copper); border-color: var(--copper); color: #fff; transform: translateY(-2px); }
.svc-tabs a:hover .lucide { color: #fff; }

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: 90px;
}
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 5 / 4; }
.feature__tag {
  position: absolute;
  top: -22px; left: -22px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 14px 30px -10px rgba(196, 122, 69, .7);
}
.feature--rev .feature__tag { left: auto; right: -22px; }
.feature__body > p { color: var(--text-dim); font-size: 1.02rem; max-width: 520px; }

.fader { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease-io), transform 7s linear; }
.fader img.is-active { opacity: 1; }
.js .fader.is-in img.is-active { transform: scale(1.1); }

.feature__img { position: absolute; inset: 0 12% 12% 0; border-radius: var(--radius-lg); overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__img--inset { inset: auto 0 0 auto; width: 52%; aspect-ratio: 16 / 10; border: 6px solid var(--ink); }

.specs { display: grid; gap: .2rem; margin-top: 1.8rem; }
.specs li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line-dark);
  font-size: .97rem;
  color: var(--text);
}
.specs li:last-child { border-bottom: 0; }
.specs .lucide { width: 22px; height: 22px; color: var(--copper-l); stroke-width: 1.5; }
.specs strong { color: #fff; font-weight: 600; }

.big-figure { display: flex; align-items: baseline; gap: .4rem; margin: 1.6rem 0 .2rem; font-family: var(--serif); font-variant-numeric: lining-nums; line-height: .9; }
.big-figure span { font-size: clamp(4.5rem, 9vw, 7.5rem); font-weight: 600; background: var(--copper-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
.big-figure small { font-size: 2rem; color: var(--copper-l); font-weight: 600; }
.big-figure em { font-family: var(--label); font-style: normal; font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--text-dim); margin-left: .6rem; }

/* 4x4 panel */
.truck-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(196, 122, 69, .28), transparent 55%),
    linear-gradient(160deg, #221c17 0%, #14110e 100%);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}
.truck-panel__big {
  position: absolute;
  top: -.08em; left: .1em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 167, 116, .35);
}
.truck { position: relative; width: 100%; height: auto; margin-bottom: .6rem; overflow: visible; }
.truck .draw, .truck__mtn, .truck__road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.truck .draw { stroke: var(--copper-l); stroke-width: 2.4; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.6s var(--ease-io); }
.truck__mtn { stroke: rgba(227, 167, 116, .22); stroke-width: 1.4; }
.truck__road { stroke: rgba(227, 167, 116, .5); stroke-width: 2; stroke-dasharray: 18 14; }
.truck-panel.is-in .draw { stroke-dashoffset: 0; }
.truck-panel.is-in .truck__road { animation: road 1s linear infinite; }
.truck-panel.is-in .truck__wheel { animation: wheel 1.2s linear infinite; }
.truck-panel.is-in .truck__body { animation: bump 1.6s ease-in-out infinite; }
@keyframes road { to { stroke-dashoffset: 32; } }
@keyframes wheel { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes bump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
.truck-panel__note { position: relative; margin: 0; font-family: var(--label); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-dim); }

/* Infra grid */
.infra { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-dark); }
.infra__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.infra__item { display: flex; flex-direction: column; gap: .35rem; padding: 1.8rem 1.3rem; background: var(--ink); transition: background .5s; }
.infra__item:hover { background: var(--char-2); }
.infra__item .lucide { width: 28px; height: 28px; color: var(--copper-l); stroke-width: 1.3; margin-bottom: .9rem; transition: transform .6s var(--ease); }
.infra__item:hover .lucide { transform: translateY(-4px) scale(1.1); }
.infra__item strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.infra__item span { font-size: .82rem; color: var(--text-dim); }

/* Cluster */
.cluster { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(32px, 4vw, 48px); }
.cluster__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1500 / 656; }
.cluster__img img { width: 100%; height: 100%; object-fit: cover; }
.cluster__body > p { color: var(--text-dim); }
.cluster .checks { grid-template-columns: 1fr; margin: 1.6rem 0 2.2rem; }

/* ---------- 04 Gastronomía ---------- */
.food__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.food-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1.1s var(--ease);
}
.food-card:hover { box-shadow: 0 40px 80px -40px rgba(30, 20, 10, .7); }
.food-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.food-card__media img { width: 100%; height: 115%; object-fit: cover; transition: scale 1.2s var(--ease); }
.food-card:hover .food-card__media img { scale: 1.06; }
.food-card__body { position: relative; padding: 2.4rem 2.2rem 2.4rem; flex: 1; display: flex; flex-direction: column; }
.food-card__icon {
  position: absolute;
  top: -32px; right: 2rem;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(196, 122, 69, .8);
  transition: transform .7s var(--ease);
}
.food-card__icon .lucide { width: 28px; height: 28px; stroke-width: 1.4; }
.food-card:hover .food-card__icon { transform: rotate(-12deg) scale(1.08); }
.food-card h3 { font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; margin-bottom: .8rem; }
.food-card p { color: var(--text-dim); }
.food-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; margin: .6rem 0 2rem; }
.food-card li { position: relative; padding-left: 1.2rem; font-size: .92rem; }
.food-card li::before { content: "★"; position: absolute; left: 0; top: .05em; font-size: .62rem; color: var(--copper-l); }
.food-card .link-arrow { margin-top: auto; align-self: flex-start; }

.pool { background: #0b3a47; }
.pool__water { position: absolute; inset: 0; width: 100%; height: 100%; }
.pool::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(255, 236, 200, .28), transparent 70%),
    linear-gradient(0deg, rgba(14, 12, 10, .45), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 72px);
}

/* ---------- Galería ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 260px);
  grid-auto-flow: dense;
  gap: 14px;
}
.g-item { position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--char-2); }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.9); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 12, 10, .75), transparent 50%); opacity: 0; transition: opacity .6s; }
.g-item span {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); filter: saturate(1.05); }
.g-item:hover::after, .g-item:hover span, .g-item:focus-visible::after, .g-item:focus-visible span { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 24px;
  background: rgba(10, 8, 7, .94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lightbox__fig { display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.lightbox__fig img { max-height: 80vh; max-width: 100%; border-radius: 10px; object-fit: contain; transform: scale(.96); transition: transform .6s var(--ease), opacity .3s; }
.lightbox.is-open .lightbox__fig img { transform: none; }
.lightbox__fig figcaption { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }
.lightbox__nav, .lightbox__close {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background .3s, border-color .3s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--copper); border-color: var(--copper); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ---------- Ubicación ---------- */
.location__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.location__text > p { color: var(--text-dim); max-width: 460px; }
.loc-list { display: grid; gap: 0; margin-top: 2rem; }
.loc-list li { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.loc-list .lucide { width: 22px; height: 22px; color: var(--copper-l); }
.loc-list span { display: flex; flex-direction: column; font-size: .85rem; color: var(--text-dim); line-height: 1.4; }
.loc-list strong { font-size: 1rem; color: var(--text); font-weight: 500; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; border: 1px solid var(--line-dark); background: var(--char-2); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__info > p { color: var(--text-dark-dim); max-width: 460px; }
.contact__cards { display: grid; gap: .8rem; margin-top: 2.2rem; }
.c-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  transition: translate .5s var(--ease), transform 1.1s var(--ease), border-color .4s, box-shadow .5s, opacity 1.1s var(--ease);
}
.c-card:hover { translate: 6px 0; border-color: rgba(196, 122, 69, .5); box-shadow: 0 20px 40px -24px rgba(60, 35, 15, .4); }
.c-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--copper-l); flex: none; }
.c-card__icon svg { width: 20px; height: 20px; }
.c-card > span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.c-card small { font-family: var(--label); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--copper-d); }
.c-card strong { font-weight: 500; font-size: 1rem; overflow-wrap: anywhere; }
.c-card--person { padding-block: .95rem; }
.c-card--person strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.c-card__sub { font-size: .9rem; color: var(--text-dark-dim); }
.c-card__avatar { position: relative; width: 60px; height: 60px; flex: none; }
.c-card__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--copper); }
.c-card__badge { position: absolute; right: -5px; bottom: -3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 0 0 2px var(--paper); }
.c-card__badge svg { width: 13px; height: 13px; }

.form {
  background: var(--ink);
  color: var(--text);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 50px 100px -50px rgba(30, 20, 10, .7);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row--3 { grid-template-columns: 1fr 1fr .7fr; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field > span, .field legend { font-size: .78rem; font-weight: 500; letter-spacing: .04em; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239, 232, 222, .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: rgba(196, 122, 69, .06); box-shadow: 0 0 0 4px rgba(196, 122, 69, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e06c5a; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.field--chips { border: 0; padding: 0; margin: 0; }
.field--chips legend { margin-bottom: .55rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .87rem;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease);
}
.chips .lucide { color: var(--copper-l); transition: color .35s; }
.chips label:hover span { border-color: var(--copper); }
.chips input:checked + span { background: var(--copper); border-color: var(--copper); color: #fff; transform: translateY(-2px); }
.chips input:checked + span .lucide { color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--copper-l); outline-offset: 2px; }
.field--chips.is-invalid .chips span { border-color: #e06c5a; }

.form__error { min-height: 1.2em; margin: 0; font-size: .85rem; color: #f08a78; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form .btn--line { border-color: rgba(255, 255, 255, .2); color: var(--text); }
.form .btn--line::after { background: var(--text); }
.form .btn--line:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); padding: clamp(72px, 9vw, 110px) 0 28px; overflow: hidden; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; position: relative; z-index: 1; }
.footer__brand { display: flex; gap: 1.4rem; align-items: center; }
.footer__logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(227, 167, 116, .3); }
.footer__name { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; margin-bottom: .4rem; }
.footer__tag { color: var(--text-dim); margin: 0; max-width: 300px; font-size: .95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__title { font-family: var(--label); font-weight: 500; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--copper-l); margin-bottom: 1.1rem; }
.footer__cols a, .footer__cols span { display: block; color: var(--text-dim); font-size: .92rem; padding: .28rem 0; transition: color .3s, transform .4s var(--ease); overflow-wrap: anywhere; }
.footer__cols a:hover { color: #fff; transform: translateX(4px); }
.footer__word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.5rem, 15.5vw, 15rem);
  line-height: .9;
  text-align: center;
  letter-spacing: .02em;
  margin: clamp(48px, 7vw, 90px) 0 clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(196, 122, 69, .35), rgba(196, 122, 69, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--text-dim); }
.footer__bottom p { margin: 0; }
.footer__top-link { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; }
.footer__top-link:hover { color: var(--copper-l); }

/* ---------- WhatsApp float + toast ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55);
  transform: scale(0);
  transition: transform .6s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
/* en Contacto ya está la tarjeta de WhatsApp: el botón flotante se esconde para no tapar el formulario */
.wa-float.is-visible.is-tucked { transform: scale(0); pointer-events: none; }
.wa-float svg { width: 28px; height: 28px; position: relative; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 160;
  max-width: calc(100% - 32px);
  padding: .95rem 1.4rem;
  border-radius: 12px;
  background: var(--char-3);
  border: 1px solid var(--line-dark);
  color: var(--text);
  font-size: .92rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  transform: translate(-50%, calc(100% + 48px));
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 1.3rem; }
  .nav__links a { font-size: .84rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding-bottom: 1.6rem; }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line-light); }
  .infra__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__sectors { grid-template-columns: repeat(2, 1fr); }
  .sector-tile:nth-child(1) { border-radius: var(--radius) 0 0 0; }
  .sector-tile:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .sector-tile:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .sector-tile:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
  .about__grid, .tour__grid, .location__grid, .contact__grid, .cluster { grid-template-columns: 1fr; }
  .about__media { max-width: 640px; width: 100%; }
  .tour__media { position: relative; top: 0; max-width: 640px; width: 100%; }
  .sec-head { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media { max-width: 680px; width: 100%; }
  .steps-wrap { grid-template-columns: 1fr; }
  .steps-cta { grid-column: 1; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 72px; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__text strong { font-size: 1.15rem; }
  .hero { padding-bottom: 20px; }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .22em; }
  .eyebrow, .kicker { letter-spacing: .2em; gap: .7rem; }
  .eyebrow::before, .kicker::before { width: 24px; }
  .hero__scroll { display: none; }
  .sector-tile { padding: 1rem .9rem; column-gap: .6rem; }
  .sector-tile__icon { width: 22px; height: 22px; }
  .sector-tile__title { font-size: 1.12rem; }
  .sector-tile__desc { display: none; }
  .sector-tile__arrow { display: none; }
  .sector-tile__num { display: none; }
  .checks { grid-template-columns: 1fr; }
  .sec-head__num { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child, .stat:nth-child(4) { padding: 1.4rem 0 1.4rem 1rem; border-right: 0; border-top: 1px solid var(--line-light); }
  .stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line-light); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .badge-rotate { width: 104px; height: 104px; right: -6px; }
  .badge-rotate text { font-size: 13px; }
  .badge-rotate span { font-size: 1.25rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .feature__tag { width: 52px; height: 52px; top: -16px; left: -6px; font-size: 1.5rem; }
  .feature--rev .feature__tag { right: -6px; }
  .infra__grid { grid-template-columns: repeat(2, 1fr); }
  .food__grid { grid-template-columns: 1fr; }
  .food-card ul { grid-template-columns: 1fr; }
  .food-card__body { padding: 2.2rem 1.5rem 2rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .g-item span { opacity: 1; transform: none; font-size: 1rem; }
  .g-item::after { opacity: 1; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 24px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span, .hero__eyebrow, .hero__lead, .hero__actions, .sector-tile { animation-delay: 0s !important; }
}
