/* ============================================================
   MARVEZ SOLUTIONS — Corporate web layer (Capa A)
   Source of truth: Sistema de Marca V1.1 §06 §07 §08 §10
   Radius 0 · no gradients · no glass · line & surface hierarchy
   ============================================================ */

:root {
  /* color */
  --brand-primary: #0B2747;
  --brand-secondary: #1E54A8;
  --brand-accent: #FF7A00;
  --brand-digital: #00C2EB;
  --surface-deep: #0B0F14;
  --surface-navy: #0B2747;
  --surface-panel: #0E2E52;
  --surface-default: #FFFFFF;
  --surface-subtle: #F2F4F7;
  --text-primary: #0B0F14;
  --text-secondary: #5C6673;
  --text-tertiary: #6B7280;
  --text-inverse: #FFFFFF;
  --border-default: #C7CDD6;
  --border-dark: #1D4573;
  --status-success: #1B6B4A;
  --status-error: #9B3535;

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* space (base 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s20: 80px; --s28: 112px; --s36: 144px;

  /* layout */
  --content-max: 1180px;
  --wide-max: 1440px;
  --gutter: clamp(24px, 6vw, 96px);

  /* line */
  --hair: 1px; --accent-line: 2px; --rule: 3px;
  --radius-btn: 2px;

  /* motion */
  --m-fast: 120ms; --m-base: 220ms; --m-slow: 420ms;
  --ease: cubic-bezier(.2,.6,.2,1);

  --shadow-overlay: 0 8px 32px rgba(11,39,71,.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-secondary); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand-accent); color: var(--brand-primary); }
:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 2px; }
.dark :focus-visible, .on-dark :focus-visible { outline-color: var(--brand-digital); }

.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; }

/* ---------- type scale (§07) ---------- */
.t-display { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 7.2vw, 104px); line-height: .98; letter-spacing: -.035em; }
.t-h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -.02em; }
.t-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.015em; }
.t-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.t-body { font-size: 16px; line-height: 1.65; }
.t-small { font-size: 14px; line-height: 1.55; }
.t-label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.t-data { font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 1.5; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }
.two-tone em, .two-tone .alt { font-style: normal; color: var(--text-tertiary); }
.dark .two-tone em, .dark .two-tone .alt { color: rgba(255,255,255,.5); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--content-max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--wide-max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 9vw, 144px); }
.section-tight { padding-block: clamp(56px, 6vw, 96px); }
.dark { background: var(--surface-navy); color: var(--text-inverse); }
.deep { background: var(--surface-deep); color: var(--text-inverse); }
.dark .muted, .deep .muted { color: rgba(255,255,255,.72); }
.dark .dim, .deep .dim { color: rgba(255,255,255,.56); }
.dark a, .deep a { color: var(--brand-digital); }
.white { background: var(--surface-default); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; }
@media (max-width: 1023px) { .grid-12 { grid-template-columns: repeat(8, 1fr); column-gap: 20px; } }
@media (max-width: 767px) { .grid-12 { grid-template-columns: repeat(4, 1fr); column-gap: 16px; } }

/* ---------- chip (section tag, §08 replacing lime tag of reference) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 10px;
  background: var(--brand-accent); color: var(--brand-primary);
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.chip-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.dark .chip-ghost, .deep .chip-ghost { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.28); }
.chip-navy { background: var(--brand-primary); color: #fff; }
.chip-cyan { background: var(--brand-digital); color: var(--brand-primary); }

/* section header pattern */
.sec-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) { .sec-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; } .sec-head > .sec-aside { padding-bottom: 6px; } }
.sec-head .chip { margin-bottom: 20px; }
.sec-aside { max-width: 420px; color: var(--text-secondary); }
.dark .sec-aside { color: rgba(255,255,255,.72); }

