/* =============================================================
   VERGARA EMERALD — Colombian Fine Gems
   Archetype: Editorial Dark Warm (dark luxury / jewelry)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* brand-established palette (from existing Vergara Emerald catalog) */
  --noche:       #060d09;   /* base background — near-black, green-tinted, never pure #000 */
  --selva:       #0d1f16;   /* alt section background */
  --bg-3:        #142c1f;   /* card surface */
  --bg-4:        #1a3527;   /* card surface hover / raised */
  --esmeralda:   #1d9e75;   /* primary accent — emerald */
  --esmeralda-2: #167a5c;
  --esmeralda-deep: #12694f;
  --oro:         #d4af6a;   /* gold — secondary accent */
  --oro-2:       #b8944f;
  --oro-claro:   #f0e6cc;
  --marfil:      #f2ece0;   /* text on dark — never pure white */
  --marfil-2:    #d9d0bd;
  --marfil-mute: #93917f;   /* metadata / muted text */
  --line:        rgba(242, 236, 224, 0.14);
  --line-strong: rgba(242, 236, 224, 0.26);

  --font-display: 'Cormorant Garamond', serif;
  --font-caps:    'Cinzel', serif;
  --font-sans:    'Inter', sans-serif;

  --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);

  --nav-h: 84px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--noche);
  color: var(--marfil);
  -webkit-font-smoothing: antialiased;
  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; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--esmeralda); color: var(--noche); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--marfil); color: var(--noche);
  z-index: 9999; border-radius: 6px; font-weight: 600; font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 720px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3rem; } }

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

.eyebrow {
  font-family: var(--font-caps);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--oro);
}

.section-pad { padding-block: clamp(4rem, 9vw, 8rem); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-family: var(--font-display); font-weight: 500; }
h2, h3 { font-family: var(--font-display); font-weight: 500; }
em, i { font-style: italic; color: var(--oro-claro); }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--marfil-2);
  font-weight: 300;
  max-width: 46ch;
}
.meta {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marfil-mute);
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--esmeralda);
  color: var(--noche);
  border: 1px solid var(--esmeralda);
}
.btn-primary:hover { background: var(--oro); border-color: var(--oro); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(212,175,106,.45); }
.btn-ghost {
  background: transparent;
  color: var(--marfil);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--oro); color: var(--oro-claro); transform: translateY(-2px); }
.btn-whatsapp {
  background: #1f7a52;
  color: var(--marfil);
  border: 1px solid #1f7a52;
}
.btn-whatsapp:hover { background: var(--esmeralda); border-color: var(--esmeralda); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: .7rem 1.3rem; font-size: .72rem; }

/* Nav WhatsApp — icon-only, with a hover pulse to draw the click */
.btn-whatsapp-icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(155deg, #2fd66b, #1f7a52);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px -8px rgba(31,122,82,.6), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .5s var(--ease-bounce), box-shadow .5s var(--ease-out);
}
.btn-whatsapp-icon svg {
  width: 20px; height: 20px; color: #fff;
  transition: transform .5s var(--ease-bounce);
}
.btn-whatsapp-icon::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid rgba(47,214,107,.6);
  opacity: 0; pointer-events: none;
}
.btn-whatsapp-icon:hover,
.btn-whatsapp-icon:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 30px -8px rgba(47,214,107,.7), 0 0 0 7px rgba(47,214,107,.14);
}
.btn-whatsapp-icon:hover svg,
.btn-whatsapp-icon:focus-visible svg { transform: rotate(-10deg) scale(1.08); }
.btn-whatsapp-icon:hover::before,
.btn-whatsapp-icon:focus-visible::before { animation: wa-pulse-ring 1.15s var(--ease-out) infinite; }
@keyframes wa-pulse-ring {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp-icon:hover::before,
  .btn-whatsapp-icon:focus-visible::before { animation: none; opacity: .45; }
}

