/* ------------- Tokens ------------- */
:root {
  --bg-deep: #14110c;
  --bg-mid: #1c1812;
  --bg-card: #241e17;
  --bg-elev: #2c2519;
  --line: #3a3225;
  --line-soft: #2a2419;
  --copper: #b8682f;
  --copper-bright: #d4824a;
  --copper-glow: rgba(212, 130, 74, 0.18);
  --tan: #c8a474;
  --cream: #ece4d0;
  --cream-mute: #b8ad97;
  --text-mute: #7a7368;
  --iron: #3a3328;
  --danger: #c0432a;

  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* film grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 0 0.7  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 100;
}

/* ------------- Type ------------- */
.display {
  font-family: "Anton", "Archivo Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.serif {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-bright);
}
.eyebrow-mute { color: var(--text-mute); }

/* ------------- Layout ------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section { position: relative; }

/* ------------- Reveal ------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal { animation: reveal-failsafe 0ms 1500ms forwards; }
.reveal.in { animation: none; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background 300ms ease, border-color 300ms ease, padding 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 17, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 34px; height: 34px;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name span { color: var(--copper-bright); }
.brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
  position: relative;
  padding: 6px 0;
  transition: color 200ms;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--copper-bright);
  transition: width 250ms;
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang-switch a {
  padding: 6px 12px;
  color: var(--text-mute);
  transition: all 200ms;
  display: inline-block;
}
.lang-switch a.active {
  background: var(--copper);
  color: var(--bg-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--copper);
  color: var(--bg-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 200ms, transform 200ms;
  border: 1px solid var(--copper);
}
.btn:hover { background: var(--copper-bright); border-color: var(--copper-bright); }
.btn.ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--bg-card);
  border-color: var(--copper);
  color: var(--copper-bright);
}
.btn .arrow { transition: transform 250ms; }
.btn:hover .arrow { transform: translateX(4px); }

.menu-toggle { display: none; }

/* ============================================================
   PLACEHOLDER (industrial textured)
============================================================ */
.ph {
  position: relative;
  background-color: #1a1410;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.38  0 0 0 0 0.22  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    repeating-linear-gradient(135deg, rgba(232,220,196,0.025) 0 1px, transparent 1px 14px),
    radial-gradient(ellipse at 30% 30%, rgba(212,130,74,0.10), transparent 60%),
    linear-gradient(160deg, #2a1f15 0%, #14100a 100%);
  background-size: 200px 200px, auto, auto, auto;
  overflow: hidden;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(20,15,10,0.6), transparent 55%),
    linear-gradient(180deg, transparent 50%, rgba(20,15,10,0.45) 100%);
  pointer-events: none;
}
.ph .ph-label {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cream-mute);
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph .ph-label::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--copper-bright);
  display: inline-block;
}
.ph .ph-corner {
  position: absolute;
  top: 14px; right: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  z-index: 2;
}
.ph .ph-glyph {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Anton", sans-serif;
  font-size: clamp(80px, 16vw, 200px);
  color: rgba(212,130,74,0.10);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ph-hero {
  background:
    radial-gradient(ellipse 60% 40% at 50% 35%, rgba(212,130,74,0.20), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(10,8,5,0.65) 65%, rgba(10,8,5,0.95) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.32  0 0 0 0 0.18  0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #1a1410 0%, #100c08 100%);
  background-size: auto, auto, 400px 400px, auto;
}
.ph-hero-mountains {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><path d='M0 400 L0 280 L120 180 L220 240 L320 140 L420 220 L520 100 L640 200 L760 130 L880 250 L1000 160 L1120 230 L1200 200 L1200 400 Z' fill='%23120d08' opacity='0.85'/><path d='M0 400 L0 340 L100 280 L200 320 L320 240 L440 300 L560 220 L680 290 L820 240 L960 310 L1080 260 L1200 300 L1200 400 Z' fill='%230a0805' opacity='0.95'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,12,0.30) 0%, rgba(20,17,12,0.15) 35%, rgba(20,17,12,0.85) 92%, var(--bg-deep) 100%);
  z-index: 2;
}
.hero-grid {
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(232,220,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,220,196,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 70%, transparent 100%);
}