/* ---------- buttons (§10) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 20px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  transition: background-color var(--m-fast) var(--ease), color var(--m-fast) var(--ease), border-color var(--m-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: #0A2340; }
.btn-accent { background: var(--brand-accent); color: var(--brand-primary); }
.btn-accent:hover { background: #EB7000; }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.dark .btn-outline, .deep .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.dark .btn-outline:hover, .deep .btn-outline:hover { background: #fff; color: var(--brand-primary); border-color: #fff; }
.btn-white { background: #fff; color: var(--brand-primary); }
.btn-white:hover { background: #E9EDF2; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand-secondary); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--m-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.dark .link-arrow { color: #fff; }

/* ---------- register marks (§08 · 03) ---------- */
.reg { position: relative; }
.reg::before, .reg::after, .reg > .reg-b::before, .reg > .reg-b::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: currentColor; border-style: solid; border-width: 0;
}
.reg::before { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.reg::after { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.reg > .reg-b::before { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.reg > .reg-b::after { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.reg-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: rgba(11,15,20,.72); color: #fff; }
.reg.on-photo { color: rgba(255,255,255,.85); }

/* ---------- operating grid background (§08 · 01) — only on deep surfaces ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center;
  color: #fff;
  transition: background-color var(--m-base) var(--ease), color var(--m-base) var(--ease), border-color var(--m-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.header .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header .logo img { height: 34px; width: auto; }
.header .logo .logo-color { display: none; }
.header.is-solid { background: rgba(255,255,255,.96); color: var(--text-primary); border-bottom-color: var(--border-default); }
.header.is-solid .logo .logo-white { display: none; }
.header.is-solid .logo .logo-color { display: block; }
.header.is-solid .btn-white { background: var(--brand-primary); color: #fff; }
.header.is-solid .btn-white:hover { background: #0A2340; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; color: inherit; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand-accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { height: 40px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .nav { display: flex; } .nav-toggle { display: none; } }
@media (max-width: 1023px) { .header-actions .btn { display: none; } }

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--surface-navy); color: #fff; padding: 96px var(--gutter) 40px; display: none; flex-direction: column; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--border-dark); font-family: var(--font-display); font-weight: 600; font-size: 28px; color: #fff; letter-spacing: -.02em; }
.mobile-nav .t-label { color: rgba(255,255,255,.56); margin: 32px 0 8px; }
.mobile-nav .btn {
  display: inline-flex;
  height: 44px;
  margin-top: 32px;
  padding: 0 20px;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  letter-spacing: normal;
}
.mobile-close { position: fixed; top: 14px; right: var(--gutter); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; z-index: 61; }
.mobile-close svg { width: 24px; height: 24px; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  color: #fff; background: var(--surface-navy); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* single flat legibility veil over the whole frame — no gradient, no hard band edge */
  background: rgba(9,28,54,.52);
}
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 112px; padding-bottom: 56px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 32px; color: rgba(255,255,255,.82); }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta i { width: 6px; height: 6px; background: var(--brand-accent); }
.hero-title { max-width: 15ch; text-shadow: 0 1px 24px rgba(6,18,36,.35); }
.hero-title .alt { color: rgba(255,255,255,.62); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.22); background: rgba(11,15,20,.55); }
.hero-strip .container-wide { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hero-strip .container-wide { grid-template-columns: repeat(3, 1fr); } }
.hero-strip a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 768px) { .hero-strip a { border-bottom: 0; padding-right: 24px; } .hero-strip a + a { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); } }
.hero-strip a:hover .strip-title { color: var(--brand-accent); }
.hero-strip .t-label { color: rgba(255,255,255,.56); }
.strip-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; transition: color var(--m-fast) var(--ease); }
.hero-strip svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }
.hero-reg { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,.7); }
.hero-reg.tl { top: 88px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.hero-reg.tr { top: 88px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.hero-tag { position: absolute; z-index: 2; top: 92px; right: 48px; color: rgba(255,255,255,.7); }
@media (max-width: 767px) { .hero-tag { display: none; } }

/* ============================================================
   INTRO STATEMENT + BENTO
   ============================================================ */
.statement { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .statement { grid-template-columns: 3fr 9fr; gap: 48px; } }
.statement .t-h2 { max-width: 30ch; font-weight: 500; }
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(48px, 5vw, 80px); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-default); border: 1px solid var(--border-default); padding: 28px; display: flex; flex-direction: column; min-height: 380px; position: relative; }
.card-top { border-top: var(--rule) solid var(--brand-primary); }
.card .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 6vw, 84px); line-height: .95; letter-spacing: -.035em; }
.card .grow { flex: 1; }
.card-navy { background: var(--surface-navy); color: #fff; border-color: var(--surface-navy); }
.card-photo { padding: 0; overflow: hidden; color: #fff; border: 0; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo .card-photo-body { position: relative; z-index: 1; margin-top: auto; padding: 28px; background: rgba(11,15,20,.72); }
.card-photo .reg-marks { position: absolute; inset: 0; z-index: 1; color: rgba(255,255,255,.85); }
.quote-mark { width: 28px; height: 28px; color: var(--brand-primary); }
.card-navy .quote-mark { color: var(--brand-accent); }
.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.card-foot .sym { width: 36px; height: 36px; border: 1px solid var(--border-default); display: grid; place-items: center; }
.card-foot .sym img { width: 22px; height: auto; }
.quad { width: 100%; height: auto; color: var(--brand-primary); margin-top: 24px; }

/* ============================================================
   TECHNICAL SECTION (drawing)
   ============================================================ */
.tech { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .tech { grid-template-columns: 5fr 7fr; gap: 48px; align-items: stretch; } }
.tech-cards { display: grid; gap: 16px; align-content: start; }
.tech-card { background: var(--surface-default); border: 1px solid var(--border-default); padding: 24px 28px; }
.tech-card .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tech-card .dot { width: 10px; height: 10px; background: var(--brand-digital); }
.tech-card .dot.o { background: var(--brand-accent); }
.tech-card .val { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.03em; line-height: 1; margin: 16px 0 8px; }
.tech-card.navy { background: var(--surface-navy); color: #fff; border-color: var(--surface-navy); }
.tech-card.navy .muted { color: rgba(255,255,255,.72); }
.drawing { background: var(--surface-default); border: 1px solid var(--border-default); padding: 24px; position: relative; }
.drawing svg { width: 100%; height: auto; }
.drawing .reg-tag { background: var(--brand-primary); }
.drawing-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--border-default); }

/* ============================================================
   DIVISIONS (expandable list)
   ============================================================ */
.divisions { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .divisions { grid-template-columns: 5fr 7fr; gap: 64px; } }
.div-list { display: grid; gap: 12px; }
.div-item { background: var(--surface-default); border: 1px solid var(--border-default); }
.div-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; text-align: left; }
.div-head .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--text-tertiary); }
.div-head .name { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.div-head .name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--text-secondary); margin-top: 4px; }
.div-head .cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-default); font-size: 14px; font-weight: 600; gap: 8px; }
.div-head .cta svg { width: 14px; height: 14px; }
.div-body { display: none; padding: 0 28px 28px; }
.div-item.is-open { background: var(--surface-navy); color: #fff; border-color: var(--surface-navy); }
.div-item.is-open .div-head .num { color: var(--brand-accent); }
.div-item.is-open .div-head .name small { color: rgba(255,255,255,.7); }
.div-item.is-open .div-head .cta { border-color: transparent; background: var(--brand-accent); color: var(--brand-primary); }
.div-item.is-open .div-body { display: block; }
.div-body p { color: rgba(255,255,255,.8); max-width: 52ch; }
.div-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
@media (max-width: 640px) { .div-specs { grid-template-columns: 1fr; } }
.div-specs .t-label { color: rgba(255,255,255,.56); margin-bottom: 8px; }
.div-specs .v { font-weight: 500; font-size: 15px; }
.div-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; max-width: 360px; }
.div-photos figure { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.div-photos img { width: 100%; height: 100%; object-fit: cover; }
.div-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: rgba(11,15,20,.72); color: #fff; }
.div-aside-label { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: var(--text-secondary); }
.div-aside-label i { width: 8px; height: 8px; background: var(--brand-primary); }

/* ============================================================
   PROCESS — full-bleed photo with counter (01/04)
   ============================================================ */
.process { position: relative; color: #fff; background: var(--surface-navy); min-height: 640px; display: flex; align-items: stretch; overflow: hidden; }
.process-media { position: absolute; inset: 0; }
.process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--m-slow) var(--ease); }
.process-media img.is-active { opacity: 1; }
.process-media::after { content: ""; position: absolute; inset: 0; background: rgba(11,15,20,.5); }
.process-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(48px, 6vw, 80px); }
.process-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.process-counter { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.03em; line-height: 1; margin-top: 24px; }
.process-counter .alt { color: rgba(255,255,255,.45); }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: clamp(48px, 8vw, 120px); align-items: end; }
@media (min-width: 1024px) { .process-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.process-nav { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.3); }
.process-nav button { flex: 1; text-align: left; padding: 16px 0 0; color: rgba(255,255,255,.55); position: relative; }
.process-nav button::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent; }
.process-nav button.is-active { color: #fff; }
.process-nav button.is-active::before { background: var(--brand-accent); }
.process-nav .t-label { display: block; margin-bottom: 6px; }
.process-nav .n { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
@media (max-width: 767px) { .process-nav { flex-wrap: wrap; } .process-nav button { flex: 1 1 50%; padding-right: 12px; } }
.process-text .t-h1 { max-width: 16ch; }
.process-text p { max-width: 52ch; color: rgba(255,255,255,.8); margin-top: 20px; }
.process-arrows { display: flex; gap: 8px; }
.process-arrows button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; color: #fff; transition: background-color var(--m-fast); }
.process-arrows button:hover { background: rgba(255,255,255,.12); }
.process-arrows svg { width: 16px; height: 16px; }

/* ============================================================
   AUDIENCES
   ============================================================ */
.audiences { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .audiences { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.aud { background: var(--surface-default); border: 1px solid var(--border-default); border-top: var(--rule) solid var(--brand-primary); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-height: 360px; }
.aud .t-h3 { max-width: 16ch; }
.aud dl { display: grid; gap: 14px; margin: 0; }
.aud dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.aud dd { margin: 0; font-size: 15px; line-height: 1.55; }
.aud .entry { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-default); font-weight: 500; }

/* ============================================================
   QUALIFICATION BAND
   ============================================================ */
.band { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: clamp(40px, 5vw, 64px); background: var(--surface-navy); color: #fff; border-top: var(--rule) solid var(--brand-accent); }
@media (min-width: 1024px) { .band { grid-template-columns: 7fr 5fr; gap: 64px; } }
.band .t-h2 { max-width: 24ch; }
.band ul { display: grid; gap: 10px; margin-top: 20px; }
.band li { display: flex; gap: 12px; align-items: baseline; color: rgba(255,255,255,.8); }
.band li::before { content: ""; width: 8px; height: 8px; background: var(--brand-accent); flex: none; position: relative; top: -1px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-self: start; }
@media (min-width: 1024px) { .band-actions { justify-self: end; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface-deep); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 48px; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 6fr 6fr; gap: 64px; } }
.footer-title { max-width: 16ch; }
.footer-title .alt { color: rgba(255,255,255,.45); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-cols .t-label { color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-cols a, .footer-cols p { color: #fff; font-size: 15px; line-height: 1.6; }
.footer-cols a:hover { color: var(--brand-accent); }
.footer-cols ul a { display: block; padding: 3px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.56); }
.footer-bottom img { height: 28px; width: auto; }
.footer-word { padding-top: 24px; overflow: hidden; }
.footer-word img { width: min(100%, 720px); height: auto; opacity: .95; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { position: relative; background: var(--surface-navy); color: #fff; padding-top: 160px; padding-bottom: clamp(56px, 6vw, 96px); overflow: hidden; }
.page-hero.has-media { min-height: 72svh; display: flex; align-items: flex-end; }
.page-hero .media { position: absolute; inset: 0; }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .media::after { content: ""; position: absolute; inset: 0; background: rgba(11,39,71,.6); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.6); margin-bottom: 28px; flex-wrap: wrap; }
.page-hero .crumbs a { color: rgba(255,255,255,.6); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .t-h1, .page-hero .t-display { max-width: 16ch; }
.page-hero .t-display { font-size: clamp(38px, 6vw, 88px); }
.page-hero .lead { max-width: 56ch; color: rgba(255,255,255,.82); margin-top: 24px; }
.page-hero .hero-actions { margin-top: 32px; }

.service-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border-default); }
.service-row { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border-default); }
@media (min-width: 768px) { .service-row { grid-template-columns: 80px 4fr 6fr; gap: 24px; } }
.service-row .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--text-tertiary); padding-top: 6px; }
.service-row .t-h3 { max-width: 20ch; }
.service-row p { color: var(--text-secondary); max-width: 58ch; }
.service-row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-default); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); border-bottom: 2px solid var(--brand-primary); }
.spec-table td:first-child { font-weight: 500; }
.spec-table .mono { font-family: var(--font-mono); font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--surface-default); border: 1px solid var(--border-default); }
.table-wrap table { min-width: 640px; }

