/* ============================================================================
   CorpoReal — Sistema de diseño corporativo
   Marca 2026: Nostradamus #395874 · Mckenna #CDA861 · Blue Black #010B23
   Tipografías: Archivo (proxy de Racleys, display) + Inter (texto)
   Tono: sobrio, premium, arquitectónico. Azul/negro dominante, dorado mínimo.
   ============================================================================ */

:root {
  /* Marca */
  --ink:        #010B23;   /* Blue Black */
  --ink-2:      #0A1838;
  --blue:       #395874;   /* Nostradamus */
  --blue-d:     #2B4459;
  --blue-l:     #51728F;
  --gold:       #CDA861;   /* Mckenna */
  --gold-d:     #B08D45;
  --gray:       #CFD2D6;   /* Comforting Blue Gray */

  /* Neutros */
  --bg:         #FFFFFF;
  --bg-2:       #F5F6F8;
  --bg-3:       #ECEEF1;
  --paper:      #FBFCFD;
  --txt:        #010B23;
  --txt-2:      #4A5A70;
  --txt-3:      #8A95A5;
  --line:       rgba(1,11,35,.12);
  --line-2:     rgba(1,11,35,.07);
  --on-dark:    rgba(255,255,255,.92);
  --on-dark-2:  rgba(255,255,255,.60);
  --on-dark-3:  rgba(255,255,255,.34);

  /* Tipografía (driven by tweaks) */
  --f-display: "Archivo", system-ui, -apple-system, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "Archivo", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: 40px;

  /* Hero (driven by tweak heroVariant) */
  --hero-min: 90vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }
.section--tight { padding: 84px 0; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--ink2 { background: var(--ink-2); color: var(--on-dark); }
.section--paper { background: var(--bg-2); }
.divider { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ── Tipografía ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-d);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold); }

.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
.h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0; text-wrap: balance;
}
.h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08;
  letter-spacing: -.018em; margin: 0; text-wrap: balance;
}
.h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(21px, 2vw, 27px); line-height: 1.15;
  letter-spacing: -.01em; margin: 0;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.62;
  color: var(--txt-2); margin: 0; max-width: 58ch; text-wrap: pretty;
}
.lede--light { color: var(--on-dark-2); }
.muted { color: var(--txt-2); }
em, .em { font-style: italic; color: var(--gold-d); font-family: var(--f-display); }
.section--dark em, .section--dark .em, .section--ink2 em { color: var(--gold); }

/* index numbers / technical labels */
.idx {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 13px; letter-spacing: .12em; color: var(--gold-d);
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600;
  letter-spacing: .02em;
  padding: 16px 28px; border: 1px solid transparent; border-radius: 2px;
  transition: all .22s cubic-bezier(.4,0,.2,1); cursor: pointer;
  white-space: nowrap;
}
.btn .ar { transition: transform .22s; }
.btn:hover .ar { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-d); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--on-dark-3); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 18px 34px; font-size: 15.5px; }
.btn--block { width: 100%; justify-content: center; }

.txtlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
  transition: gap .2s, color .2s;
}
.txtlink .ar { transition: transform .2s; }
.txtlink:hover { gap: 13px; color: var(--blue); }
.txtlink--light { color: #fff; }
.txtlink--light:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════════
   HEADER (injected)
   ════════════════════════════════════════════════════════════════════════ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s, border-color .3s, box-shadow .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.hdr-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .3s;
}
.hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.hdr-logo img { height: 44px; width: auto; transition: height .3s; }
.hdr-nav { display: flex; align-items: center; gap: 30px; }
.hdr-link {
  position: relative; font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  color: var(--on-dark); padding: 6px 0; transition: color .2s;
}
.hdr-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s;
}
.hdr-link:hover::after, .hdr-link.is-active::after { width: 100%; }
.hdr-link.is-active { color: #fff; }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-cta { padding: 13px 22px; font-size: 13.5px; }

/* logo always white on the permanently-dark header */
.hdr-logo .logo-dark { display: none; }
.hdr-logo .logo-light { display: block; }

/* header carries a permanent dark background — present before any scroll */
.hdr {
  background: rgba(1,11,35,.86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255,255,255,.10);
}
.hdr .hdr-link { color: rgba(255,255,255,.82); }
.hdr .hdr-link:hover { color: #fff; }
.hdr .hdr-link.is-active { color: var(--gold); }
.hdr .burger span { background: #fff; }

/* ── Dropdown · En Desarrollo ─────────────────────────────────────────── */
.hdr-has-drop { position: relative; display: flex; align-items: center; }
.hdr-link--parent { display: inline-flex; align-items: center; gap: 6px; }
.hdr-caret { opacity: .65; transition: transform .25s ease, opacity .2s; }
.hdr-has-drop:hover .hdr-caret { transform: rotate(180deg); opacity: 1; }
.hdr-has-drop:hover > .hdr-link::after { width: 100%; }

.hdr-drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding-top: 16px; min-width: 318px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
.hdr-has-drop:hover .hdr-drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hdr-drop-inner {
  background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 60px -18px rgba(1,11,35,.55), 0 2px 8px rgba(1,11,35,.12);
  border: 1px solid rgba(1,11,35,.06);
  display: flex; flex-direction: column; gap: 2px;
}
.hdr-drop-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 16px; border-radius: 9px;
  transition: background .18s ease;
}
.hdr-drop-item:hover { background: var(--bg-2); }
.hdr-drop-item .hdi-l {
  font-family: var(--f-display); font-weight: 600; font-size: 16px;
  letter-spacing: -.01em; color: var(--ink); line-height: 1.2;
}
.hdr-drop-item .hdi-s {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--txt-3); text-transform: uppercase;
}
.hdr-drop-item:hover .hdi-l { color: var(--gold-d); }
.hdr-drop-item.is-all {
  flex-direction: row; align-items: center; gap: 8px;
  margin-top: 4px; padding-top: 15px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
}
.hdr-drop-item.is-all .hdi-l {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  color: var(--gold-d); text-transform: none;
}
.hdr-drop-item.is-all::after { content: "→"; color: var(--gold-d); font-size: 14px; }

/* mobile sub-links under a parent item — collapsible accordion */
.mob-subs {
  overflow: hidden; max-height: 0;
  transition: max-height .32s ease;
}
.mob-item.is-expanded .mob-subs { max-height: 360px; }
.mob-subs-inner { display: flex; flex-direction: column; padding: 4px 0 10px; }
.mobnav a.mob-sublink {
  font-family: var(--f-body); font-size: 16px; font-weight: 500;
  color: var(--on-dark-2); padding: 10px 0 10px 18px;
  border-left: 2px solid rgba(255,255,255,.14);
  margin-left: 2px; transition: color .2s, border-color .2s;
}
.mobnav a.mob-sublink:hover { color: var(--gold); border-color: var(--gold); }

/* footer sub-link (MR2) */
.ftr-sub { padding-left: 14px; opacity: .92; position: relative; }
.ftr-sub::before { content: "→"; position: absolute; left: 0; opacity: .5; font-size: 12px; }

/* solid (scrolled) — deepen + compact slightly */
.hdr.is-solid {
  background: rgba(1,11,35,.94);
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.6);
}
.hdr.is-solid .hdr-inner { padding-top: 15px; padding-bottom: 15px; }
.hdr.is-solid .hdr-logo img { height: 38px; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: 0; padding: 9px;
}
.burger span { display: block; height: 1.6px; width: 100%; background: #fff; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mobile menu */
.mobnav {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: none; flex-direction: column; padding: 92px var(--gutter) 28px;
  overflow-y: auto;
}
.mobnav.is-open { display: flex; }
.mobnav.is-open .mob-link,
.mobnav.is-open .mob-item { animation: mobItemIn .4s cubic-bezier(.2,.7,.3,1) backwards; }
.mobnav.is-open .mob-link:nth-child(1), .mobnav.is-open .mob-item:nth-child(1) { animation-delay: .04s; }
.mobnav.is-open .mob-link:nth-child(2), .mobnav.is-open .mob-item:nth-child(2) { animation-delay: .08s; }
.mobnav.is-open .mob-link:nth-child(3), .mobnav.is-open .mob-item:nth-child(3) { animation-delay: .12s; }
.mobnav.is-open .mob-link:nth-child(4), .mobnav.is-open .mob-item:nth-child(4) { animation-delay: .16s; }
.mobnav.is-open .mob-link:nth-child(5), .mobnav.is-open .mob-item:nth-child(5) { animation-delay: .20s; }
.mobnav.is-open .mob-link:nth-child(6), .mobnav.is-open .mob-item:nth-child(6) { animation-delay: .24s; }
@keyframes mobItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mob-row { display: flex; align-items: center; }
.mobnav a.mob-link {
  flex: 1;
  font-family: var(--f-display); font-weight: 500; font-size: 25px;
  color: var(--on-dark); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .15s;
}
.mob-item .mob-row .mob-link { border-bottom: 0; }
.mob-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobnav a.mob-link .idx { color: var(--on-dark-3); font-family: var(--f-mono); font-size: 14px; }
.mobnav a.mob-link:hover { color: var(--gold); }
.mob-acc {
  flex-shrink: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 0; border-radius: 11px; color: var(--on-dark-2);
  cursor: pointer; transition: background .15s, color .15s;
}
.mob-acc:hover { background: rgba(255,255,255,.12); color: var(--gold); }
.mob-acc svg { transition: transform .25s ease; }
.mob-item.is-expanded .mob-acc { background: var(--gold); color: var(--ink); }
.mob-item.is-expanded .mob-acc svg { transform: rotate(180deg); }
.mobnav .mob-foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobnav .mob-foot a { color: var(--on-dark-2); font-size: 14px; display: flex; align-items: center; gap: 10px; }

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,11,35,.62) 0%, rgba(1,11,35,.38) 40%, rgba(1,11,35,.78) 100%);
}
.hero-content { position: relative; z-index: 2; }

