/* ============================================
   CAMCO v03 — Forest Products for Latin America
   Editorial / industrial · ink black + camco green
   ============================================ */

:root {
  /* Palette */
  --ink: #0E1311;
  --ink-2: #1A211E;
  --ink-3: #242C28;
  --bone: #F4F1EA;
  --bone-2: #ECE7DC;
  --paper: #FBFAF6;
  --rule: #2A312E;
  --rule-light: #D8D2C2;
  --green: #2B6A4A;
  --green-bright: #3A8C61;
  --green-deep: #1F4E37;
  --kraft: #B89968;
  --rust: #B4593A;
  --muted: #8A8A82;
  --muted-2: #6E6E68;

  /* Type */
  --serif: "Cormorant Garamond", "Lora", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--green); color: var(--bone); }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--green);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 60ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}

section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  color: var(--bone);
}
.nav.scrolled {
  background: rgba(14, 19, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.nav-brand-mark {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px;
  opacity: 0.85;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 5px 9px;
  border-radius: 999px;
  opacity: 0.6;
}
.lang-switch button.active {
  background: var(--bone);
  color: var(--ink);
  opacity: 1;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--green-bright); transform: translateY(-1px); }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--ink);
  color: var(--bone);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.hero::before {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-watermark {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 70vw;
  max-width: 900px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  color: var(--bone);
  opacity: 0.7;
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9.5vw, 156px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 .for {
  font-style: italic;
  font-weight: 300;
  opacity: 0.6;
}
.hero h1 .latam {
  color: var(--green-bright);
  display: block;
}
.hero-sub {
  margin-top: 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--bone);
  opacity: 0.72;
  text-wrap: pretty;
}
.hero-cta-row {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--green);
  color: var(--bone);
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 241, 234, 0.25);
}
.btn-ghost:hover { border-color: var(--bone); }
.btn-dark {
  background: var(--ink);
  color: var(--bone);
}
.btn-dark:hover { background: var(--ink-2); }

.hero-meta {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  z-index: 2;
}
.hero-meta-stats {
  display: flex;
  gap: 32px;
}
.hero-meta-stats span b {
  font-weight: 600;
  color: var(--bone);
  margin-right: 6px;
  font-family: var(--mono);
}

@media (max-width: 720px) {
  .hero-inner { padding: 110px var(--gutter) 100px; }
  .hero-meta-stats { display: none; }
}

/* ============================================
   SOLUCIONES — 4 step process
   ============================================ */
.soluciones {
  background: var(--bone);
  border-top: 1px solid var(--rule-light);
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.sol-step {
  padding: 36px 28px 36px 28px;
  border-right: 1px solid var(--rule-light);
  position: relative;
}
.sol-step:last-child { border-right: 0; }
.sol-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.sol-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.sol-step p {
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.sol-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--green);
}
@media (max-width: 880px) {
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .sol-step { padding-right: 20px; padding-left: 20px; padding-top: 28px; padding-bottom: 28px; }
  .sol-step:nth-child(2n) { border-right: 0; }
  .sol-step:nth-child(1), .sol-step:nth-child(2) { border-bottom: 1px solid var(--rule-light); }
}
@media (max-width: 520px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-step { border-right: 0 !important; border-bottom: 1px solid var(--rule-light); }
  .sol-step:last-child { border-bottom: 0; }
}

/* ============================================
   ALCANCE — map + counters
   ============================================ */
.alcance {
  background: var(--ink);
  color: var(--bone);
}
.alcance .eyebrow,
.alcance .lede { color: rgba(244, 241, 234, 0.65); }
.alcance .section-title { color: var(--bone); }
.alcance .section-title em { color: var(--green-bright); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
}
.stat {
  padding: 32px 20px;
  border-right: 1px solid rgba(244, 241, 234, 0.15);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  margin-top: 12px;
}
@media (max-width: 880px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(244, 241, 234, 0.15); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(5) { grid-column: 1 / 3; }
}

.map-wrap {
  margin-top: 72px;
  position: relative;
}
.map-legend {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
}
.map-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.swatch.sell { background: var(--green-bright); }
.swatch.supply { background: var(--kraft); }

