/* ==========================================================================
   HAMEV GLOBAL — V2 producción
   Grafito · titanio · platino · cian · cobre
   ========================================================================== */

:root {
  --void: #05070a;
  --graphite: #0a0e13;
  --titanium: #121820;
  --steel: #a9b6c4;
  --muted: #7e8b99;
  --white: #e8edf3;
  --cyan: #6fd3c7;
  --copper: #c98b5e;
  --line: rgba(169, 182, 196, 0.14);
  --line-soft: rgba(169, 182, 196, 0.07);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  --cjk: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --wrap: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--steel);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--cyan); color: #041016; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.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; }

html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
html[lang="ar"] .kicker, html[lang="ar"] .mono, html[lang="ar"] .tags li,
html[lang="ar"] .btn, html[lang="ar"] .nav a, html[lang="ar"] .lang a,
html[lang="ar"] .foot-lang a, html[lang="ar"] .card-list li,
html[lang="ar"] .to-top, html[lang="ar"] .diagram-cap {
  font-family: var(--arabic); letter-spacing: 0; text-transform: none;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] b,
html[lang="ar"] .nav a, html[lang="ar"] .kicker, html[lang="ar"] .btn,
html[lang="ar"] .tags li, html[lang="ar"] .card h3, html[lang="ar"] .principles b,
html[lang="ar"] .mono, html[lang="ar"] .lang a {
  font-family: "Noto Kufi Arabic", var(--arabic);
}
html[lang="zh-Hans"] body, html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3, html[lang="zh-Hans"] b, html[lang="zh-Hans"] .card h3 {
  font-family: var(--cjk);
}
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { word-break: keep-all; line-break: strict; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; inset-inline-start: 12px; top: -90px; z-index: 90;
  padding: 0.85rem 1.2rem; background: var(--cyan); color: #041016;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Cabecera ---------- */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  padding-block: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}
.topbar.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(5, 7, 10, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.mark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); flex: none; }
.mark-svg { color: var(--steel); flex: none; }
.mark-text { display: flex; flex-direction: column; line-height: 1; }
.mark-text b { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.24em; }
.mark-text i { font-family: var(--mono); font-style: normal; font-size: 0.48rem; letter-spacing: 0.48em; color: var(--muted); margin-top: 0.4rem; }