/* — Variant A: editorial split (default) — */
.hero--split { background: var(--bg); padding: 0; min-height: var(--hero-min); display: flex; }
.hero--split .hero-split-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; align-items: stretch;
}
.hero--split .hero-split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px var(--gutter) 90px; max-width: calc(var(--maxw) / 2 + 80px);
  margin-left: auto;
}
.hero--split .hero-split-media { position: relative; overflow: hidden; background: var(--bg-3); }
.hero--split .hero-split-media img { width: 100%; height: 100%; object-fit: cover; }
.hero--split .hero-split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(1,11,35,.18), transparent 45%);
}
.hero--split .hero-tag-float {
  position: absolute; left: 0; bottom: 36px; z-index: 3;
  background: var(--ink); color: #fff; padding: 18px 26px;
  display: flex; align-items: center; gap: 18px; max-width: 86%;
}
.hero--split .hero-tag-float .idx { color: var(--gold); }
.hero--split .hero-tag-float .htf-t { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.hero--split .hero-tag-float .htf-s { font-size: 12.5px; color: var(--on-dark-2); }

/* — Variant B: full-bleed dark photo — */
.hero--bleed { min-height: var(--hero-min); display: flex; align-items: flex-end; }
.hero--bleed .hero-content {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 110px; color: #fff;
}
.hero--bleed .hero-content .display { color: #fff; }

/* — Variant C: minimal typographic on deep blue — */
.hero--type { background: var(--ink); color: #fff; min-height: var(--hero-min);
  display: flex; align-items: center; position: relative; }
.hero--type::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(57,88,116,.40), transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 95%, rgba(205,168,97,.10), transparent 70%);
}
.hero--type .hero-content { width: 100%; }
.hero--type .hero-type-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.hero--type .display { color: #fff; }
.hero--type .hero-type-side { padding-bottom: 8px; border-left: 1px solid rgba(255,255,255,.14); padding-left: 32px; }
.hero--type .hero-strip { margin-top: 60px; display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.hero--type .hero-strip .hs-cell { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-2); }
.hero--type .hero-strip .hs-cell img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .6s; }
.hero--type .hero-strip .hs-cell:hover img { opacity: 1; transform: scale(1.05); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.hero-copy-lede { margin-top: 26px; }

/* hero KPIs */
.hero-kpis { display: flex; gap: 0; margin-top: 54px; flex-wrap: wrap; }
.hero-kpi { padding-right: 44px; margin-right: 44px; border-right: 1px solid var(--line); }
.hero-kpi:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.section--dark .hero-kpi, .hero--type .hero-kpi, .hero--bleed .hero-kpi { border-right-color: rgba(255,255,255,.16); }
.hero-kpi .k-v { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px,3vw,42px); line-height: 1; letter-spacing: -.02em; }
.hero-kpi .k-l { font-size: 12.5px; color: var(--txt-2); margin-top: 8px; letter-spacing: .02em; }
.hero--type .hero-kpi .k-l, .hero--bleed .hero-kpi .k-l { color: var(--on-dark-2); }
.hero--bleed .hero-kpi .k-v, .hero--type .hero-kpi .k-v { color: #fff; }

/* page hero (interior pages) */
.phero { background: var(--ink); color: #fff; padding: 190px 0 90px; position: relative; overflow: hidden; }
.phero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 90% 0%, rgba(57,88,116,.45), transparent 65%);
}
.phero .wrap { position: relative; z-index: 2; }
.phero .display, .phero .h1 { color: #fff; }
.phero-crumb { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--on-dark-2); margin-bottom: 28px; }
.phero-crumb a:hover { color: var(--gold); }
.phero-crumb .sep { color: var(--on-dark-3); }
.phero-lede { margin-top: 26px; max-width: 62ch; color: var(--on-dark-2); }
.phero-media { margin-top: 56px; aspect-ratio: 21/8; overflow: hidden; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════════════════════════════════════ */
.block-head { max-width: 720px; margin-bottom: 64px; }
.block-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.block-head .h2 { margin-top: 22px; }
.block-head .lede { margin-top: 22px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 8px 28px 8px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.section--dark .stat + .stat { border-left-color: rgba(255,255,255,.14); }
.stat .s-v { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px,3.4vw,50px); line-height: 1; letter-spacing: -.02em; }
.stat .s-v .u { color: var(--gold-d); }
.section--dark .stat .s-v .u { color: var(--gold); }
.stat .s-l { font-size: 13.5px; color: var(--txt-2); margin-top: 12px; line-height: 1.4; }
.section--dark .stat .s-l { color: var(--on-dark-2); }

/* feature split (text + image) */
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.fsplit--rev .fsplit-media { order: -1; }
.fsplit-media { position: relative; overflow: hidden; }
.fsplit-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.fsplit-media .media-tag {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px;
}
.fsplit-body .h2 { margin-top: 22px; }
.fsplit-body .lede { margin-top: 22px; }

/* service / value cards */
.cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cards--3 { grid-template-columns: repeat(3,1fr); }
.cards--2 { grid-template-columns: repeat(2,1fr); }
.card-row {
  padding: 40px 36px 44px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background .25s; position: relative;
}
.cards--3 .card-row:nth-child(3n) { border-right: 0; }
.cards--2 .card-row:nth-child(2n) { border-right: 0; }
.card-row:hover { background: var(--bg-2); }
.card-row .idx { display: block; margin-bottom: 26px; }
.card-row .h3 { margin-bottom: 14px; }
.card-row p { color: var(--txt-2); font-size: 15.5px; line-height: 1.6; margin: 0; }
.section--dark .cards { border-top-color: rgba(255,255,255,.14); }
.section--dark .card-row { border-color: rgba(255,255,255,.14); }
.section--dark .card-row:hover { background: rgba(255,255,255,.03); }
.section--dark .card-row p { color: var(--on-dark-2); }

/* project cards grid */
.projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; }
.projects--3 { grid-template-columns: repeat(3,1fr); }
.proj {
  position: relative; overflow: hidden; background: var(--ink); display: block;
  aspect-ratio: 4/3.1;
}
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1), opacity .4s; }
.proj:hover img { transform: scale(1.06); }
.proj::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,11,35,0) 38%, rgba(1,11,35,.86) 100%);
  transition: opacity .3s;
}
.proj-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; color: #fff; }
.proj-meta .p-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.proj-meta .p-name { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.05; margin-top: 10px; letter-spacing: -.01em; }
.proj-meta .p-sub { font-size: 13.5px; color: var(--on-dark-2); margin-top: 8px; opacity: 0; transform: translateY(8px); transition: .3s; }
.proj:hover .proj-meta .p-sub { opacity: 1; transform: translateY(0); }
.proj-badge {
  position: absolute; top: 0; left: 0; z-index: 3;
  background: var(--gold); color: var(--ink); font-family: var(--f-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px;
}
.proj--wide { grid-column: span 2; aspect-ratio: auto; }

/* portfolio extra list */
.port-extra { display: flex; flex-wrap: wrap; gap: 12px 10px; margin-top: 44px; }
.port-chip {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--txt-2); padding: 10px 18px; border: 1px solid var(--line);
}
.section--dark .port-chip { color: var(--on-dark-2); border-color: rgba(255,255,255,.16); }