/* World map (dot-style, Pacific-centered) */
.world-map {
  margin-top: 24px;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.2, .7, .3, 1);
}
.world-map.is-ready { opacity: 1; }
.world-map .dot-base {
  fill: rgba(244, 241, 234, 0.18);
}
.world-map .dot-latam {
  fill: var(--green-bright);
}
.world-map .flow-line {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.world-map .flow-stop-start {
  stop-color: var(--kraft);
  stop-opacity: 0.08;
}
.world-map .flow-stop-mid {
  stop-color: var(--kraft);
  stop-opacity: 0.55;
}
.world-map .flow-stop-end {
  stop-color: var(--kraft);
  stop-opacity: 0.95;
}
.world-map .arrowhead-fill {
  fill: var(--kraft);
  opacity: 0.95;
}
.world-map .label-origin {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  fill: var(--bone);
  paint-order: stroke fill;
  stroke: var(--ink);
  stroke-width: 5px;
  stroke-linejoin: round;
  pointer-events: none;
}

.svg-map { width: 100%; height: auto; }

/* ============================================
   PORTAFOLIO — 4 family cards
   ============================================ */
.portafolio {
  background: var(--paper);
}
.fam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-light);
  margin-top: 80px;
  border: 1px solid var(--rule-light);
}
.fam {
  background: var(--paper);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.fam-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.fam-letter {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 88px;
  line-height: 0.85;
  color: var(--green);
  letter-spacing: -0.04em;
}
.fam-meta {
  flex: 1;
  padding-top: 14px;
}
.fam-meta .eyebrow { color: var(--muted-2); }
.fam-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  margin: 8px 0 0;
}
.fam-headline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.fam-desc {
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 42ch;
}
.fam-grades {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fam-grade {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  color: var(--muted-2);
  background: var(--bone);
}
@media (max-width: 880px) {
  .fam-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MILLS — Suppliers + Become a supplier
   ============================================ */
.mills {
  background: var(--bone);
  border-top: 1px solid var(--rule-light);
}
.mills-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.mills-stats .stat-num { color: var(--ink); }
.mills-stats .stat-label { color: var(--muted-2); }
.mills-stats .stat { border-right: 1px solid var(--rule-light); }
.mills-stats .stat:last-child { border-right: 0; }
@media (max-width: 880px) {
  .mills-stats { grid-template-columns: 1fr 1fr; }
  .mills-stats .stat { border-bottom: 1px solid var(--rule-light); }
  .mills-stats .stat:nth-child(2n) { border-right: 0; }
  .mills-stats .stat:nth-child(n+3) { border-bottom: 0; }
}

.mills-logos {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
}
.mill-cell {
  background: var(--paper);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.mill-cell img { max-height: 90px; max-width: 85%; object-fit: contain; filter: grayscale(1) brightness(0.55) contrast(1) opacity(0.85); transition: filter 0.35s ease, transform 0.35s ease; }
.mill-cell:hover img { filter: none; transform: scale(1.05); }
.mill-cell.placeholder {
  background: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-2);
  text-transform: none;
}
@media (max-width: 880px) {
  .mills-logos { grid-template-columns: 1fr 1fr; }
}

/* Mobile (<600px) — nav + supplier logos */
@media (max-width: 600px) {
  .nav { padding: 14px 18px; gap: 8px; }
  .nav-wordmark { display: none !important; }
  .nav-right { gap: 8px; }
  .lang-switch button { padding: 6px 8px; font-size: 10px; }
  .nav-cta { padding: 10px 14px; font-size: 12px; white-space: nowrap; }
  .mill-cell { aspect-ratio: 4 / 3; padding: 18px; }
  .mill-cell img { max-height: 50px; max-width: 75%; }
  .mill-cell.placeholder { font-size: 18px; }
}

.become {
  margin-top: 96px;
  background: var(--ink);
  color: var(--bone);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.become::before {
  content: "→";
  position: absolute;
  right: -40px;
  bottom: -100px;
  font-family: var(--serif);
  font-size: 600px;
  color: rgba(244, 241, 234, 0.04);
  line-height: 1;
  pointer-events: none;
}
.become .eyebrow { color: rgba(244, 241, 234, 0.65); }
.become h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  margin: 16px 0 0;
  text-wrap: balance;
}
.become p {
  color: rgba(244, 241, 234, 0.72);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.become-cta {
  align-self: end;
  justify-self: start;
}
@media (max-width: 880px) {
  .become { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
}

/* ============================================
   CLIENTES — marquee
   ============================================ */
.clientes {
  background: var(--paper);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.clientes .container { padding: 0 var(--gutter); }
.clientes-head { text-align: center; margin-bottom: 48px; }
.clientes-head .eyebrow { justify-content: center; }
.clientes-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 8px 0 0;
}
.marquee {
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.marquee img {
  height: 96px;
  width: auto;
  filter: grayscale(1) brightness(0.55) contrast(1) opacity(0.85);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.marquee img:hover { filter: none; transform: scale(1.05); }

.form-card { position: relative; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
}
.form-status-ok {
  background: rgba(58, 140, 97, 0.12);
  color: #1f5a3d;
  border: 1px solid rgba(58, 140, 97, 0.3);
}
.form-status-err {
  background: rgba(176, 60, 60, 0.10);
  color: #8b2a2a;
  border: 1px solid rgba(176, 60, 60, 0.3);
}
.btn-primary[disabled] { opacity: 0.65; cursor: wait; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   HISTORIA — vertical timeline
   ============================================ */
.historia {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.historia .eyebrow,
.historia .lede { color: rgba(244, 241, 234, 0.65); }
.historia .section-title { color: var(--bone); }
.historia .section-title em { color: var(--green-bright); }

.tl {
  margin-top: 96px;
  position: relative;
  padding-left: 32px;
  border-left: 1px solid rgba(244, 241, 234, 0.18);
  max-width: 720px;
}
.tl-item {
  position: relative;
  padding: 0 0 56px 36px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(244, 241, 234, 0.5);
}
.tl-item.emph::before {
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow: 0 0 0 6px rgba(58, 140, 97, 0.18);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tl-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--bone);
  text-wrap: pretty;
  max-width: 50ch;
}
.tl-item.emph .tl-text {
  font-size: 26px;
  font-style: italic;
}

/* ============================================
   EQUIPO
   ============================================ */
.equipo {
  background: var(--paper);
}
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
}
.member {
  display: flex;
  flex-direction: column;
}
.member-photo {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  filter: grayscale(0.3) contrast(1.05);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo.placeholder {
  background: repeating-linear-gradient(135deg, var(--bone) 0 10px, var(--bone-2) 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.member-photo.memoriam::after {
  content: "in memoriam";
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
  padding: 4px 8px;
  border-radius: 2px;
}
.member-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
.member-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 8px 0 12px;
}
.member-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-2);
  margin: 0;
}
@media (max-width: 880px) {
  .equipo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .equipo-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  background: var(--bone);
  border-top: 1px solid var(--rule-light);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  gap: 48px;
  margin-top: 80px;
  align-items: stretch;
}
.contacto-or {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.contacto-or::before,
.contacto-or::after {
  content: "";
  flex: 1;
  width: 1px;
  background: var(--rule-light);
}
.contacto-or span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted-2);
  padding: 8px 0;
}

/* Sales card — WhatsApp focal */
.sales-card {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.wa-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: var(--ink);
  color: var(--bone);
  padding: 24px 28px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}
.wa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(37,211,102,0.12), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wa-card:hover::after { opacity: 1; }
.wa-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.wa-icon { color: #25D366; flex-shrink: 0; }
.wa-card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.7);
}
.wa-card-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bone);
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}
.wa-card:hover .wa-card-cta { color: #25D366; }
.wa-card-arrow {
  font-family: var(--serif);
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  color: rgba(244,241,234,0.55);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.wa-card:hover .wa-card-arrow {
  color: #25D366;
  transform: translateX(6px);
}
.offices-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.office {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
}
.office-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.office-cov {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
.office-info {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.office-info .who { font-weight: 600; color: var(--ink); display: block; }
.office-info a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2) !important;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none !important;
  margin-right: 12px;
  transition: color 0.2s;
}
.ph-link:hover { color: var(--green) !important; }
.ph-link svg { color: var(--green); }
.office-info .ph { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 36px;
}
.form-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  padding: 10px 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--green); }
.field textarea { resize: vertical; min-height: 100px; }
.form-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.form-privacy {
  font-size: 11px;
  color: var(--muted-2);
}
@media (max-width: 980px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
  .contacto-or { flex-direction: row; }
  .contacto-or::before, .contacto-or::after { width: auto; height: 1px; flex: 1; }
  .office { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
}
.footer-brand-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
.footer-brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}
.footer-sustain {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
  text-wrap: pretty;
  max-width: 56ch;
}
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}
.footer-links {
  display: flex;
  gap: 28px;
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================
   TWEAKS PANEL OVERRIDES
   ============================================ */
.tw-panel { z-index: 9999 !important; }

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }


/* ============================================
   TWEAKS — Aesthetic modes (3 expressive)
   editorial (default) · industrial · soft
   ============================================ */

[data-mode="industrial"] {
  --serif: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-mode="industrial"] .section-title {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
}
[data-mode="industrial"] .section-title em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--green);
  border-bottom: 3px solid var(--green);
  padding-bottom: 2px;
}
[data-mode="industrial"] .hero h1 {
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: clamp(40px, 7.5vw, 120px);
}
[data-mode="industrial"] .hero h1 .for {
  font-style: normal;
  font-weight: 400;
}
[data-mode="industrial"] .fam-letter {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 56px;
  border: 2px solid var(--green);
  width: 84px;
  height: 84px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--green);
}
[data-mode="industrial"] .fam-headline {
  font-style: normal;
  font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
}
[data-mode="industrial"] .tl-text { font-family: "IBM Plex Sans", sans-serif; font-size: 18px; }
[data-mode="industrial"] .tl-item.emph .tl-text { font-style: normal; font-weight: 600; font-size: 22px; }
[data-mode="industrial"] .member-name { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 18px; }
[data-mode="industrial"] .office-name { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 18px; }
[data-mode="industrial"] .footer-sustain { font-style: normal; font-family: "IBM Plex Sans", sans-serif; font-weight: 400; font-size: 17px; }
[data-mode="industrial"] section { padding: clamp(64px, 8vw, 110px) 0; }
[data-mode="industrial"] .lede { font-family: "IBM Plex Sans", sans-serif; font-size: 17px; }
[data-mode="industrial"] .nav-cta, [data-mode="industrial"] .btn { border-radius: 2px; }
[data-mode="industrial"] .form-card, [data-mode="industrial"] .become { border-radius: 2px; }
[data-mode="industrial"] .nav-brand span, [data-mode="industrial"] .nav a > span:last-child { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; }
[data-mode="industrial"] .stat-num { font-family: "IBM Plex Sans", sans-serif; font-weight: 300; }
[data-mode="industrial"] .sol-step h3 { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 24px; }
[data-mode="industrial"] .fam-meta h3 { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 28px; }