.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }
.split .sticky { position: sticky; top: 100px; }
.photo-block { position: relative; overflow: hidden; }
.photo-block img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.photo-block .reg-marks { position: absolute; inset: 0; color: rgba(255,255,255,.85); }

.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--surface-default); border: 1px solid var(--border-default); padding: 28px; min-height: 260px; display: flex; flex-direction: column; gap: 16px; }
.pillar .n { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -.03em; line-height: 1; color: var(--brand-secondary); }
.pillar p { color: var(--text-secondary); margin-top: auto; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border-default); background: var(--surface-default); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 28px; border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.fact .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.fact .v.pending { color: var(--text-tertiary); }
.fact .t-label { color: var(--text-tertiary); }
.manifesto { max-width: 46ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; }
.manifesto p + p { margin-top: 1em; }
.manifesto .alt { color: rgba(255,255,255,.55); }

/* other divisions nav (inner pages) */
.other-div { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .other-div { grid-template-columns: repeat(2, 1fr); } }
.other-div a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; background: var(--surface-default); border: 1px solid var(--border-default); color: var(--text-primary); }
.other-div a:hover { border-color: var(--brand-primary); }
.other-div a .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--text-tertiary); }
.other-div a .name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.other-div a svg { width: 16px; height: 16px; }

/* ---------- forms (§10) ---------- */
.form { display: grid; gap: 20px; }
.form .row-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--surface-default); border: 1px solid var(--border-default); border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color var(--m-fast) var(--ease);
}
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-secondary); outline: 2px solid var(--brand-secondary); outline-offset: 0; }
.field.error input { border-color: var(--status-error); }
.field .msg { display: none; margin-top: 6px; font-size: 13px; color: var(--status-error); }
.field.error .msg { display: block; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230B0F14' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-note { font-size: 13px; color: var(--text-tertiary); }
.alert { display: none; padding: 16px 20px; border-left: 3px solid var(--status-success); background: var(--surface-default); border-top: 1px solid var(--border-default); border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.alert.is-visible { display: block; }
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-side .block { padding: 24px; background: var(--surface-default); border: 1px solid var(--border-default); }
.contact-side .block .t-label { color: var(--text-tertiary); margin-bottom: 10px; }
.contact-side .block p { font-size: 15px; }
.contact-side .block .pending { color: var(--text-tertiary); font-style: normal; }

/* ---------- reveal on scroll (§10 motion: 16px, one axis, 420ms) ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity var(--m-slow) var(--ease), transform var(--m-slow) var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 80ms; } .rv-d2 { transition-delay: 160ms; } .rv-d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* logo symbol on dark surfaces: reverse white only (§05 NO·01) */
.card-navy .sym img, .dark .sym img, .deep .sym img { filter: brightness(0) invert(1); }

/* hamburger / close drawn with bars (no SVG dependency) */
.bars { position: relative; display: block; width: 22px; height: 16px; }
.bars i { position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 7px; } .bars i:nth-child(3) { top: 14px; }
.bars.is-x i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.bars.is-x i:nth-child(2) { opacity: 0; }
.bars.is-x i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* outline buttons over dark heroes */
.hero .btn-outline, .page-hero .btn-outline, .band .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover, .page-hero .btn-outline:hover, .band .btn-outline:hover { background: #fff; color: var(--brand-primary); border-color: #fff; }

/* header CTA must never shrink */
.header-actions { flex: none; }
.header .logo { flex: none; }
.btn { flex-shrink: 0; }

/* hidden attribute always wins */
[hidden] { display: none !important; }

/* ---------- dotted Venezuela map (bento 2018 card) ----------
   Contorno real (Natural Earth 50m) proyectado; aspecto 281x240. */
.map-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 0 8px; }
.map-ve { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 220px; }
.map-ve .dot { fill: var(--brand-primary); }
.map-ve .dot-fade { fill: var(--border-default); }
.map-ve .node { fill: var(--brand-accent); }
.map-ve .outline { fill: none; stroke: var(--brand-primary); stroke-width: 1; opacity: .22; }

/* hero meta labels: tighter wrap on small screens */
@media (max-width: 640px) { .hero-meta { gap: 10px 16px; } }

/* ============================================================
   MOBILE CARD CAROUSELS (≤767px)
   Peer-card grids become horizontal swipe rows with snap, so a
   section is one swipe instead of four screens of vertical scroll.
   Desktop/tablet grids are untouched. Next-card peek = affordance.
   ============================================================ */
@media (max-width: 767px) {
  .bento, .tech-cards, .audiences, .pillars {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    /* bleed to the screen edges, keep first/last aligned to the gutter */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .bento::-webkit-scrollbar,
  .tech-cards::-webkit-scrollbar,
  .audiences::-webkit-scrollbar,
  .pillars::-webkit-scrollbar { height: 0; display: none; }

  .bento > *, .tech-cards > *, .audiences > *, .pillars > * {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  /* photo tiles (facilities bento) keep a sensible height as slides */
  .bento > .photo-block { flex-basis: 78%; max-width: 78%; aspect-ratio: 4/5; }
  /* trim tall min-heights so slides aren't oversized on small screens */
  .card { min-height: 340px; }
  .aud { min-height: 320px; }
  .pillar { min-height: 220px; }
}

/* ============================================================
   MOBILE / TOUCH OPTIMISATION — auditoría UI/UX
   1. anti-desborde  2. áreas táctiles ≥44px  3. hover→táctil
   4. feedback :active  5. legibilidad de diagramas  6. safe areas
   ============================================================ */

/* ---- 1. Anti-desborde: los hijos de grid/flex deben poder encogerse.
        Sin esto, una tabla con min-width empuja toda la página. ---- */
.split > *, .tech > *, .divisions > *, .sec-head > *, .statement > *,
.band > *, .footer-top > *, .grid-12 > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* ---- 2. Acordeón de divisiones: cabecera y enlace ya no anidados ---- */
.div-head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.div-toggle {
  flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: center; text-align: left; padding: 24px 0 24px 28px; min-height: 44px;
}
.div-item.is-open .div-toggle { color: #fff; }

/* ---- 3. Hover solo donde existe puntero fino; en táctil no se "pega" ---- */
@media (hover: none) {
  .link-arrow:hover svg { transform: none; }
  .btn-primary:hover { background: var(--brand-primary); }
  .btn-accent:hover { background: var(--brand-accent); }
  .btn-outline:hover { background: transparent; color: var(--brand-primary); }
  .hero .btn-outline:hover, .page-hero .btn-outline:hover, .band .btn-outline:hover,
  .dark .btn-outline:hover, .deep .btn-outline:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
  .btn-white:hover { background: #fff; }
  .other-div a:hover { border-color: var(--border-default); }
  .hero-strip a:hover .strip-title { color: #fff; }
  .footer-cols a:hover { color: #fff; }
  .nav a:hover { border-bottom-color: transparent; }
  .process-arrows button:hover { background: transparent; }
}

/* ---- 4. Feedback táctil: el sitio no daba ninguna señal al tocar ---- */
a, button, [role="button"] { -webkit-tap-highlight-color: rgba(255,122,0,.18); }
.btn:active { transform: translateY(1px); }
.btn-primary:active { background: #071C33; }
.btn-accent:active { background: #D96C00; }
.btn-white:active { background: #DDE3EA; }
.btn-outline:active { background: rgba(11,39,71,.08); }
.hero .btn-outline:active, .page-hero .btn-outline:active, .band .btn-outline:active { background: rgba(255,255,255,.16); }
.div-toggle:active, .other-div a:active, .hero-strip a:active,
.service-row:active, .process-nav button:active { background: rgba(11,39,71,.05); }
.div-item.is-open .div-toggle:active { background: rgba(255,255,255,.06); }
.cta:active { background: rgba(11,39,71,.08); }

/* ---- 5. Diagramas técnicos: a tamaño de diseño, con paneo horizontal ---- */
@media (max-width: 900px) {
  .diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .diagram-scroll > svg { min-width: 560px; }
  .drawing .diagram-scroll > svg { min-width: 660px; }
}

/* ---- 6. Safe areas (notch / barra inferior iOS) ---- */
@supports (padding: max(0px)) {
  .header .container-wide,
  .hero .container-wide,
  .footer .container-wide,
  .container, .container-wide {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .mobile-nav { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
}

/* ============================================================
   ≤767px — ajustes finos
   ============================================================ */
@media (max-width: 767px) {

  /* --- áreas táctiles --- */
  .header .logo { display: flex; align-items: center; min-height: 44px; }
  .div-head { flex-direction: column; align-items: stretch; padding: 0; }
  .div-toggle { padding: 20px 20px 14px; grid-template-columns: auto 1fr; gap: 14px; }
  .div-head .cta { margin: 0 20px 20px; min-height: 44px; justify-content: center; }
  .div-item.is-open .div-body { padding: 0 20px 24px; }
  .page-hero .crumbs { gap: 10px; }
  .page-hero .crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 4px; }
  .link-arrow { min-height: 44px; }
  .footer-cols ul a { padding: 11px 0; }
  .contact-side .block a { display: inline-flex; align-items: center; min-height: 44px; }
  .service-row .tags .chip { height: 28px; }

  /* --- hero interior: menos aire muerto arriba --- */
  .page-hero { padding-top: 104px; padding-bottom: clamp(40px, 8vw, 64px); }
  .page-hero.has-media { min-height: 78svh; }
  .page-hero .t-display { font-size: clamp(34px, 9vw, 46px); }
  .page-hero .lead { margin-top: 20px; }
  .page-hero .hero-actions { margin-top: 24px; }
  .page-hero .hero-actions .btn { flex: 1 1 auto; min-width: 46%; }

  /* --- hero home --- */
  .hero-inner { padding-top: 96px; padding-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 46%; }
  .hero-meta { gap: 8px 14px; margin-bottom: 24px; }

  /* --- sticky no aporta en una sola columna --- */
  .split .sticky { position: static; top: auto; }

  /* --- proceso: control manual, sin auto-avance (ver JS) --- */
  .process { min-height: 0; }
  .process-inner { padding-top: 88px; padding-bottom: 40px; }
  .process-grid { margin-top: 40px; gap: 28px; }
  .process-nav button { min-height: 56px; padding: 14px 8px 0 0; }
  .process-counter { margin-top: 16px; }
  .process-top { align-items: center; }

  /* --- tabla: aviso de que se desliza --- */
  .table-wrap { position: relative; }
  .table-scroll-hint { display: block; }

  /* --- footer: una columna es más legible que dos apretadas --- */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* --- formulario --- */
  .form .row-2 { gap: 16px; }
  .form button[type="submit"] { width: 100%; }
  .form > div:last-child { flex-direction: column-reverse; align-items: stretch; gap: 12px; }

  /* --- banda CTA --- */
  .band-actions { width: 100%; }
  .band-actions .btn { flex: 1 1 auto; }
}

/* ---- ≤380px: los dos botones ya no caben lado a lado ---- */
@media (max-width: 380px) {
  .hero-actions .btn, .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .div-toggle .name { font-size: 19px; }
}

/* ---- pantallas bajas: el menú móvil debe poder desplazarse ---- */
.mobile-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* aviso de deslizamiento: solo donde el contenido realmente se desplaza */
.scroll-hint { display: none; margin-top: 10px; color: var(--text-tertiary); }
.dark .scroll-hint, .deep .scroll-hint { color: rgba(255,255,255,.56); }
@media (max-width: 900px) { .scroll-hint { display: block; } }
.drawing .scroll-hint { padding-left: 0; }

/* enlace "saltar al contenido": debe verse cuando recibe foco */
.sr-only:focus, .sr-only:focus-visible {
  position: fixed; top: 12px; left: 12px; z-index: 80;
  width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--brand-accent); color: var(--brand-primary);
  font-weight: 600; border-radius: var(--radius-btn);
}

/* ============================================================
   CAPA DE DISEÑO MÓVIL — decisiones propias, no "escritorio apilado"
   ============================================================ */

/* ---- A. Barra de acción persistente (en móvil no había ningún CTA fijo) ---- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 10px;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11,39,71,.97);
  border-top: 1px solid var(--border-dark);
  transform: translateY(100%);
  transition: transform var(--m-base) var(--ease);
}
.mobile-bar .btn { flex: 1; height: 48px; }
.mobile-bar.is-visible { transform: none; }
@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  /* el pie no debe quedar tapado por la barra */
  body.has-mobile-bar .footer-bottom { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ---- WhatsApp: acceso preparado, sin número asociado todavía ---- */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 10px 28px rgba(11,15,20,.24);
  cursor: default;
  transition: transform var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease);
}
.whatsapp-fab img { width: 28px; height: 28px; }
.whatsapp-fab::before {
  content: "Próximamente";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 10px;
  background: var(--surface-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity var(--m-fast) var(--ease), transform var(--m-fast) var(--ease);
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,15,20,.28); }
.whatsapp-fab:hover::before,
.whatsapp-fab:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 767px) {
  .whatsapp-fab {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab img { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-fab::before { transition: none; }
}

/* ---- B. Tablas: en móvil cada fila es una ficha, sin scroll horizontal ---- */
@media (max-width: 767px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table-wrap table { min-width: 0; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
  .spec-table tr {
    background: var(--surface-default);
    border: 1px solid var(--border-default);
    border-top: var(--rule) solid var(--brand-primary);
    padding: 18px 18px 8px; margin-bottom: 12px;
  }
  .spec-table td { border: 0; padding: 0 0 14px; }
  .spec-table td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-family: var(--font-mono); font-weight: 500; font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary);
  }
  .spec-table td:first-child { font-weight: 600; font-size: 17px; }
  .spec-table td.mono { font-family: var(--font-mono); font-size: 13px; }
}

/* ---- C. Hero: dejar asomar la sección siguiente (afordancia de scroll) ---- */
@media (max-width: 767px) {
  .hero { min-height: 92svh; }
  .page-hero.has-media { min-height: 72svh; }
}


/* ---- language switch (ES / EN) ---- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 40px; padding: 0 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em;
  color: inherit; border: 1px solid currentColor; opacity: .82;
  transition: opacity var(--m-fast) var(--ease), background-color var(--m-fast) var(--ease);
}
.lang-switch:hover, .lang-switch:focus-visible { opacity: 1; }
.header.is-solid .lang-switch { color: var(--brand-primary); }
.lang-switch-mobile { display: inline-flex; margin: 24px 0 0; align-self: flex-start; color: #fff; font-family: var(--font-mono); font-size: 12px; padding: 0 14px; height: 44px; border-color: rgba(255,255,255,.5); }
.mobile-nav .lang-switch-mobile { border-bottom: 1px solid rgba(255,255,255,.5); }
html[lang="en"] .whatsapp-fab::before { content: "Coming soon"; }