/* mr2 featured band */
.mr2band { background: var(--ink-2); color: #fff; overflow: hidden; }
.mr2band-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.mr2band-media { position: relative; overflow: hidden; min-height: 480px; background: var(--ink); }
.mr2band-media img,
.mr2band-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* striped placeholder slot (imagen por definir) */
.ph-slot {
  width: 100%; height: 100%; min-height: inherit;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 16px, var(--bg-3) 16px 32px);
}
.ph-slot.is-dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 16px, rgba(255,255,255,.085) 16px 32px); }
.ph-slot.is-abs { position: absolute; inset: 0; }
.ph-slot span {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--txt-3); padding: 0 24px;
}
.ph-slot.is-dark span { color: var(--on-dark-3); }
.mr2band-prog {
  position: absolute; left: 32px; bottom: 32px; right: 32px; z-index: 2;
  background: rgba(1,11,35,.72); backdrop-filter: blur(6px); padding: 18px 22px;
}
.mr2band-prog .mp-top { display: flex; justify-content: space-between; align-items: baseline; }
.mr2band-prog .mp-l { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.mr2band-prog .mp-v { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--gold); }
.mr2band-prog .mp-bar { height: 4px; background: rgba(255,255,255,.15); margin-top: 12px; }
.mr2band-prog .mp-bar i { display: block; height: 100%; background: var(--gold); width: 78%; }
.mr2band-body { padding: 90px 70px; display: flex; flex-direction: column; justify-content: center; }
.mr2band-body .h2 { color: #fff; margin-top: 22px; }
.mr2band-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin: 40px 0; }
.mr2band-feat .f-v { font-family: var(--f-display); font-weight: 600; font-size: 28px; color: #fff; letter-spacing: -.01em; }
.mr2band-feat .f-l { font-size: 13px; color: var(--on-dark-2); margin-top: 5px; }

/* instagram */
.ig-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 48px; }
.ig-live {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d);
}
.ig-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #E0245E; box-shadow: 0 0 0 0 rgba(224,36,94,.5); animation: pulse 2s infinite; }
.ig-follow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); padding: 14px 24px; transition: .2s;
}
.ig-follow:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.section--dark .ig-follow { border-color: rgba(255,255,255,.18); color: #fff; }
.section--dark .ig-follow:hover { background: #fff; color: var(--ink); }
.ig-behold { width: 100%; min-height: 300px; }
.ig-behold behold-widget { display: block; width: 100%; }
.ig-fallback { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
.ig-cell { aspect-ratio: 1; overflow: hidden; position: relative; background: var(--bg-3); display: block; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-cell:hover img { transform: scale(1.06); }
.ig-cell::after {
  content: ""; position: absolute; inset: 0; background: rgba(1,11,35,.0); transition: .25s;
}
.ig-cell:hover::after { background: rgba(1,11,35,.32); }

/* cta band */
.ctaband { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ctaband::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 0%, rgba(57,88,116,.42), transparent 60%);
}
.ctaband .wrap { position: relative; z-index: 2; }
.ctaband-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.ctaband .h2 { color: #fff; }
.ctaband-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ctaband-actions .btn { width: 100%; justify-content: space-between; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-card { background: var(--bg); border: 1px solid var(--line); padding: 48px; }
.form-grid { display: grid; gap: 20px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-2); }
.field label .opt { text-transform: none; letter-spacing: 0; opacity: .6; font-family: var(--f-body); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 16px; color: var(--txt);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; outline: none; transition: .18s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,88,116,.14);
}
.form-legal { font-size: 12.5px; color: var(--txt-3); line-height: 1.55; margin: 0; }
.form-sent { text-align: center; padding: 40px 20px; }
.form-sent .h3 { margin-bottom: 12px; }
.form-check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(57,88,116,.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}

/* contact info rows */
.cinfo { display: flex; flex-direction: column; }
.cinfo-row { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cinfo-row:first-child { padding-top: 0; }
.cinfo-ico { width: 26px; flex-shrink: 0; color: var(--gold-d); margin-top: 2px; }
.section--dark .cinfo-ico { color: var(--gold); }
.cinfo-l { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); }
.section--dark .cinfo-l { color: var(--on-dark-3); }
.cinfo-v { font-size: 17px; color: var(--txt); margin-top: 5px; line-height: 1.5; }
.section--dark .cinfo-v { color: #fff; }
.cinfo-v a:hover { color: var(--blue); }
.section--dark .cinfo-row { border-bottom-color: rgba(255,255,255,.12); }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.faq-cat { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin: 56px 0 8px; }
.faq-cat:first-child { margin-top: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18px,1.7vw,21px); color: var(--ink); letter-spacing: -.01em;
}
.faq-q .pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--gold-d); transition: transform .3s; }
.faq-q .pm::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q .pm::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.is-open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-a-inner { padding: 0 60px 30px 0; color: var(--txt-2); font-size: 16px; line-height: 1.65; }
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════════════════
   FOOTER (injected)
   ════════════════════════════════════════════════════════════════════════ */
.ftr { background: var(--ink); color: var(--on-dark-2); }
.ftr-top { padding: 88px var(--gutter) 64px; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr .9fr 1fr 1.25fr; gap: 44px; }
.ftr-brand img { height: 46px; margin-bottom: 24px; }
.ftr-brand p { font-size: 14.5px; line-height: 1.6; max-width: 34ch; color: var(--on-dark-2); margin: 0 0 26px; }
.ftr-socials { display: flex; gap: 12px; }
.ftr-soc { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: var(--on-dark-2); transition: .2s; }
.ftr-soc:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ftr-col h4 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); margin: 0 0 22px; font-weight: 600; }
.ftr-col a, .ftr-col .ftr-txt { display: block; font-size: 14.5px; color: var(--on-dark-2); padding: 7px 0; transition: color .2s; }
.ftr-col a:hover { color: #fff; }
.ftr-col a.ftr-feat { color: var(--gold); font-weight: 600; }
.ftr-col a.ftr-feat:hover { color: #fff; }
.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--on-dark-3);
}
.ftr-bottom .fb-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr-bottom a:hover { color: var(--on-dark-2); }