/* --- Nav --- */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(6,13,9,.7), transparent);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), height .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: rgba(6, 13, 9, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-nav.is-solid { background: rgba(6, 13, 9, 0.98); }
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .8rem; }
.nav-logo img { height: 38px; width: auto; transition: transform .5s var(--ease-out); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; gap: .2rem; }
.nav-logo-main {
  font-family: var(--font-caps); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .2em; color: var(--oro);
  transition: color .4s var(--ease-out), letter-spacing .4s var(--ease-out);
}
.nav-logo-sub {
  font-family: var(--font-display); font-style: italic; font-size: .7rem;
  letter-spacing: .36em; text-transform: uppercase; color: var(--esmeralda);
}
.nav-logo:hover .nav-logo-main { color: var(--oro-claro); letter-spacing: .24em; }
.nav-logo:hover img { transform: rotate(-4deg) scale(1.06); }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--marfil-2); position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--oro); transition: right .4s var(--ease-out);
}
.nav-links a:hover { color: var(--marfil); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--oro-claro); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-burger {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 2px;
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

.nav-mobile {
  position: fixed; inset: 0; z-index: 199;
  background: var(--noche);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-mobile a { font-family: var(--font-display); font-size: 1.8rem; color: var(--marfil); }
.nav-mobile a.is-active { color: var(--oro); }

/* --- Cards / product --- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.product-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out),
              opacity 1.2s var(--ease-soft), filter 1.2s var(--ease-soft);
  will-change: transform;
}
.product-card:hover { border-color: var(--oro); box-shadow: 0 30px 70px -24px rgba(0,0,0,.7); }

/* Gallery spotlight: examining one piece quietly settles its neighbors back — gentle, not a snap */
.catalog-grid:hover .product-card { opacity: .78; filter: saturate(.85) brightness(.94); }
.catalog-grid .product-card:hover { opacity: 1; filter: none; z-index: 2; transition-duration: .7s; }

.product-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-4);
}
.product-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.product-figure img.img-b { opacity: 0; }
.product-card:hover .product-figure img.img-a { opacity: 0; transform: scale(1.045); }
.product-card:hover .product-figure img.img-b { opacity: 1; transform: scale(1.08); }
.product-figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at var(--mx, 50%) var(--my, 30%), rgba(212,175,106,.16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none;
}
.product-card:hover .product-figure::after { opacity: 1; }

/* Glint — a thin line of light sweeps across the stone, as if catching it */
.product-figure::before, .showcase-figure::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%);
  transform: translateX(-140%);
  transition: transform 1.1s var(--ease-out);
}
.product-card:hover .product-figure::before,
.showcase-card-inner:hover .showcase-figure::before { transform: translateX(140%); }

.product-tag {
  position: absolute; top: .9rem; left: .9rem;
  font-family: var(--font-sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--noche); background: var(--oro);
  padding: .35rem .65rem; border-radius: 2px;
}
.product-body { padding: 1.4rem 1.4rem 1.6rem; }
.product-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--marfil); margin-bottom: .15rem; }
.product-cut { font-size: .82rem; color: var(--oro-claro); font-style: italic; margin-bottom: .6rem; }
.product-material { font-size: .78rem; letter-spacing: .04em; color: var(--marfil-mute); margin-bottom: .9rem; }
.product-blurb { font-size: .92rem; color: var(--marfil-2); line-height: 1.55; margin-bottom: 1.1rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-foot--single { justify-content: flex-end; }
.product-price { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .04em; color: var(--marfil-mute); }

/* Multi-price sets — full set vs. piece-by-piece */
.product-pricing { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price-line--set .price-label { color: var(--oro-claro); }
.price-line--set .price-value { color: var(--oro); }
.price-label { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .03em; color: var(--marfil-mute); }
.price-label em { font-style: normal; color: var(--marfil-2); }
.price-value { font-family: var(--font-sans); font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--marfil-2); white-space: nowrap; }

/* --- Form --- */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.3rem; }
.field label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--marfil-mute); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: .95rem; color: var(--marfil);
  background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--oro); background: var(--bg-4); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--marfil-2); }
