/* =========================================================
   HSB COMPANY — Design tokens (versión clara)
   Concepto: sigue siendo el "Centro de Operaciones" (NOC),
   pero ahora sobre fondo blanco: paneles oscuros puntuales
   (terminal, banner) actúan como "ventanas" al mundo técnico
   dentro de una página clara, cercana y profesional.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-panel: #f0f2f5;
  --ink: #10131a;
  --dark: #0b1220;
  --dark-panel: #121b2e;
  --dark-panel-2: #16223a;
  --line: rgba(16, 19, 26, 0.09);
  --line-strong: rgba(16, 19, 26, 0.15);
  --text: #1a1f2b;
  --text-muted: #5c6473;
  --text-faint: #8891a0;
  --on-dark: #eef1f6;
  --on-dark-muted: #93a0b5;

  --accent: #d93a40;
  --accent-dim: #b52d33;
  --accent-tint: #fdeceb;
  --accent-2: #12946e;
  --accent-2-dim: #0d7256;
  --accent-2-tint: #e7f6f0;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2-dim);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(18, 148, 110, 0.4);
  animation: pulse-dot 2.2s infinite;
}
.eyebrow.on-dark { color: #6be3bd; }
.eyebrow.on-dark::before { background: #6be3bd; }

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(18, 148, 110, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(18, 148, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 148, 110, 0); }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 108px 0; position: relative; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(217, 58, 64, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(217, 58, 64, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2-dim); transform: translateY(-2px); }
.btn-on-dark { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-on-dark:hover { border-color: #6be3bd; color: #6be3bd; }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 13px 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(16,19,26,0.35);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand .brand-dot { color: var(--accent); }
.brand small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }

.status-chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2-dim);
  border: 1px solid rgba(18,148,110,0.28);
  background: var(--accent-2-tint);
  padding: 7px 13px; border-radius: 999px;
}
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: pulse-dot 2.2s infinite; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--text); width: 40px; height: 40px;
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 200px 0 110px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -180px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,58,64,0.09), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 520px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.hero-meta strong { color: var(--text); font-family: var(--font-body); font-weight: 600; }

/* Terminal — signature element, dark card floating on the white page */
.terminal {
  background: linear-gradient(180deg, var(--dark-panel), var(--dark-panel-2));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 70px -24px rgba(16,19,26,0.35);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.terminal-bar .t-label { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); }
.terminal-body { padding: 22px 20px 26px; font-family: var(--font-mono); font-size: 13.5px; min-height: 260px; color: var(--on-dark); }
.terminal-line { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); animation: term-in .4s ease forwards; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); }
.terminal-line:last-child { border-bottom: none; }
.terminal-line .ok { color: #6be3bd; }
.terminal-line .warn { color: #f0b53c; }
.terminal-line .path { color: var(--on-dark-muted); }
@keyframes term-in { to { opacity: 1; transform: translateY(0); } }
.terminal-caret { display: inline-block; width: 8px; height: 15px; background: #6be3bd; margin-left: 2px; animation: caret-blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Trust bar ---------- */
.trust { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.trust .container { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: space-between; }
.trust-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.trust-logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--text-faint); transition: color .25s ease; }
.trust-logos span:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .30s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .37s; }

/* ---------- Split image+text section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  box-shadow: 0 30px 60px -28px rgba(16,19,26,0.35);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .credit {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: rgba(255,255,255,0.85);
  background: rgba(10,15,28,0.35);
  padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.split-body h2 { font-size: clamp(26px, 3vw, 36px); }
.split-body p { color: var(--text-muted); font-size: 16px; margin-bottom: 14px; }
.split-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.split-list .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-2-tint); color: var(--accent-2-dim);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(217,58,64,0.3); box-shadow: 0 20px 40px -26px rgba(16,19,26,0.3); }
.pillar .icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 18px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- CTA banner (image background) ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 70px 56px;
  isolation: isolate;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(8,12,22,0.92) 20%, rgba(8,12,22,0.55) 65%, rgba(8,12,22,0.35));
}
.cta-banner-content { max-width: 560px; }
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.cta-banner p { color: rgba(238,241,246,0.82); font-size: 16.5px; margin-bottom: 30px; }
.cta-banner .credit { position: absolute; bottom: 14px; right: 18px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,0.55); }

/* ---------- Service list ---------- */
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 60px 1fr 1.3fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-row .num { font-family: var(--font-mono); color: var(--text-faint); font-size: 13px; padding-top: 4px; }
.service-row h3 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.service-row h3 .icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-2-tint); color: var(--accent-2-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-row p, .service-row li { color: var(--text-muted); font-size: 15px; margin: 0; }
.service-row ul { margin-top: 10px; }
.service-row ul li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.service-row ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1.5px; background: var(--accent); }
.service-row .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.service-row .tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 999px; }