.panel { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav a {
  position: relative; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 1px;
  background: var(--cyan); transform: scaleX(0); transition: transform 0.3s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 0.15rem; padding-inline-start: clamp(0.8rem, 1.6vw, 1.2rem); border-inline-start: 1px solid var(--line); }
.lang a {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted);
  padding: 0.3rem 0.42rem; transition: color 0.25s ease;
}
.lang a:hover { color: var(--white); }
.lang a.is-active { color: var(--cyan); }
.nav-toggle {
  display: none; width: 44px; height: 44px; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; background: transparent; color: var(--white);
  border: 1px solid var(--line); cursor: pointer; padding: 0;
}
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s ease, opacity 0.2s ease; }
.topbar.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topbar.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.topbar.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Héroe ---------- */
.hero { position: relative; padding-block: clamp(7.5rem, 14vw, 10.5rem) 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(111, 211, 199, 0.10), transparent 62%),
    radial-gradient(45% 45% at 8% 78%, rgba(201, 139, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #070a0e 0%, var(--void) 62%, #06090d 100%);
}
.grid-bg {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(169, 182, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 182, 196, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-visual { position: relative; animation: rise 1.2s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.orbit { width: 100%; height: auto; animation: spin 180s linear infinite; filter: drop-shadow(0 0 40px rgba(111, 211, 199, 0.1)); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-readout { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; border-top: 1px solid var(--line-soft); padding-top: 0.7rem; }
.visual-label { position: absolute; display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 9.5px; letter-spacing: 0.22em; white-space: nowrap; }
.visual-label::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.vl-top { top: 4%; inset-inline-start: 6%; }
.vl-bottom { bottom: 8%; inset-inline-end: 2%; flex-direction: row-reverse; }

.kicker { display: flex; align-items: center; gap: 0.8rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.kline { width: 34px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); flex: none; }

h1 {
  margin-top: 1.6rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--white); text-wrap: balance;
}
.metal {
  background: linear-gradient(100deg, #ffffff 0%, #e2eaf2 26%, #b3c0cd 48%, #f2f7fb 66%, #c9d5e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.75; color: #aeb9c5; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tags li {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); padding: 0.55rem 0.85rem; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.6rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-metal {
  color: #07121a;
  background: linear-gradient(180deg, #eef4f9 0%, #c3cfdb 55%, #9fadbc 100%);
  box-shadow: 0 10px 30px -14px rgba(169, 182, 196, 0.55);
}
.btn-metal:hover { box-shadow: 0 16px 40px -16px rgba(111, 211, 199, 0.45); }
.btn-line { color: var(--white); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
.btn-line:hover { border-color: rgba(111, 211, 199, 0.6); color: var(--cyan); }

.hero-foot {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line-soft);
}
.metric { padding: 1.3rem 1.2rem 1.5rem 0; border-inline-end: 1px solid var(--line-soft); }
.metric:last-child { border-inline-end: 0; }
.metric .mono { color: var(--cyan); }
.metric p { margin-top: 0.4rem; font-size: 0.82rem; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section {
  position: relative; padding-block: clamp(5rem, 9vw, 8.5rem);
  border-top: 1px solid var(--line-soft); scroll-margin-top: var(--header-h);
}
.section-2 { background: linear-gradient(180deg, #080c11, #06090d); }
.section h2 {
  margin-top: 1.4rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--white);
}
.section h2.wide { max-width: 22ch; }
.sub { margin-top: 1.2rem; max-width: 62ch; color: #9fabb8; font-size: 0.98rem; line-height: 1.75; }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 5.5rem); }
.split-rev { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
.split-copy p + p { margin-top: 1.2rem; }
.split-copy p { color: #a6b2bf; font-size: 1rem; line-height: 1.8; max-width: 56ch; }
.lattice-row { margin-top: clamp(2.5rem, 5vw, 4rem); }
.lattice { width: 100%; height: 130px; opacity: 0.75; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card {
  position: relative; padding: 1.7rem 1.6rem 1.9rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 42%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--line);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 10px; height: 10px; opacity: 0;
  border-color: rgba(111, 211, 199, 0.5); transition: opacity 0.3s ease;
}
.card::before { top: 8px; inset-inline-start: 8px; border-top: 1px solid; border-inline-start: 1px solid; }
.card::after { bottom: 8px; inset-inline-end: 8px; border-bottom: 1px solid; border-inline-end: 1px solid; }
.card:hover { transform: translateY(-4px); border-color: rgba(111, 211, 199, 0.35); box-shadow: 0 30px 60px -40px rgba(111, 211, 199, 0.35); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-top .mono { color: var(--cyan); }
.icon { width: 42px; height: 42px; color: var(--steel); opacity: 0.85; }
.card h3 { margin-top: 1.6rem; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--white); }
.card p { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.7; color: #93a0ad; }
.card-list { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-list li {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft); padding: 0.32rem 0.55rem;
}

/* ---------- Diagrama / control ---------- */
.diagram { padding: 1.6rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.node {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line); background: rgba(5, 7, 10, 0.6);
}
.node b { font-family: var(--display); font-weight: 500; color: var(--white); font-size: 0.95rem; }
.node-head { border-color: rgba(111, 211, 199, 0.45); box-shadow: inset 0 0 40px -20px rgba(111, 211, 199, 0.5); }
.connector { width: 1px; height: 34px; margin-inline: auto; background: linear-gradient(180deg, var(--cyan), rgba(201, 139, 94, 0.6)); position: relative; }
.connector::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: -2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.node-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.node-row .node { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.9rem; }
.node-row .mono { color: var(--copper); }
.diagram-note { margin-top: 1.2rem; text-align: center; }
.diagram-cap {
  margin-top: 0.5rem; text-align: center; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); opacity: 0.8;
}
.principles { margin-top: 2.2rem; border-top: 1px solid var(--line-soft); }
.principles li {
  display: grid; grid-template-columns: 54px 1fr; gap: 1.2rem;
  padding-block: 1.35rem; border-bottom: 1px solid var(--line-soft);
}
.principles .mono { color: var(--copper); padding-top: 0.25rem; }
.principles b { font-family: var(--display); font-weight: 500; color: var(--white); font-size: 1.05rem; }
.principles p { margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.7; color: #93a0ad; max-width: 54ch; }
.leader-line {
  margin-top: 2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.leader-line .mono { color: var(--cyan); }
.leader-line p { margin-top: 0.45rem; color: var(--white); font-size: 0.92rem; }
.leader-line a { color: var(--steel); border-bottom: 1px solid var(--line); }
.leader-line a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact .btn { margin-top: 2rem; }
.contact-data { border-top: 1px solid var(--line); }
.contact-data > div { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.contact-data p { margin-top: 0.5rem; color: var(--white); font-size: 0.95rem; line-height: 1.7; }
.contact-data a:hover { color: var(--cyan); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-data .mono { color: var(--cyan); }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 3rem 1.6rem; background: #040609; }
.foot-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.foot-brand .mark { margin-bottom: 0.9rem; }
.foot-tagline { font-size: 0.8rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot-cols .mono { display: block; margin-bottom: 0.9rem; color: var(--cyan); }
.foot-cols li { margin-block: 0.5rem; }
.foot-cols a { font-size: 0.82rem; color: var(--muted); transition: color 0.25s ease; }
.foot-cols a:hover { color: var(--white); }
.foot-lang { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.foot-lang a[aria-current="page"] { color: var(--cyan); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.foot-legal { flex: 1 1 420px; max-width: 78ch; font-size: 0.72rem; line-height: 1.7; color: rgba(169, 182, 196, 0.72); }
.foot-bottom .mono { color: rgba(169, 182, 196, 0.78); }
.to-top { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--cyan); }

/* ---------- 404 ---------- */
.page-404 { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: radial-gradient(90% 80% at 70% 0%, rgba(111, 211, 199, 0.1), transparent 55%), var(--void); }
.notfound { text-align: center; max-width: 640px; }
.notfound .mark { justify-content: center; margin-bottom: 2.6rem; }
.notfound-code { font-family: var(--display); font-size: clamp(5rem, 16vw, 8.5rem); font-weight: 300; line-height: 0.9; color: rgba(169, 182, 196, 0.3); }
.notfound h1 { margin-top: 1rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.notfound-text { margin-top: 1rem; color: #9fabb8; }
.notfound-links { margin-top: 2rem; }
.notfound-langs { margin-top: 2.2rem; }
.notfound-langs a { color: var(--steel); }
.notfound-langs a:hover { color: var(--cyan); }
.notfound-titles { margin-top: 0.9rem; font-size: 0.75rem; color: rgba(169, 182, 196, 0.72); }
.notfound-titles a:hover { color: var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-top: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .split, .split-rev, .contact { grid-template-columns: 1fr; }
  .diagram { order: 2; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .topbar { padding-block: 0.85rem; }
  .nav-toggle { display: flex; }
  .panel {
    position: fixed; inset-inline: 0; top: var(--header-h); z-index: 55;
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
    padding: 1.7rem var(--gutter) 2rem;
    background: #06090d; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    transform: translateY(-130%); transition: transform 0.4s ease;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .topbar.is-open .panel { transform: none; }
  .nav { flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
  .nav a { font-size: 0.78rem; }
  .lang { border-inline-start: 0; padding-inline-start: 0; flex-wrap: wrap; gap: 0.4rem; }
  .lang a { border: 1px solid var(--line); padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .lang a.is-active { border-color: rgba(111, 211, 199, 0.6); }
  .hero { padding-top: 6.5rem; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .metric { border-inline-end: 0; border-bottom: 1px solid var(--line-soft); padding-block: 1rem; }
  .contact-cols { grid-template-columns: 1fr; }
  .node-row { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.15rem, 9.5vw, 2.9rem); }
  .actions .btn { width: 100%; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .principles li { grid-template-columns: 1fr; gap: 0.4rem; }
  .visual-label { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Modo QA estático (capturas) ---------- */
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
html.static .hero-copy, html.static .hero-visual, html.static .card, html.static .principles li, html.static .node { opacity: 1 !important; transform: none !important; }
html.static .orbit { transform: rotate(12deg); }
html.clean .topbar { display: none; }
html.clean .section { scroll-margin-top: 0; }
html.clean .hero { padding-top: clamp(3rem, 8vw, 6rem); }

/* ---------- Impresión ---------- */
@media print {
  .topbar, .hero-visual, .actions, .to-top, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section, .section-2, .foot { background: #fff !important; color: #000 !important; }
  .hero-copy, .card, .principles li, .node { opacity: 1 !important; transform: none !important; }
  h1, h2, h3, b, p, a { color: #000 !important; }
  .metal { background: none; color: #000 !important; -webkit-text-fill-color: #000; }
}

/* --- Hamev Global · cuatro brazos estratégicos --- */
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.node-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .node-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .node-row { grid-template-columns: 1fr; } }

/* --- Hamev Global · páginas internas (proyectos / gobernanza) --- */
.page-hero { padding: clamp(7rem, 12vw, 10.5rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; margin-top: 1.2rem; }
.page-hero .lead { margin-top: 1.4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.page-section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line-soft); }
.page-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.fact { border: 1px solid var(--line); padding: 1.15rem 1.2rem; background: rgba(255,255,255,0.015); }
.fact .mono { color: var(--copper); }
.fact p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.6; color: #9aa7b4; }
.stack { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line-soft); }
.stack-item { display: grid; grid-template-columns: 42px 1fr; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); }
.stack-item .mono { color: var(--copper); padding-top: 0.2rem; }
.stack-item b { font-family: var(--display); font-weight: 500; color: var(--white); }
.stack-item p { margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.65; color: #93a0ad; }
.doc-list { list-style: none; margin-top: 1.8rem; border-top: 1px solid var(--line-soft); }
.doc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: #a6b2bf; }
.doc-list .mono { color: var(--copper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
