/* ==========================================================================
   /ia-empresarial: the Meta ad landing (OpenAI Select Partner angle).
   Page-specific layer on top of /styles.css. Tokens and components come from
   the site (DESIGN.md); this file only composes them. No new colors, no new
   family, no new radius values.
   ========================================================================== */

/* Nav: brand + one CTA. No links out of the funnel besides the logo. */
.ia-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--paper); border-bottom: var(--rule);
}
.ia-nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}
.ia-nav .nav-brand { margin-right: 0; }
html { scroll-padding-top: 80px; }

/* Hero */
.ia-hero .hero-top { padding-top: 40px; padding-bottom: 72px; align-items: center; }
.ia-kicker {
  font-size: var(--t-setup); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink-2); margin-bottom: 10px;
}
.ia-h1, html[data-lang="es"] .ia-h1 { font-size: clamp(44px, 5.6vw, 80px); }
.ia-hero .hero-sub { max-width: 54ch; }
.ia-hero .hero-ctas { margin-top: 32px; }
.ia-cta-note { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.ia-risk {
  position: relative; margin-top: 6px; padding-left: 26px;
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink);
}
.ia-risk::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; }
.ia-hero .hero-partners { margin-top: 24px; }

/* The offer card (T3), built on the ledger card */
.ia-offer .log-card { position: relative; }
.ia-offer .log-status { background: var(--accent); border-color: var(--ink); }
.ia-offer-body { padding: 22px 24px 20px; }
.ia-offer-title {
  font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; font-stretch: var(--wdth-display);
  line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.ia-offer-meta {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.ia-offer-lede { margin-top: 18px; font-size: 16px; font-weight: 700; }
.ia-offer-list { list-style: none; margin-top: 8px; }
.ia-offer-list li {
  position: relative; padding: 9px 0 9px 32px;
  font-size: 15.5px; line-height: 1.45; border-top: var(--rule-thin);
}
.ia-offer-list li:first-child { border-top: 0; }
.ia-offer-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 800; line-height: 1;
  background: var(--accent-soft); border: 1.5px solid var(--ink); border-radius: var(--radius-xs);
}
.ia-offer-extra {
  margin-top: 14px; padding: 10px 12px;
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  background: var(--accent-wash); border: var(--rule-thin); border-radius: var(--radius-xs);
}
.ia-offer-extra + .ia-offer-extra { margin-top: 8px; }
.ia-offer-extra--risk { background: var(--panel); }
.ia-offer-foot { justify-content: flex-start; background: var(--accent-wash); }
.ia-host { display: inline-flex; align-items: center; gap: 12px; }
.ia-host img { width: 48px; height: 48px; padding: 6px; object-fit: contain; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.ia-host > span { display: flex; flex-direction: column; line-height: 1.3; }
.ia-host strong { font-size: 15px; }
.ia-host > span > span { font-size: 13px; color: var(--ink-2); }

/* Shared section bits */
.ia-h2 { margin-bottom: 20px; }
.ia-lede { max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 40px; }

/* VSL slot: hidden by default, revealed by ia.js only when the file exists */
.ia-vsl-section[hidden] { display: none; }
.ia-vsl {
  position: relative; margin-top: 12px;
  aspect-ratio: 16 / 9; max-width: 960px;
  background: #201E3D;
  border: var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  overflow: hidden;
}
.ia-vsl.is-portrait { aspect-ratio: 4 / 5; max-width: 520px; }
.ia-vsl video { display: block; width: 100%; height: 100%; object-fit: contain; background: #201E3D; }
.ia-vsl-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.ia-vsl-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.ia-vsl-poster { position: absolute; inset: 0; background: #201E3D center / cover no-repeat; }
.ia-vsl-btn {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; display: grid; place-items: center;
  background: var(--accent); color: #201E3D;
  border: 2px solid #201E3D; border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 #201E3D;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ia-vsl-btn svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.ia-vsl-play:hover .ia-vsl-btn { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #201E3D; }
.ia-vsl-play:active .ia-vsl-btn { transform: translate(4px, 4px); box-shadow: 0 0 0 #201E3D; }
.ia-vsl-note { margin-top: 20px; font-size: 15px; color: var(--ink-2); max-width: 62ch; }

/* The gap: two T1 columns, the right one ours (peach head) */
.ia-gap-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-1);
  overflow: hidden; background: var(--panel);
}
.ia-gap-col + .ia-gap-col { border-left: var(--rule); }
.ia-gap-col h3 {
  padding: 18px 24px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--panel-2); border-bottom: var(--rule);
}
.ia-gap-col--us h3 { background: var(--accent); color: var(--accent-ink); }
.ia-gap-col ul, .ia-fit-col ul { list-style: none; padding: 8px 0 12px; }
.ia-gap-col li, .ia-fit-col li {
  position: relative; padding: 11px 24px 11px 54px;
  font-size: 16px; line-height: 1.45; color: var(--ink-2);
}
.ia-gap-col li + li, .ia-fit-col li + li { border-top: 1px solid var(--panel-2); }
.ia-gap-col li.yes, .ia-fit-col li.yes { color: var(--ink); font-weight: 600; }
.ia-gap-col li::before, .ia-fit-col li::before {
  position: absolute; left: 24px; top: 11px; font-weight: 800; font-size: 16px;
}
.ia-gap-col li.yes::before, .ia-fit-col li.yes::before { content: "\2713"; color: var(--ink); }
.ia-gap-col li.no::before, .ia-fit-col li.no::before { content: "\2715"; color: var(--bad); }

/* Navy chapter: statement + what we build. Cards stay light with paper shadows. */
.ia-build .statement-h { margin-bottom: 56px; }
html[data-lang="es"] .ia-build .statement-h .shout { font-size: min(var(--t-shout), calc((100vw - 48px) / 9.6)); }
.ia-build-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ia-build-card {
  --ink: #201E3D; --ink-2: #4A4866; --panel: #FFFFFF;
  color: #201E3D; background: #FFFFFF;
  border: 2px solid #201E3D; border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 #F1F1F9;
  padding: 24px 22px 26px;
}
.ia-build-card:nth-child(1) { background: var(--accent); --ink-2: #201E3D; }
.ia-build-card:nth-child(1) .check-icon { background: #FFFFFF; }
.ia-build-card .check-icon { margin-bottom: 20px; }
.ia-build-card h3 { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.ia-build-card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* How it works: three moments in a row of T1 panels, joined by arrows */
.ia-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.ia-step {
  position: relative;
  background: var(--panel); border: var(--rule); border-radius: var(--radius-md);
  padding: 22px 24px 26px;
}
.ia-step:not(.ia-step--last)::after {
  content: "\2192"; position: absolute; right: -32px; top: 50%; translate: 0 -50%;
  font-size: 24px; font-weight: 800; color: var(--ink);
}
.ia-step-when {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; background: var(--accent-soft);
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
}
.ia-step:nth-child(2) .ia-step-when { background: var(--accent); }
.ia-step h3 { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.ia-step p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ia-inline-cta { margin-top: 48px; }

/* Proof */
.ia-case-grid { margin-bottom: 8px; }
.ia-fig { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ia-fig strong {
  display: block; font-weight: 800; font-stretch: var(--wdth-tall);
  font-size: 52px; line-height: .95; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.ia-proof .case-title { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; line-height: 1.5; }
.ia-proof .proof-clients { margin-top: 28px; display: block; }
.ia-proof .proof-clients .proof-oss-label { display: block; margin-bottom: 12px; }

/* Fit */
.ia-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.ia-fit-col { background: var(--panel); border: var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.ia-fit-col h3 { padding: 18px 24px; font-size: 20px; font-weight: 800; background: var(--accent-soft); border-bottom: var(--rule); }
.ia-fit-col--no h3 { background: var(--panel-2); }

/* Final CTA */
.ia-final .cta-sub { max-width: 58ch; }
.ia-final-fine { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.ia-final-fine a { text-decoration-color: var(--link-rule); }

/* Footer: the back cover, condensed */
.ia-footer .footer-boilerplate { margin-top: 0; padding-bottom: 8px; }

/* Sticky mobile CTA */
.ia-sticky { display: none; }
@media (max-width: 767px) {
  .ia-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: var(--rule);
    transform: translateY(110%);
    transition: transform .45s var(--ease-expo);
  }
  .ia-sticky.is-on { transform: none; }
  .ia-sticky-btn { width: 100%; height: 52px; font-size: 16px; padding: 0 16px; }
  .ia-page { padding-bottom: 76px; }
  .ia-sticky-btn .btn-label > span { text-shadow: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .ia-build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ia-hero .hero-top { padding-top: 32px; padding-bottom: 64px; }
  .ia-steps { grid-template-columns: 1fr; gap: 36px; max-width: 620px; }
  .ia-step:not(.ia-step--last)::after { content: "\2193"; right: auto; left: 32px; top: auto; bottom: -34px; translate: 0 0; }
  .ia-case-grid { grid-template-columns: 1fr 1fr; }
  .ia-case-grid .case-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); }
}
@media (max-width: 767px) {
  .ia-nav-bar { height: 60px; padding: 0 16px; gap: 10px; }
  .ia-nav .brand-mark { width: 26px; height: 26px; }
  .ia-nav .brand-word { font-size: 16px; }
  .ia-hero .hero-top { padding: 28px 20px 56px; gap: 48px; }
  .ia-h1, html[data-lang="es"] .ia-h1 { font-size: clamp(38px, 11vw, 54px); }
  .ia-kicker { font-size: 19px; }
  .ia-hero .hero-ctas { max-width: none; }
  .ia-hero .ia-cta { white-space: normal; height: auto; min-height: 56px; padding: 12px 22px; text-align: left; }
  /* Wrapped labels: drop the hover-roll copy (text-shadow), touch has no hover */
  .ia-cta .btn-label { line-height: 1.25; }
  .ia-cta .btn-label > span { text-shadow: none; }
  .ia-cta:focus-visible .btn-label > span { transform: none; }
  .ia-offer-body { padding: 18px 18px 16px; }
  .ia-lede { font-size: 17px; margin-bottom: 28px; }
  .ia-gap-grid, .ia-fit-grid { grid-template-columns: 1fr; }
  .ia-gap-col + .ia-gap-col { border-left: 0; border-top: var(--rule); }
  .ia-gap-col li, .ia-fit-col li { padding: 10px 18px 10px 46px; font-size: 15.5px; }
  .ia-gap-col li::before, .ia-fit-col li::before { left: 18px; top: 10px; }
  .ia-gap-col h3, .ia-fit-col h3 { padding: 16px 18px; font-size: 18px; }
  .ia-build-grid { grid-template-columns: 1fr; gap: 16px; }
  .ia-build-card { box-shadow: 4px 4px 0 #F1F1F9; }
  .ia-case-grid { grid-template-columns: 1fr; }
  .ia-case-grid .case-card:last-child { max-width: none; }
  .ia-inline-cta .ia-cta, .ia-final .ia-cta { width: 100%; white-space: normal; height: auto; min-height: 56px; padding: 12px 20px; }
  .ia-final h2.shout { font-size: min(44px, calc((100vw - 40px) / 9.6)); }
  .ia-vsl:not(.is-portrait) { border-radius: var(--radius-md); }
  .ia-vsl-btn { width: 68px; height: 68px; }
}
@media (max-width: 479px) {
  .ia-nav-cta { display: none; }
}
@media (max-width: 359px) {
  .ia-sticky-btn { font-size: 14.5px; padding: 0 10px; }
  .ia-hero .hero-top { padding-left: 16px; padding-right: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section > .container::before { left: 16px; right: 16px; }
}