.radio-opt input { accent-color: var(--esmeralda); width: 16px; height: 16px; }
.form-note { font-size: .78rem; color: var(--marfil-mute); margin-top: .8rem; }
.form-status { font-size: .85rem; margin-top: 1rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { color: var(--esmeralda); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 500;
  background: var(--noche);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease-out), visibility .8s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark { font-family: var(--font-caps); font-size: 1rem; letter-spacing: .5em; color: var(--oro); opacity: 0; animation: splashFade 1.4s var(--ease-out) forwards .15s; }
@keyframes splashFade { to { opacity: 1; } }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* --- Hero (index) --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,9,.55) 0%, rgba(6,13,9,.25) 32%, rgba(6,13,9,.55) 68%, rgba(6,13,9,.96) 100%),
    linear-gradient(90deg, rgba(6,13,9,.75) 0%, transparent 45%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(29,158,117,.35), transparent 68%),
    radial-gradient(32% 28% at 82% 78%, rgba(212,175,106,.22), transparent 65%);
  filter: blur(70px);
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(6deg); }
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--esmeralda); box-shadow: 0 0 12px 2px rgba(29,158,117,.7); }
.hero-title { max-width: 16ch; margin-bottom: 1.3rem; color: var(--marfil); text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero-sub { margin-bottom: 2.2rem; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Trust strip --- */
.trust-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--selva);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem;
  padding-block: 2.2rem;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; gap: .3rem; text-align: center; }
.trust-item .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--oro); }
.trust-item .label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marfil-mute); }

/* --- Section heading --- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1rem; display: block; }
.section-head.center { margin-inline: auto; text-align: center; }

/* --- Showcase (pinned horizontal — signature effect) --- */
.showcase { position: relative; background: var(--noche); overflow: hidden; }
.showcase-head { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: 2.5rem; }

/* Mobile/tablet: a normal swipeable strip — short, no scroll-jacking */
.showcase-pin { height: auto; display: block; overflow: visible; }
.showcase-track {
  display: flex; gap: 1.6rem; will-change: transform;
  padding-inline: 1.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scroll-padding-inline: 1.5rem;
  padding-bottom: 1.4rem;
  scrollbar-width: none;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-card { scroll-snap-align: start; }

/* Desktop: pinned horizontal scroll (signature effect) — driven by main.js */
@media (min-width: 900px) {
  .showcase-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .showcase-track { overflow-x: visible; scroll-snap-type: none; padding-bottom: 0; }
}
@media (min-width: 720px) { .showcase-track { padding-inline: 2.5rem; } }
.showcase-card {
  flex: 0 0 auto; width: min(78vw, 340px);
  perspective: 1000px;
  transition: opacity 1.2s var(--ease-soft), filter 1.2s var(--ease-soft);
}
.showcase-card-inner {
  position: relative;
  border-radius: 3px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d;
}
.showcase-card-inner:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border-color: var(--oro); }
.showcase-figure { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.showcase-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.showcase-card-inner:hover .showcase-figure img { transform: scale(1.06); }

/* Spotlight: hovering the strip gently settles neighbors back — soft, not a snap */
.showcase-track:hover .showcase-card { opacity: .78; filter: saturate(.85) brightness(.94); }
.showcase-track .showcase-card:hover { opacity: 1; filter: none; transition-duration: .7s; }
.showcase-caption { padding: 1.1rem 1.3rem 1.3rem; }
.showcase-caption .name { font-family: var(--font-display); font-size: 1.3rem; }
.showcase-caption .cut { font-size: .78rem; font-style: italic; color: var(--oro-claro); }
.showcase-foot { padding-top: 2.5rem; text-align: center; }

/* --- Pillars --- */
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--noche); padding: 2.4rem 2rem; }
.pillar .index { font-family: var(--font-caps); font-size: .72rem; letter-spacing: .2em; color: var(--esmeralda); margin-bottom: 1.2rem; display: block; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.pillar p { font-size: .92rem; color: var(--marfil-mute); line-height: 1.6; }

/* --- Testimonials --- */
.testimonials { background: var(--selva); }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 960px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { background: var(--noche); border: 1px solid var(--line); border-radius: 3px; padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.testi-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--oro); line-height: 1; }
.testi-quote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--marfil-2); line-height: 1.5; flex: 1; }
.testi-who { display: flex; flex-direction: column; gap: .1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.testi-name { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--oro-claro); }
.testi-loc { font-size: .78rem; color: var(--marfil-mute); }
.testi-disclaimer { text-align: center; font-size: .74rem; color: var(--marfil-mute); margin-top: 2rem; }