.hero-inner {
  width: 100%;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-left {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-left strong { color: var(--cream); font-weight: 500; }
.hero-coord {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.hero-coord .dot { color: var(--copper-bright); }

.hero-title {
  font-size: clamp(64px, 11vw, 184px);
  margin: 0;
  color: var(--cream);
}
.hero-title .accent {
  color: var(--copper-bright);
  font-style: normal;
}
.hero-title .out {
  -webkit-text-stroke: 1px var(--cream);
  color: transparent;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
  align-items: end;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-mute);
  max-width: 580px;
}
.hero-lead strong { color: var(--cream); font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  padding: 18px 0;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker 60s linear infinite;
  width: max-content;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-mute);
  white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track i {
  width: 6px; height: 6px;
  background: var(--copper-bright);
  display: inline-block;
  border-radius: 50%;
  font-style: normal;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADER (shared)
============================================================ */
.sec {
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}
.sec-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--copper-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-title {
  font-size: clamp(40px, 6vw, 76px);
  margin: 0;
  line-height: 0.92;
}
.sec-title .light { color: var(--text-mute); }
.sec-intro {
  color: var(--cream-mute);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================================
   SERVICIOS (tabs)
============================================================ */
.tabs {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  background: var(--bg-mid);
  min-height: 560px;
}
.tabs-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
}
.tab {
  text-align: left;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 250ms, color 200ms;
  position: relative;
  color: var(--cream-mute);
}
.tab:last-child { border-bottom: 0; }
.tab .tab-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  display: block;
  margin-bottom: 4px;
}
.tab .tab-label {
  font-family: "Anton", sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.tab:hover { background: var(--bg-card); color: var(--cream); }
.tab.active {
  background: var(--bg-card);
  color: var(--cream);
}
.tab.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--copper-bright);
}
.tab-arrow {
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
  color: var(--copper-bright);
}
.tab.active .tab-arrow,
.tab:hover .tab-arrow { opacity: 1; transform: translateX(2px); }

.tab-panel {
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-content: start;
  position: relative;
}
.tab-panel-img {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
}
.tab-panel h3 {
  font-family: "Anton", sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  line-height: 1;
  letter-spacing: 0.005em;
}
.tab-panel p {
  color: var(--cream-mute);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px 0;
}
.tab-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tab-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--cream);
}
.tab-bullets li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--copper-bright);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ============================================================
   MINERALES
============================================================ */
.minerals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.mineral {
  background: var(--bg-mid);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: background 300ms;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mineral:hover { background: var(--bg-card); }
.mineral-sym {
  position: absolute;
  top: 22px; right: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
}
.mineral-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--copper-bright);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.mineral-name {
  font-family: "Anton", sans-serif;
  font-size: 56px;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0 0 14px;
}
.mineral-desc {
  font-size: 13.5px;
  color: var(--cream-mute);
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}
.mineral-img {
  margin-top: 24px;
  height: 130px;
  width: 100%;
  position: relative;
  transition: transform 600ms;
}
.mineral:hover .mineral-img { transform: scale(1.02); }

.scrap-row {
  margin-top: 0;
  padding: 36px 32px;
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 220px;
}
.scrap-row .label {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}
.scrap-row .label .sub { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-mute); letter-spacing: 0.15em; margin-top: 4px; }
.scrap-row .desc { color: var(--cream-mute); font-size: 14px; max-width: 560px; }

/* ============================================================
   OPERACIONES
============================================================ */
.ops {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.op {
  background: var(--bg-mid);
  padding: 36px 32px;
  position: relative;
  transition: background 300ms;
  display: flex;
  flex-direction: column;
}
.op:hover { background: var(--bg-card); }
.op.big { grid-column: span 6; min-height: 360px; }
.op.med { grid-column: span 4; min-height: 280px; }
.op.sm { grid-column: span 3; min-height: 240px; }
.op-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--copper-bright);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.op-title {
  font-family: "Anton", sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 14px;
}
.op.big .op-title { font-size: 44px; }
.op-desc {
  color: var(--cream-mute);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}
.op-icon {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 28px;
  color: var(--copper-bright);
}
.op-stat {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.op-stat .v {
  font-family: "Anton", sans-serif;
  font-size: 48px;
  color: var(--copper-bright);
  line-height: 1;
}
.op-stat .l {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
}

/* ============================================================
   PILLAR (numbered content blocks — used across several pages)
============================================================ */
.pillar {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.pillar:first-child { padding-top: 0; }
.pillar:last-child { border-bottom: 0; }
.pillar-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--copper-bright);
  padding-top: 4px;
}
.pillar h4 {
  font-family: "Anton", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.pillar p { color: var(--cream-mute); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ============================================================
   BLOG / NOTICIAS
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.blog-card {
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  transition: background 300ms, border-color 300ms;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.blog-card:hover { background: var(--bg-card); border-color: var(--copper-bright); }
.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ph);
  position: relative;
  overflow: hidden;
}
.blog-img .ph { width: 100%; height: 100%; }
.blog-img .ph-glyph { font-size: 80px; }
.blog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.blog-meta span { color: var(--text-mute); }
.blog-meta .date { color: var(--copper-bright); }
.blog-meta .cat { color: var(--copper-bright); }
.blog-card h3 {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--cream);
}
.blog-card p {
  color: var(--cream-mute);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-bright);
  transition: gap 200ms;
  margin-top: auto;
}
.blog-link:hover { gap: 12px; }