[data-mode="soft"] {
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --paper: #FBF8F1;
  --bone: #F1EBDC;
  --bone-2: #E5DCC5;
}
[data-mode="soft"] .section-title {
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
}
[data-mode="soft"] .hero h1 {
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
[data-mode="soft"] .hero h1 .for {
  font-style: normal;
  font-weight: 300;
}
[data-mode="soft"] .fam-letter {
  font-size: 120px;
  font-weight: 300;
  font-style: italic;
}
[data-mode="soft"] .fam-headline { font-size: 26px; }
[data-mode="soft"] section { padding: clamp(110px, 14vw, 180px) 0; }
[data-mode="soft"] .lede { font-size: 21px; }

/* ============================================
   ACCENT — palette swap
   ============================================ */
[data-accent="forest"] {
  --green: #2B6A4A;
  --green-bright: #3A8C61;
  --green-deep: #1F4E37;
}
[data-accent="kraft"] {
  --green: #8B6B3D;
  --green-bright: #B89968;
  --green-deep: #5C4623;
}
[data-accent="rust"] {
  --green: #9E4329;
  --green-bright: #B4593A;
  --green-deep: #6E2E1B;
}
[data-accent="ink"] {
  --green: #2A3530;
  --green-bright: #4A5A52;
  --green-deep: #161D1A;
}
[data-accent="ocean"] {
  --green: #1F4E5F;
  --green-bright: #356D82;
  --green-deep: #103445;
}

/* ============================================
   HERO TREATMENT
   ============================================ */
[data-hero="watermark"] .hero-watermark { display: block; opacity: 0.06; }
[data-hero="watermark"] .hero { background: var(--ink); }

[data-hero="forest"] .hero {
  background:
    linear-gradient(180deg, rgba(14,19,17,0.55) 0%, rgba(14,19,17,0.85) 100%),
    url('assets/forest-hero.jpg') center / cover no-repeat;
}
[data-hero="forest"] .hero-watermark { display: none; }
[data-hero="forest"] .hero::before { opacity: 0.3; }

[data-hero="type"] .hero {
  background: var(--paper);
  color: var(--ink);
}
[data-hero="type"] .hero::before { display: none; }
[data-hero="type"] .hero h1 { color: var(--ink); }
[data-hero="type"] .hero h1 .latam { color: var(--green); }
[data-hero="type"] .hero-sub { color: var(--muted-2); opacity: 1; }
[data-hero="type"] .hero-eyebrow { color: var(--muted-2); opacity: 1; }
[data-hero="type"] .hero-watermark { display: block; opacity: 0.08; }
[data-hero="type"] .hero-watermark img { filter: invert(1) hue-rotate(180deg); }
[data-hero="type"] .hero-meta { color: var(--muted); }
[data-hero="type"] .hero-meta-stats span b { color: var(--ink); }
[data-hero="type"] .btn-ghost { color: var(--ink); border-color: var(--rule-light); }
[data-hero="type"] .btn-ghost:hover { border-color: var(--ink); }
[data-hero="type"] .nav:not(.scrolled) { color: var(--ink); }
[data-hero="type"] .nav:not(.scrolled) .lang-switch { border-color: var(--ink); }
[data-hero="type"] .nav:not(.scrolled) .lang-switch button { color: var(--ink); }