/* --- CTA final --- */
.cta-final { position: relative; overflow: hidden; background: var(--selva); }
.cta-final-mesh {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(29,158,117,.28), transparent 70%),
    radial-gradient(36% 36% at 78% 70%, rgba(212,175,106,.2), transparent 70%);
  filter: blur(90px);
  animation: meshDrift 26s ease-in-out infinite reverse;
}
.cta-final-inner { position: relative; z-index: 1; text-align: center; max-width: 52ch; margin-inline: auto; }
.cta-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); background: var(--noche); padding-block: 3.5rem 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; margin-bottom: 2.6rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand-mark { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand-mark img { height: 30px; }
.footer-brand-mark span { font-family: var(--font-caps); font-size: .85rem; letter-spacing: .2em; }
.footer-tag { font-size: .85rem; color: var(--marfil-mute); max-width: 32ch; }
.footer-col h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col p { font-size: .88rem; color: var(--marfil-2); }
.footer-col a:hover { color: var(--oro-claro); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Mobile: Navigate + Contact side by side instead of stacked — fills the width, cuts empty black space */
@media (max-width: 719px) {
  .site-footer { padding-block: 2.6rem 1.6rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.2rem; row-gap: 1.8rem;
    margin-bottom: 1.8rem;
  }
  .footer-grid > div:not(.footer-col) { grid-column: 1 / -1; }
  .footer-col h4 { margin-bottom: .7rem; }
  .footer-col ul { gap: .5rem; }
  .footer-bottom { padding-top: 1.3rem; }
}
.footer-bottom p { font-size: .76rem; color: var(--marfil-mute); }
.footer-social { display: flex; gap: 1.2rem; }

/* --- Masthead (inner pages) --- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--selva); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marfil-mute); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--oro-claro); }

/* --- Masthead — image variant (origin storytelling) --- */
.page-hero--image {
  position: relative; overflow: hidden; border-bottom-color: var(--line-strong);
  min-height: clamp(460px, 66vh, 680px);
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.page-hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,9,.32) 0%, rgba(6,13,9,.18) 30%, rgba(6,13,9,.8) 80%, var(--noche) 100%),
    linear-gradient(100deg, rgba(6,13,9,.78) 0%, rgba(6,13,9,.2) 48%, transparent 75%),
    linear-gradient(200deg, rgba(15,36,25,.5) 0%, transparent 55%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero--image .breadcrumb { color: var(--marfil-2); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.page-hero--image .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.page-hero--image h1 { text-shadow: 0 6px 30px rgba(0,0,0,.65); }
.page-hero--image .lede { text-shadow: 0 3px 18px rgba(0,0,0,.55); }
.page-hero-legend {
  margin-top: 1.7rem; padding-top: 1.4rem; max-width: 48ch;
  border-top: 1px solid rgba(212,175,106,.3);
  font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.6;
  color: var(--marfil-2); text-shadow: 0 3px 18px rgba(0,0,0,.6);
}
.page-hero-legend em { color: var(--oro); font-style: italic; }

/* Mobile: show the full photo uncropped as a band up top (guarantees the whole
   scene is visible — no side gets cut off), text flows below on solid ground
   instead of overlaying the image. Desktop keeps the full-bleed overlay as-is. */
@media (max-width: 719px) {
  .page-hero--image {
    display: block; min-height: 0; padding-bottom: 0;
    padding-top: var(--nav-h);
  }
  .page-hero-bg {
    position: relative; inset: auto; z-index: auto;
    width: 100%; aspect-ratio: var(--hero-ratio, 1080 / 564);
  }
  .page-hero-bg img { object-fit: cover; object-position: 50% 50%; }
  .page-hero-tint { display: none; }
  .page-hero-inner {
    position: static;
    padding-block: clamp(2rem, 7vw, 2.6rem) clamp(2.6rem, 8vw, 3.4rem);
  }
  .page-hero--image .breadcrumb,
  .page-hero--image .eyebrow,
  .page-hero--image h1,
  .page-hero--image .lede,
  .page-hero-legend { text-shadow: none; }
}

/* --- Collection page --- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.6rem; }
.filter-tab {
  padding: .6rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--marfil-2);
  transition: all .3s var(--ease-out);
}
.filter-tab:hover { border-color: var(--oro); color: var(--oro-claro); }
.filter-tab.is-active { background: var(--esmeralda); border-color: var(--esmeralda); color: var(--noche); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 720px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
@media (min-width: 1280px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.catalog-grid .product-card[hidden] { display: none; }

/* Compact card content on narrow 2-column mobile — same info, less room */
@media (max-width: 719px) {
  .product-tag { top: .55rem; left: .55rem; padding: .28rem .55rem; font-size: .56rem; }
  .product-body { padding: .9rem .9rem 1.1rem; }
  .product-name { font-size: 1.08rem; margin-bottom: .1rem; }
  .product-cut { font-size: .72rem; margin-bottom: .35rem; }
  .product-material { font-size: .66rem; margin-bottom: .55rem; }
  .product-blurb {
    font-size: .78rem; line-height: 1.4; margin-bottom: .75rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .product-foot { padding-top: .65rem; gap: .5rem; flex-wrap: wrap; }
  .product-price { font-size: .68rem; }
  .catalog-grid .btn.btn-ghost.btn-sm { padding: .5rem .85rem; font-size: .62rem; }
  .product-pricing { gap: .3rem; margin-bottom: .8rem; padding-bottom: .8rem; }
  .price-label, .price-value { font-size: .66rem; }
  .price-label em { display: block; }
}

/* --- About page --- */
.about-story { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .about-story { grid-template-columns: 1fr 1fr; } }
.about-figure { aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--marfil-2); margin-bottom: 1.2rem; line-height: 1.7; }
.about-copy p:last-child { margin-bottom: 0; }

.process { counter-reset: step; }
.process-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 960px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: var(--noche); padding: 2.2rem 1.8rem; counter-increment: step; position: relative; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2rem; color: var(--esmeralda); display: block; margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.process-step p { font-size: .86rem; color: var(--marfil-mute); line-height: 1.55; }

/* --- Contact page --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-options { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .contact-options { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-options { grid-template-columns: 1fr; } }
@media (min-width: 1180px) { .contact-options { grid-template-columns: 1fr 1fr; } }
.contact-option {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden;
  transition: border-color .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.contact-option::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, rgba(212,175,106,.1), transparent 60%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.contact-option:hover {
  border-color: var(--oro); transform: translateY(-3px);
  box-shadow: 0 22px 46px -18px rgba(0,0,0,.6);
}
.contact-option:hover::after { opacity: 1; }
.contact-option .ico {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; background: var(--selva);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--esmeralda);
  border: 1px solid transparent;
  transition: border-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.contact-option:hover .ico { border-color: rgba(212,175,106,.5); color: var(--oro); box-shadow: 0 0 0 5px rgba(212,175,106,.08); }
.contact-option .txt { position: relative; z-index: 1; }
.contact-option .txt strong { display: block; font-size: .92rem; color: var(--marfil); margin-bottom: .15rem; }
.contact-option .txt span { font-size: .82rem; color: var(--marfil-mute); }

/* --- Form card (contact) --- */
.card--form {
  position: relative; overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(165deg, var(--bg-3) 0%, var(--bg-4) 130%);
}
.card--form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--oro) 25%, var(--esmeralda) 60%, transparent);
}
.card--form::after {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 60%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(29,158,117,.14), transparent 70%);
}
.card--form > * { position: relative; z-index: 1; }

.trust-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.trust-chip {
  font-family: var(--font-sans); font-size: .7rem; letter-spacing: .05em;
  color: var(--oro-claro); background: rgba(212,175,106,.08);
  border: 1px solid rgba(212,175,106,.28); border-radius: 999px;
  padding: .4rem .85rem;
}

/* =============================================================
   7. Effects
   ============================================================= */

/* reveal-on-scroll — hidden only when JS is confirmed running (see .js class on <html>);
   without JS, content stays visible by default (rule: never hide content behind JS-only state) */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

/* tilt cards (signature effect) */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 3; opacity: .045; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* count-up */
[data-count-to] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .cta-final-mesh { animation: none; }
  .splash { transition: none; }
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { flex-wrap: nowrap; }
}
@media (min-width: 1280px) {
  .about-story { gap: 5rem; }
}