.service-break {
  margin: 10px 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 240px;
}
.service-break img { width: 100%; height: 100%; object-fit: cover; }
.service-break .caption {
  position: absolute; left: 20px; bottom: 16px;
  color: #fff; font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(10,15,28,0.45); padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(3px);
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 70px 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(42px, 6vw, 64px); font-weight: 700; color: var(--ink); line-height: 1; }
.stat .num .accent { color: var(--accent-2-dim); }
.stat .label { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Diferenciales ---------- */
.diff-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
.diff-media { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/4.6; box-shadow: 0 30px 60px -28px rgba(16,19,26,0.35); }
.diff-media img { width: 100%; height: 100%; object-fit: cover; }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diff-card { background: #fff; padding: 30px 26px; transition: background .3s ease; }
.diff-card:hover { background: var(--bg-soft); }
.diff-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.diff-card h3 { font-size: 17px; margin-bottom: 8px; }
.diff-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; align-items: center; transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(16,19,26,0.3); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; flex-shrink: 0; }
.team-card h4 { font-size: 16px; margin: 0 0 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-2-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.team-card .desc { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-info h2 { font-size: clamp(28px, 3.4vw, 40px); }
.offices { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.office { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.office .flag { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.office p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.office strong { color: var(--ink); }

.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-form .badge { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); border: 1px solid rgba(217,58,64,0.3); background: var(--accent-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-2-tint); }
.field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { margin-top: 22px; width: 100%; justify-content: center; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg-soft); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); max-width: 320px; font-size: 14.5px; margin-top: 12px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent-2-dim); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }
.back-top { border: 1px solid var(--line-strong); border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, transform .2s ease; }
.back-top:hover { border-color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-row .num { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .diff-wrap { grid-template-columns: 1fr; }
  .diff-media { aspect-ratio: 16/9; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .status-chip span.chip-text { display: none; }
  .hero { padding: 150px 0 80px; }
  .section { padding: 72px 0; }
  .pillars { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .trust .container { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 46px 26px; }
}

.nav-links.is-open {
  display: flex; position: fixed; top: 64px; left: 16px; right: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; flex-direction: column; gap: 4px;
  box-shadow: 0 24px 50px -18px rgba(16,19,26,0.3);
}
.nav-links.is-open a { padding: 10px 6px; border-radius: 8px; }
.nav-links.is-open a:hover { background: var(--bg-soft); }

/* =========================================================
   ESTRUCTURA TIPO MICROSOFT.COM
   Mega-nav superior + hero de bienvenida a pantalla completa +
   grid mosaico de tarjetas + secciones por audiencia + footer
   masivo multi-columna.
   ========================================================= */

/* ---------- Topbar (mega-nav oscuro) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 6px;
  height: 46px; overflow-x: auto; scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #fff; padding: 0 16px 0 0; margin-right: 6px;
  border-right: 1px solid rgba(255,255,255,0.14); flex-shrink: 0;
}
.topbar-logo .dot { color: #ef5a60; }
.topbar-link {
  flex-shrink: 0;
  font-size: 13px; color: rgba(255,255,255,0.72);
  padding: 0 13px; height: 46px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.topbar-link:hover { color: #fff; border-color: #ef5a60; }
.topbar-cta {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--dark); background: #fff;
  padding: 7px 15px; border-radius: 999px;
  transition: background .2s ease;
}
.topbar-cta:hover { background: #e8ecf3; }

/* ---------- Hero de bienvenida a pantalla completa ---------- */
.hero-full {
  position: relative;
  min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-full::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,22,0.15) 0%, rgba(8,12,22,0.55) 62%, rgba(8,12,22,0.88) 100%);
}
.hero-full-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px 56px; width: 100%; }
.hero-greeting {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75); margin-bottom: 10px;
}
.hero-full h1 {
  color: #fff; font-size: clamp(32px, 4.6vw, 54px);
  max-width: 780px; margin-bottom: 22px;
}
.hero-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.hero-tab {
  font-family: var(--font-mono); font-size: 13px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.hero-tab.is-active { background: #fff; color: var(--dark); border-color: #fff; }
.hero-tab:not(.is-active):hover { border-color: #fff; }
.hero-quicklinks { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-quicklinks a {
  color: rgba(255,255,255,0.9); font-size: 14.5px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px; transition: border-color .2s ease, color .2s ease;
}
.hero-quicklinks a:hover { color: #fff; border-color: #fff; }
.hero-full .credit {
  position: absolute; bottom: 12px; right: 16px; z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,0.6);
}

/* ---------- Card grid mosaico ---------- */
.card-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(16,19,26,0.32); border-color: var(--line-strong); }
.promo-card.span-2 { grid-column: span 2; }
.promo-card.span-2row { grid-row: span 2; }
.promo-media { aspect-ratio: 16/10; overflow: hidden; }
.promo-card.span-2row .promo-media { aspect-ratio: 16/13; flex: 1; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.promo-card:hover .promo-media img { transform: scale(1.04); }
.promo-media.icon-tile { display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent); }
.promo-media.icon-tile.mint { background: var(--accent-2-tint); color: var(--accent-2-dim); }
.promo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-body h3 { font-size: 17px; margin: 0; }
.promo-body p { font-size: 13.5px; color: var(--text-muted); margin: 0; flex: 1; }
.promo-link { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2-dim); margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }
.promo-card:hover .promo-link { gap: 8px; }

/* ---------- Segmento por audiencia ---------- */
.segment-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.segment-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.segment-links { display: flex; gap: 22px; flex-wrap: wrap; }
.segment-links a { font-size: 14px; color: var(--accent-2-dim); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.segment-links a:hover { border-color: var(--accent-2-dim); }

.chip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 20px; transition: border-color .3s ease, transform .3s ease; }
.chip-card:hover { transform: translateY(-4px); border-color: rgba(217,58,64,0.3); }
.chip-card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.chip-card h4 { font-size: 15.5px; margin: 0 0 6px; }
.chip-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------- Story cards (editorial) ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .3s ease, transform .3s ease; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(16,19,26,0.32); }
.story-media { aspect-ratio: 16/10; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 22px; }
.story-body .eyebrow { margin-bottom: 8px; }
.story-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.story-body p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }
.story-body a { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2-dim); }

/* ---------- Mega footer ---------- */
.mega-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.mega-footer .container { max-width: 1400px; }
.mega-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mega-footer-col h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.42); margin-bottom: 18px; }
.mega-footer-col a, .mega-footer-col p { display: block; font-size: 13.5px; color: rgba(255,255,255,0.68); margin-bottom: 11px; transition: color .2s ease; }
.mega-footer-col a:hover { color: #fff; }
.mega-footer-bottom {
  max-width: 1400px; margin: 0 auto; padding: 22px 24px 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.4);
}
.locale-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 6px 14px; color: rgba(255,255,255,0.7);
}

@media (max-width: 980px) {
  .card-mosaic { grid-template-columns: repeat(2, 1fr); }
  .promo-card.span-2 { grid-column: span 2; }
  .chip-row { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .mega-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-full { min-height: 560px; }
}
@media (max-width: 680px) {
  .card-mosaic { grid-template-columns: 1fr; }
  .promo-card.span-2 { grid-column: span 1; }
  .chip-row { grid-template-columns: 1fr; }
  .mega-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .segment-head { align-items: flex-start; }
  .hero-tabs { flex-wrap: wrap; }
}