/* ── WhatsApp FAB ────────────────────────────────────────────────────── */
.wafab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.5); transition: transform .2s;
  animation: pulse-wa 2.6s infinite;
}
.wafab:hover { transform: scale(1.07); }

/* ── Map (contacto) ──────────────────────────────────────────────────── */
.map-wrap { width: 100%; aspect-ratio: 21/9; border-radius: 4px; overflow: hidden; background: var(--bg-3); }
.map-embed { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 880px) { .map-wrap { aspect-ratio: 4/3; } }
@media (max-width: 600px) { .map-wrap { aspect-ratio: 1/1; } }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,36,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(224,36,94,0); } 100% { box-shadow: 0 0 0 0 rgba(224,36,94,0); } }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); } 50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0); } }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  :root { --gutter: 30px; }
  .hdr-nav { gap: 22px; }
  .fsplit { gap: 48px; }
  .mr2band-body { padding: 64px 48px; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .hdr-nav { display: none; }
  .hdr-right .hdr-cta { display: none; }
  .burger { display: flex; }
  .section { padding: 84px 0; }
  .section--tight { padding: 60px 0; }
  .block-head { margin-bottom: 44px; }

  .hero--split .hero-split-grid { grid-template-columns: 1fr; }
  .hero--split .hero-split-text { padding: 130px var(--gutter) 60px; max-width: none; margin: 0; }
  .hero--split .hero-split-media { min-height: 56vh; }
  .hero--type .hero-type-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero--type .hero-type-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-left: 0; padding-top: 24px; }
  .hero--bleed .hero-content { padding-bottom: 70px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
  .stat { background: var(--bg); padding: 28px 22px !important; border: 0 !important; }
  .section--dark .stat { background: var(--ink); }
  .section--paper .stat { background: var(--bg-2); }

  .fsplit { grid-template-columns: 1fr; gap: 32px; }
  .fsplit--rev .fsplit-media { order: 0; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .card-row { border-right: 0 !important; padding: 32px 0; }
  .projects, .projects--3 { grid-template-columns: 1fr; }
  .proj--wide { grid-column: span 1; aspect-ratio: 4/3.1; }

  .mr2band-grid { grid-template-columns: 1fr; }
  .mr2band-media { min-height: 340px; }

  .ctaband-grid { grid-template-columns: 1fr; gap: 36px; }
  .ig-fallback { grid-template-columns: repeat(3,1fr); }

  .form-card { padding: 28px; }
  .form-row2 { grid-template-columns: 1fr; }

  .ftr-top { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; }

  .phero { padding: 150px 0 64px; }
  .phero-media { aspect-ratio: 16/10; margin-top: 40px; }

  .hero-kpis { gap: 0; }
  .hero-kpi { padding-right: 26px; margin-right: 26px; }
}
@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .ig-fallback { grid-template-columns: repeat(2,1fr); }
  .hero-kpis { flex-direction: row; }
  .hero-kpi { padding-right: 18px; margin-right: 18px; }
  .hero-kpi .k-l { font-size: 11px; }
  .btn { padding: 14px 22px; }
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS (phones)
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .mr2band-body { padding: 56px 30px; }
  .mr2band-feats { gap: 22px 26px; margin: 32px 0; }
  .mr2band-media { min-height: 300px; }
}
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .block-head { margin-bottom: 34px; }

  /* full-width, tap-friendly buttons */
  .hero-actions { width: 100%; gap: 12px; }
  .hero-actions .btn { width: 100%; flex: 1 1 100%; justify-content: center; }

  /* MR2 band / video */
  .mr2band-body { padding: 44px 22px; }
  .mr2band-feats { grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 28px 0; }
  .mr2band-media { min-height: 230px; }
  .mr2band-prog { left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; }

  .phero { padding: 128px 0 54px; }

  .stat { padding: 24px 16px !important; }

  .wafab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .mobnav { padding: 84px var(--gutter) 24px; }
  .mobnav a.mob-link { font-size: 22px; padding: 12px 0; }
  .ftr-soc { width: 46px; height: 46px; }
  .btn--lg { padding: 16px 24px; font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════════════
   MR2 LANDING WRAPPER (CorpoReal header/footer around the bundled landing)
   ════════════════════════════════════════════════════════════════════════ */
.mr2wrap { background: var(--ink); min-height: 100vh; }
.mr2wrap-frame {
  display: block; width: 100%; border: 0; background: var(--ink);
}
.mr2wrap-loading {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease; color: var(--on-dark-2);
}
.mr2wrap-loading.is-hidden { opacity: 0; pointer-events: none; }
.mr2wrap-loading img { height: 30px; opacity: .9; }
.mr2wrap-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18); border-top-color: var(--gold);
  animation: mr2spin .8s linear infinite;
}
.mr2wrap-loading span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
@keyframes mr2spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════════
   EXIT-INTENT POPUP
   ════════════════════════════════════════════════════════════════════════ */