/* ============================================================
   TESTIMONIOS
============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.testimonial {
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background 300ms;
  min-height: 300px;
}
.testimonial:hover { background: var(--bg-card); }
.testimonial-quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  margin: 0 0 28px;
  flex: 1;
}
.testimonial-author {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.testimonial-name {
  font-family: "Anton", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 4px;
}
.testimonial-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--copper-bright);
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   TEAM / EQUIPO
============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 60px;
  row-gap: 32px;
}
.team-member {
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: background 300ms, border-color 300ms;
}
.team-member:hover { background: var(--bg-card); border-color: var(--copper-bright); }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--ph);
  position: relative;
  overflow: hidden;
}
.team-photo .ph { width: 100%; height: 100%; }
.team-photo .ph-glyph { font-size: 120px; }
.team-info {
  padding: 24px;
  text-align: center;
}
.team-name {
  font-family: "Anton", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 6px;
}
.team-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin: 0;
}

/* ============================================================
   FAQ
============================================================ */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 200ms;
}
.faq-trigger:hover { color: var(--copper-bright); }
.faq-question {
  font-family: "Anton", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  flex: 1;
}
.faq-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--copper-bright);
  transition: transform 300ms;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 20px;
}
.faq-answer p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-mute);
  margin: 0 0 12px;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   PRECIOS
============================================================ */
.pricing-intro {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-intro p {
  font-size: 17px;
  color: var(--cream-mute);
  line-height: 1.6;
  margin: 0;
}
.pricing-table {
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.pricing-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
  padding: 24px;
}
.pricing-header div {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-bright);
}
.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 0;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  transition: background 300ms;
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row:hover { background: var(--bg-elev); }
.pricing-service {
  font-family: "Anton", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--cream);
}
.pricing-value {
  font-family: "Anton", sans-serif;
  font-size: 20px;
  color: var(--copper-bright);
  text-align: center;
}
.pricing-value.included:after { content: "✓"; margin-left: 6px; }
.pricing-value.excluded {
  color: var(--text-mute);
  font-size: 16px;
}
.pricing-value.excluded:after { content: "—"; }

/* ============================================================
   CONTACTO
============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info h3 {
  font-family: "Anton", sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
}
.contact-info .lead { color: var(--cream-mute); font-size: 16px; line-height: 1.6; max-width: 460px; }
.contact-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.contact-block .lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-block .val { font-size: 16px; color: var(--cream); line-height: 1.5; }
.contact-block .val a:hover { color: var(--copper-bright); }

.form {
  background: var(--bg-mid);
  border: 1px solid var(--line-soft);
  padding: 40px;
  display: grid;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 14px 16px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  border-radius: 0;
  outline: none;
  transition: border-color 200ms, background 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--copper-bright);
  background: var(--bg-card);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--danger);
}
.field .err {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--danger);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%23c8a474' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.form-foot .legal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  max-width: 320px;
  line-height: 1.5;
}

.form.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  min-height: 480px;
}
.form.sent .check {
  width: 56px; height: 56px;
  border: 1.5px solid var(--copper-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.form.sent h4 {
  font-family: "Anton", sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.form.sent p { color: var(--cream-mute); max-width: 340px; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 32px;
  background: var(--bg-mid);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-col h5 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-col a { color: var(--cream-mute); font-size: 14px; transition: color 200ms; }
.foot-col a:hover { color: var(--copper-bright); }

.foot-brand { max-width: 340px; }
.foot-brand p {
  font-size: 13.5px;
  color: var(--cream-mute);
  line-height: 1.6;
  margin: 14px 0 0;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line);
  }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
  .tabs { grid-template-columns: 1fr; min-height: 0; }
  .tabs-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .tab { flex-direction: column; align-items: flex-start; min-width: 200px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .tab.active::before { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 3px; }
  .tab-panel { grid-template-columns: 1fr; padding: 32px; }
  .tab-panel-img { aspect-ratio: 16/9; max-height: 240px; }
  .minerals { grid-template-columns: repeat(1, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-header, .pricing-row { grid-template-columns: 2fr 1fr 1fr; }
  .op.big, .op.med, .op.sm { grid-column: span 12; min-height: 220px; }
  .sus { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-block { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .sec { padding: 80px 0; }
  .hero { padding-top: 90px; padding-bottom: 60px; }
  .hero-meta { font-size: 10px; }
  .minerals { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pricing-header, .pricing-row { grid-template-columns: 1fr; }
  .pricing-header div:not(:first-child) { display: none; }
  .pricing-row > :not(:first-child) { display: none; }
  .form { padding: 28px; }
  .foot-top { grid-template-columns: 1fr; }
  .scrap-row { flex-direction: column; align-items: flex-start; }

  /* Comparison tables (e.g. DeepCore vs. ENAMI) need every column
     visible even on small screens — unlike the pricing-plan table,
     hiding a side of the comparison defeats the point. */
  .pricing-table.compare-table .pricing-header,
  .pricing-table.compare-table .pricing-row {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .pricing-table.compare-table .pricing-header div:not(:first-child),
  .pricing-table.compare-table .pricing-row > :not(:first-child) {
    display: block;
  }
  .pricing-table.compare-table .pricing-service,
  .pricing-table.compare-table .pricing-value { font-size: 12.5px; }
  .pricing-table.compare-table .pricing-header,
  .pricing-table.compare-table .pricing-row { padding: 16px 12px; }
}

/* ============================================================
   COMPACT NAV MOBILE MENU
============================================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-deep);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  transition: transform 400ms cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: "Anton", sans-serif;
  font-size: 38px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cream);
}
.mobile-menu .close {
  position: absolute;
  top: 22px; right: 28px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
}

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:wght@400;500&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');