body.exitpop-lock { overflow: hidden; }
.exitpop {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.exitpop.is-open { display: flex; }
.exitpop-backdrop {
  position: absolute; inset: 0; background: rgba(1,11,35,.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: epfade .3s ease;
}
.exitpop-card {
  position: relative; z-index: 1; width: min(900px, 100%);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 110px -22px rgba(0,0,0,.55);
  animation: eprise .38s cubic-bezier(.2,.7,.3,1);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.exitpop-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(1,11,35,.07); color: var(--ink); font-size: 14px; cursor: pointer;
  transition: background .2s;
}
.exitpop-x:hover { background: rgba(1,11,35,.14); }
.exitpop-grid { display: grid; grid-template-columns: .92fr 1.08fr; }
.exitpop-aside {
  background: var(--ink); color: #fff; padding: 46px 42px;
  display: flex; flex-direction: column; justify-content: center;
}
.exitpop-logo { height: 34px; width: auto; margin-bottom: 22px; }
.exitpop-h {
  font-family: var(--f-display); font-weight: 600; font-size: 27px; line-height: 1.15;
  letter-spacing: -.015em; margin: 16px 0 14px;
}
.exitpop-p { font-size: 15px; line-height: 1.6; color: var(--on-dark-2); margin: 0; }
.exitpop-feats { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 30px; }
.exitpop-feats span { font-size: 12.5px; color: var(--on-dark-3); }
.exitpop-feats b { display: block; font-family: var(--f-display); font-size: 25px; color: var(--gold); font-weight: 700; line-height: 1.1; margin-bottom: 2px; }
.exitpop-form.form-card {
  border: 0; background: #fff; padding: 42px;
  display: flex; flex-direction: column; justify-content: center;
}
.exitpop-form .field { margin-bottom: 15px; }
.exitpop-form .form-legal { margin-top: 14px; }
@keyframes epfade { from { opacity: 0; } }
@keyframes eprise { from { opacity: 0; transform: translateY(22px) scale(.98); } }
@media (max-width: 720px) {
  .exitpop { padding: 14px; }
  .exitpop-grid { grid-template-columns: 1fr; }
  .exitpop-aside { padding: 34px 26px 26px; }
  .exitpop-feats { margin-top: 22px; }
  .exitpop-form.form-card { padding: 26px; }
  .exitpop-x { background: rgba(255,255,255,.16); color: #fff; }
  .exitpop-x:hover { background: rgba(255,255,255,.3); }
}
