/* ==========================================================================
   Innolabora — Sistema rediseñado
   Inspiración: Apple/Steve Jobs aplicado al manual 2026
   ========================================================================== */

:root {
  /* Brand */
  --inl-blue:        #1D4477;
  --inl-deep:        #002060;
  --inl-green:       #24AA28;
  --inl-green-dim:   #1E8F22;
  --inl-green-bright:#3EBB44;

  /* Neutros */
  --ink:             #0B1220;
  --ink-soft:        #1F2A44;
  --ink-60:          #5B6B85;
  --ink-40:          #8894A8;
  --ink-20:          #C7D0DE;
  --line:            #E6EAF0;
  --line-2:          #EEF1F6;
  --paper:           #FFFFFF;
  --paper-soft:      #F7F8FB;
  --paper-tint:      #F2F5FA;

  /* Type */
  --display: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Manrope',  system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Motion */
  --e: cubic-bezier(.2,.7,.2,1);
  --e-soft: cubic-bezier(.65,0,.35,1);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 56px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: #CFF1D1; color: var(--inl-deep); }

/* -------- type primitives -------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.display-xl { font-size: clamp(56px, 10vw, 168px); }
.display-l  { font-size: clamp(44px, 7.2vw, 112px); }
.display-m  { font-size: clamp(36px, 5.2vw, 80px); }
.display-s  { font-size: clamp(28px, 3.6vw, 56px); }
.display-xs { font-size: clamp(22px, 2.4vw, 36px); }

.h-eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--inl-green);
  margin: 0;
}
.h-eyebrow-caps {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--inl-green);
  margin: 0;
}

.lede {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.body-l { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.body-s { font-size: 14px; line-height: 1.5; color: var(--ink-60); }

.dark { color: var(--paper); }
.dark .display { color: var(--paper); }
.dark .lede { color: rgba(255,255,255,.86); }
.dark .body-l { color: rgba(255,255,255,.74); }
.dark .h-eyebrow { color: var(--inl-green-bright); }
.dark .h-eyebrow-caps { color: var(--inl-green-bright); }

/* -------- layout -------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(80px, 12vw, 180px) 0; }
.section-tight { padding: clamp(56px, 8vw, 120px) 0; }
.section-flush { padding: 0; }
.bg-paper      { background: var(--paper); }
.bg-paper-soft { background: var(--paper-soft); }
.bg-paper-tint { background: var(--paper-tint); }
.bg-deep       { background: var(--inl-deep); color: var(--paper); }
.bg-ink        { background: var(--ink); color: var(--paper); }
.bg-mint-wash  { background: linear-gradient(160deg, #EAF9EB 0%, #F8FAFC 60%, #EEF3FA 100%); }

/* -------- nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,32,96,.08);
  transition: background var(--e) 200ms;
}
.nav.is-dark {
  background: rgba(0,18,52,.72);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav.is-dark .nav-brand { color: var(--paper); }
.nav-brand .iso { width: 22px; height: 22px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-footer { height: 46px; }
.brand-on-dark .brand-logo {
  filter: none;
  opacity: 1;
}
.nav-links {
  display: flex; gap: 28px; justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(11,18,32,.72);
  transition: color var(--e) 150ms;
}
.nav.is-dark .nav-links a { color: rgba(255,255,255,.74); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav.is-dark .nav-links a:hover, .nav.is-dark .nav-links a.is-active { color: var(--paper); }
.nav-cta {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background var(--e) 150ms, transform var(--e) 150ms;
}
.nav-cta:hover { background: var(--inl-deep); transform: translateY(-1px); }
.nav.is-dark .nav-cta { background: var(--paper); color: var(--ink); }
.nav.is-dark .nav-cta:hover { background: var(--inl-green-bright); color: var(--paper); }

.nav-mobile-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto auto; gap: 14px; }
  .nav-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px;
  }
  .nav-mobile-toggle svg { width: 18px; height: 18px; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 24px var(--gutter) 48px;
    display: none;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a {
    display: block;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --nav-h: 56px;
  }

  html,
  body,
  #app {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .nav-cta {
    display: none;
  }

  .brand-logo {
    height: 26px;
    max-width: min(178px, 58vw);
  }

  .brand-logo-footer {
    height: 36px;
    max-width: 220px;
  }

  .mobile-menu {
    overflow-y: auto;
  }

  .display-xl { font-size: clamp(36px, 10.5vw, 42px); }
  .display-l  { font-size: clamp(34px, 10vw, 40px); }
  .display-m  { font-size: clamp(30px, 9vw, 36px); }
  .display-s  { font-size: clamp(25px, 7.5vw, 32px); }
  .display-xs { font-size: clamp(21px, 7vw, 28px); }

  .display,
  .lede,
  h1,
  h2,
  h3,
  p {
    overflow-wrap: anywhere;
  }

  .lede {
    font-size: 19px;
    line-height: 1.38;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 56px) 0 64px;
  }

  .page-hero p {
    font-size: 19px;
    line-height: 1.42;
  }

  .chip {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.2;
  }

  .link-arrow,
  .arrow-link {
    max-width: 100%;
    white-space: normal;
  }
}

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform var(--e) 150ms, background var(--e) 150ms, box-shadow var(--e) 150ms, color var(--e) 150ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform var(--e) 200ms; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--inl-deep); }
.btn-accent { background: var(--inl-green); color: var(--paper); }
.btn-accent:hover { background: var(--inl-green-dim); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-ghost {
  color: var(--inl-deep);
  border: 2px solid var(--inl-deep);
  background: transparent;
}
.btn-ghost:hover { background: var(--inl-deep); color: var(--paper); }
.dark .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.6); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--paper); color: var(--paper); }

/* link with arrow, used a lot */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--inl-deep);
  transition: color var(--e) 150ms;
}
.link-arrow:hover { color: var(--inl-green); }
.link-arrow .arrow { transition: transform var(--e) 200ms; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.dark .link-arrow { color: var(--paper); }
.dark .link-arrow:hover { color: var(--inl-green-bright); }

/* -------- chip / pill -------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36,170,40,.1);
  color: var(--inl-green-dim);
}
.chip-deep { background: rgba(0,32,96,.08); color: var(--inl-deep); }
.dark .chip { background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); }
.dark .chip-deep { background: rgba(62,187,68,.18); color: var(--inl-green-bright); }

/* -------- reveal on scroll -------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--e), transform 700ms var(--e); }
.reveal.is-in { opacity: 1; transform: none; }

/* -------- footer -------- */
.footer {
  background: #002060;
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 48px;
}
.footer h4 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 16px;
  letter-spacing: 0;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color var(--e) 150ms; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: background var(--e) 150ms, color var(--e) 150ms;
}
.footer-social a:hover { background: var(--inl-green); color: var(--paper); }
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -------- nómina dashboard mockup -------- */
.dashboard {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 60px 120px -30px rgba(0,32,96,.45), 0 30px 60px -30px rgba(0,32,96,.35);
  overflow: hidden;
  font-family: var(--body);
  color: var(--ink);
}
.dash-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFC, #F1F4F8);
  border-bottom: 1px solid var(--line);
}
.dash-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--ink-20); }
.dash-dot.r { background: #FF5F57; }
.dash-dot.y { background: #FEBC2E; }
.dash-dot.g { background: #28C840; }
.dash-url {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 6px;
}

.dash-body { padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.dash-sidebar { display: flex; flex-direction: column; gap: 4px; }
.dash-sidebar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 8px 12px 4px;
}
.dash-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.dash-side-item .ic { width: 16px; height: 16px; color: var(--ink-60); }
.dash-side-item.is-active { background: rgba(0,32,96,.06); color: var(--inl-deep); }
.dash-side-item.is-active .ic { color: var(--inl-deep); }

.dash-main { display: flex; flex-direction: column; gap: 16px; }
.dash-header {
  display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 8px;
}
.dash-header h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 4px;
}
.dash-header p { font-size: 12px; color: var(--ink-60); margin: 0; }
.dash-pill {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36,170,40,.12);
  color: var(--inl-green-dim);
}

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-stat {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.dash-stat-label { font-size: 11px; color: var(--ink-60); margin: 0 0 6px; font-weight: 500; }
.dash-stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.dash-stat-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: var(--inl-green-dim);
  margin-top: 4px;
  font-weight: 600;
}
.dash-stat-delta.is-down { color: #D23B3B; }

.dash-chart {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  height: 200px;
  display: flex; flex-direction: column;
}
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-chart-head h5 { font-family: var(--display); font-size: 13px; font-weight: 700; margin: 0; color: var(--ink); }
.dash-chart svg { flex: 1; width: 100%; }

.dash-table { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dash-row {
  display: grid; grid-template-columns: 1fr 90px 100px 80px;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: 0; }
.dash-row.is-head { background: rgba(0,32,96,.03); font-size: 11px; color: var(--ink-60); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-emp { display: flex; align-items: center; gap: 10px; }
.dash-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--inl-blue), var(--inl-deep));
  color: var(--paper);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dash-row .ok {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--inl-green-dim);
}

@media (max-width: 720px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr 80px; gap: 8px; font-size: 12px; }
  .dash-row .col-net, .dash-row .col-status { display: none; }
}

/* -------- big-number card / hero stats -------- */
.bignum {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: 0;
  line-height: 0.92;
  color: var(--ink);
  margin: 0;
}
.dark .bignum { color: var(--paper); }
.bignum.is-accent { color: var(--inl-green); }
.dark .bignum.is-accent { color: var(--inl-green-bright); }
.bignum-label {
  font-size: 14px;
  color: var(--ink-60);
  margin: 12px 0 0;
  max-width: 220px;
}
.dark .bignum-label { color: rgba(255,255,255,.65); }

/* -------- simulator -------- */
.sim {
  background: var(--paper);
  color: var(--ink);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 100px -30px rgba(0,32,96,.55);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.sim-inputs { display: flex; flex-direction: column; gap: 24px; }
.sim-field label {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0;
}
.sim-field-row { display: flex; align-items: center; gap: 14px; }
.sim-range {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px;
  background: var(--paper-tint);
  outline: none;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink);
  border: 4px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,32,96,.3);
  cursor: pointer;
  transition: transform var(--e) 150ms;
}
.sim-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink);
  border: 4px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,32,96,.3);
  cursor: pointer;
}
.sim-range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.sim-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0;
  min-width: 80px;
  text-align: right;
}
.sim-segs { display: flex; gap: 6px; background: var(--paper-tint); padding: 4px; border-radius: 12px; }
.sim-seg {
  flex: 1; padding: 9px 10px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  transition: all var(--e) 150ms;
}
.sim-seg.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgba(0,32,96,.08); }

.sim-out { display: flex; flex-direction: column; gap: 18px; }
.sim-out-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0;
}
.sim-out-num {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
  font-size: clamp(48px, 6vw, 88px);
  color: var(--inl-deep);
  margin: 0;
}
.sim-out-num .currency { color: var(--ink-40); font-weight: 600; margin-right: 6px; font-size: 0.55em; vertical-align: 12%; }
.sim-out-sub { font-size: 14px; color: var(--ink-60); margin: 0; max-width: 380px; }
.sim-out-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sim-out-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.sim-out-row strong { font-family: var(--display); color: var(--ink); font-weight: 700; }

@media (max-width: 880px) {
  .sim { grid-template-columns: 1fr; padding: 24px; border-radius: 24px; }
}
@media (max-width: 560px) {
  .sim {
    padding: 20px;
    border-radius: 22px;
    gap: 28px;
  }
  .sim-inputs { gap: 20px; }
  .sim-field-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .sim-value {
    min-width: 0;
    text-align: left;
    letter-spacing: 0;
  }
  .sim-segs {
    flex-direction: column;
    border-radius: 14px;
  }
  .sim-out-num {
    font-size: clamp(42px, 13vw, 56px);
    letter-spacing: 0;
    line-height: 1;
  }
  .sim-out-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .sim-tabs {
    width: 100%;
    border-radius: 18px;
    flex-direction: column;
  }
  .sim-tab {
    width: 100%;
    border-radius: 14px;
  }
}

/* -------- cards: services bento -------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  padding: 36px;
  min-height: 380px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--e) 250ms, box-shadow var(--e) 250ms;
  box-shadow: 0 1px 2px rgba(13,46,94,.04);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(0,32,96,.25); }
.bento-card .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-40);
}
.bento-card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  font-size: clamp(26px, 2.2vw, 36px);
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.bento-card p { color: var(--ink-60); margin: 0 0 16px; max-width: 38ch; }
.bento-card .arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--inl-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.bento-card.is-span-3 { grid-column: span 3; }
.bento-card.is-span-2 { grid-column: span 2; }
.bento-card.is-span-4 { grid-column: span 4; }
.bento-card.is-span-6 { grid-column: span 6; }

.bento-card.is-hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 520px;
}
.bento-card.is-hero h3 { color: var(--paper); }
.bento-card.is-hero p { color: rgba(255,255,255,.7); }
.bento-card.is-hero .arrow-link { color: var(--inl-green-bright); }
.bento-card.is-hero .num { color: rgba(255,255,255,.5); }

.bento-card.is-accent {
  background: linear-gradient(160deg, #003088 0%, #002060 50%, #001A4C 100%);
  color: var(--paper);
}
.bento-card.is-accent h3 { color: var(--paper); }
.bento-card.is-accent p { color: rgba(255,255,255,.78); }
.bento-card.is-accent .arrow-link { color: var(--inl-green-bright); }
.bento-card.is-accent .num { color: rgba(255,255,255,.5); }

.bento-glyph {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(0,32,96,.06);
  color: var(--inl-deep);
  margin-bottom: 16px;
}
.bento-card.is-hero .bento-glyph, .bento-card.is-accent .bento-glyph {
  background: rgba(255,255,255,.1); color: var(--paper);
}
.bento-glyph svg { width: 28px; height: 28px; }

.bento-photo {
  position: absolute; inset: auto -20% -30% auto;
  width: 70%; height: 70%; border-radius: 999px;
  background-size: cover; background-position: center;
  opacity: .9;
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 75%);
          mask-image: radial-gradient(circle, #000 60%, transparent 75%);
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.is-span-3, .bento-card.is-span-2, .bento-card.is-span-4 { grid-column: span 2; }
  .bento-card.is-span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card.is-hero {
    grid-column: 1 / -1 !important;
    min-height: auto;
    padding: 28px 24px;
    border-radius: 22px;
  }
}

/* -------- Steps -------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
}
.step .step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: var(--inl-green);
  letter-spacing: 0.08em;
}
.step h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  margin: 16px 0 8px;
  color: var(--ink);
}
.step p { color: var(--ink-60); font-size: 15px; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -------- list-clean -------- */
.list-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.list-check li {
  display: flex; gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.list-check li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--inl-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  margin-top: 1px;
}
.dark .list-check li { color: rgba(255,255,255,.86); }

.list-empty { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.list-empty li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.list-empty li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid var(--inl-green);
  margin-top: 3px;
}
.dark .list-empty li { color: rgba(255,255,255,.86); }

/* -------- page hero -------- */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  text-align: center;
}
.page-hero .chip { margin-bottom: 24px; }
.page-hero h1 { margin: 0 0 24px; }
.page-hero p { font-size: 22px; color: var(--ink-60); max-width: 60ch; margin: 0 auto 32px; line-height: 1.4; }
.dark .page-hero p { color: rgba(255,255,255,.74); }

/* -------- divider/marquee -------- */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 24px 0;
}
.marquee {
  display: flex; gap: 64px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-60);
  letter-spacing: 0;
}
.marquee span { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.marquee span::after { content: '·'; margin-left: 64px; color: var(--ink-20); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------- callout (banner CTA) -------- */
.callout {
  background: var(--ink);
  color: var(--paper);
  border-radius: 36px;
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: '';
  position: absolute;
  bottom: -40%; left: 50%;
  width: 120%; aspect-ratio: 2;
  background: radial-gradient(ellipse, rgba(36,170,40,.25) 0%, transparent 60%);
  transform: translateX(-50%);
}
.callout > * { position: relative; z-index: 1; }

/* -------- alt grids -------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } }

/* -------- photo with shaped mask -------- */
.shaped {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
}
.shaped::before {
  content: '';
  position: absolute; inset: -8% -8% auto -8%;
  height: 60%;
  background: var(--inl-deep);
  border-radius: 999px / 70%;
  z-index: 0;
}
.shaped img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 1.2s var(--e);
}
.shaped:hover img { transform: scale(1.04); }

/* -------- blob photo (manual signature) -------- */
.blob-photo {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: end; justify-content: center;
}
.blob-photo::before {
  content: '';
  position: absolute;
  inset: 8% 0 0 0;
  background: var(--inl-deep);
  border-radius: 48% 52% 60% 40% / 60% 50% 50% 40%;
  z-index: 0;
}
.blob-photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: bottom;
  border-radius: 24px;
}

/* -------- comparativa -------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,32,96,.25);
}
.compare-col {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 16px;
}
.compare-col.is-bad { background: var(--paper-soft); }
.compare-col.is-good { background: var(--inl-deep); color: var(--paper); }
.compare-col h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0;
  margin: 0;
}
.compare-col.is-good h3 { color: var(--paper); }
.compare-col .tag {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8px;
}
.compare-col.is-good .tag { color: var(--inl-green-bright); }
.compare-col ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ink-60); }
.compare-col.is-good ul { color: rgba(255,255,255,.78); }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.compare-col li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 999px; margin-top: 2px;
}
.compare-col.is-bad li::before { background: rgba(210,59,59,.12); border: 2px solid rgba(210,59,59,.4); }
.compare-col.is-good li::before {
  background: var(--inl-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
@media (max-width: 880px) { .compare { grid-template-columns: 1fr; } }

/* -------- planes -------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  height: 100%;
  transition: transform var(--e) 200ms, box-shadow var(--e) 200ms, border-color var(--e) 200ms;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(0,32,96,.18); }
.plan-name { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-40); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.plan-title { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0; color: var(--ink); margin: 0; }
.plan-desc { color: var(--ink-60); font-size: 15px; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; }
.plan ul li::before { content: '✓'; color: var(--inl-green); font-weight: 700; }
.plan.is-feat {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  position: relative;
}
.plan.is-feat .plan-name, .plan.is-feat .plan-title { color: var(--paper); }
.plan.is-feat .plan-desc { color: rgba(255,255,255,.7); }
.plan.is-feat ul li { color: rgba(255,255,255,.86); }
.plan.is-feat::before {
  content: 'Recomendado';
  position: absolute; top: 16px; right: 16px;
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  background: var(--inl-green-bright);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* -------- ticker (running stats) -------- */
.ticker { display: flex; flex-wrap: wrap; gap: 48px; padding: 32px 0; }
.ticker-item { flex: 1 1 200px; }
.ticker-num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: 0; line-height: 1; color: var(--ink); margin: 0; }
.dark .ticker-num { color: var(--paper); }
.ticker-label { font-size: 14px; color: var(--ink-60); margin: 8px 0 0; line-height: 1.4; }
.dark .ticker-label { color: rgba(255,255,255,.7); }

/* -------- screen reader only -------- */
.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;
}

/* -------- subtle entrance keyframes -------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.anim-in { animation: fade-up 800ms var(--e) both; }
.anim-fade { animation: fade 1200ms var(--e) both; }

/* dark step variant (for Blindaje 'Especializado') */
.step.is-dark { background: var(--inl-deep); border-color: transparent; color: var(--paper); }
.step.is-dark .display,
.step.is-dark h4 { color: var(--paper) !important; }
.step.is-dark .step-num { color: var(--inl-green-bright); }
.step.is-dark .list-check li { color: rgba(255,255,255,.92); }
.step.is-dark p { color: rgba(255,255,255,.78); }

/* invite-to-simulator floating toast */
.sim-invite-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 10, 22, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--e);
}
.sim-invite-overlay.is-in {
  opacity: 1;
  pointer-events: auto;
}
.sim-invite {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  background: var(--paper);
  border-radius: 20px;
  padding: 20px 22px 22px;
  box-shadow: 0 30px 80px -20px rgba(0,32,96,.45), 0 12px 28px -10px rgba(0,32,96,.25);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--body);
  transform: translateY(24px) scale(.98); opacity: 0;
  transition: transform 380ms var(--e), opacity 380ms var(--e);
}
.sim-invite-overlay.is-in .sim-invite { transform: none; opacity: 1; }
.sim-invite .sim-invite-eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--inl-green-dim); margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.sim-invite .sim-invite-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: var(--inl-green); display: inline-block;
  box-shadow: 0 0 0 4px rgba(36,170,40,.18);
}
.sim-invite h4 {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: 0; line-height: 1.15;
  color: var(--ink); margin: 0;
}
.sim-invite p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-60); margin: 0 0 4px;
}
.sim-invite-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.sim-invite .btn { font-size: 14px; padding: 9px 16px; }
.sim-invite-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-soft, rgba(0,0,0,.06));
  border: none; cursor: pointer;
  color: var(--ink-60);
  transition: background var(--e) 150ms, color var(--e) 150ms;
}
.sim-invite-close:hover { background: var(--paper-soft); color: var(--ink); }
.sim-invite-close svg { width: 14px; height: 14px; }

/* simulator perspective tabs */
.sim-tabs {
  display: inline-flex;
  background: var(--paper-tint);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 20px;
  gap: 2px;
}
.sim-tab {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-60);
  transition: all var(--e) 150ms;
  white-space: nowrap;
}
.sim-tab.is-active {
  background: var(--inl-deep);
  color: var(--paper);
  box-shadow: 0 4px 10px -2px rgba(0,32,96,.3);
}
.sim-note {
  font-size: 12px;
  color: var(--ink-40);
  margin: 14px 0 0;
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.45;
}
.sim-note::before { content: 'ℹ'; color: var(--inl-blue); font-weight: 700; flex-shrink: 0; }

/* sim-gate-full — full-page lead gate (mandatory, replaces simulator/cotizador) */
.sim-gate-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: clamp(48px, 8vw, 96px) 24px;
}
.sim-gate-full-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 440px;
}

/* sim-gate — lead capture overlay on results panel */
.sim-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255,255,255,.96);
  border-radius: inherit;
  padding: 28px 24px;
  backdrop-filter: blur(4px);
}
.sim-gate-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--body);
  outline: none;
  transition: border-color 150ms;
  background: #fff;
  box-sizing: border-box;
}
.sim-gate-input:focus { border-color: var(--inl-green); }
.sim-gate-input.is-err { border-color: #E53E3E; }
.sim-gate-err { color: #E53E3E; font-size: 12px; margin: 4px 0 0; }

/* casos reales — testimonial cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--e) 200ms, box-shadow var(--e) 200ms;
}
.case:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(0,32,96,.18); }
.case-quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.case-quote::before { content: '“'; color: var(--inl-green); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; margin-right: 2px; }
.case-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.case-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--inl-blue), var(--inl-deep));
  color: var(--paper);
  font-family: var(--display);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.case-meta-text { display: flex; flex-direction: column; gap: 2px; }
.case-name { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.case-role { font-size: 12px; color: var(--ink-60); }
.case-tag {
  display: inline-flex; width: max-content;
  font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(36,170,40,.1);
  color: var(--inl-green-dim);
}

/* aliados grid */
.ally-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ally-grid.ally-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .ally-grid,
  .ally-grid.ally-grid-2 { grid-template-columns: 1fr; }
}
.ally-card {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  transition: transform var(--e) 200ms, background var(--e) 200ms, border-color var(--e) 200ms;
  color: #fff;
  height: 100%;
}
.ally-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: rgba(36,170,40,.4);
}
.ally-mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0;
}
.ally-logo {
  width: 100%;
  height: 132px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 14px 20px;
  margin-bottom: 4px;
}
.ally-logo img {
  max-width: 100%;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.ally-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  color: #fff;
  margin: 0;
}
.ally-role {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
  margin: 0;
  flex: 1;
}
.ally-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--inl-green-bright);
  margin-top: 4px;
}
.ally-card:hover .ally-link .arrow { transform: translateX(4px); }

/* ─────────────── BLOG ─────────────── */
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--line);
}
.blog-cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-60);
  transition: all var(--e) 150ms;
}
.blog-cat:hover { color: var(--ink); background: var(--paper-soft); }
.blog-cat.is-active { background: var(--ink); color: var(--paper); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--e) 200ms, box-shadow var(--e) 200ms;
  border: 1px solid var(--line-2);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -20px rgba(0,32,96,.18);
}
.post-cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-tint);
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--e);
}
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat {
  display: inline-flex; width: max-content;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.post-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
  margin: 4px 0 0;
  text-wrap: balance;
}
.post-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
  margin: 0;
  flex: 1;
}
.post-meta {
  display: flex; gap: 8px;
  font-size: 12px;
  color: var(--ink-40);
  font-family: var(--display);
  font-weight: 500;
  margin-top: 6px;
}

/* big/featured post */
.post-card.is-big {
  flex-direction: row;
  border-radius: 28px;
}
.post-card.is-big .post-cover { aspect-ratio: auto; flex: 1.2; min-height: 320px; }
.post-card.is-big .post-card-body { flex: 1; padding: 48px; gap: 16px; justify-content: center; }
.post-card.is-big .post-title { font-size: clamp(28px, 3vw, 40px); }
.post-card.is-big .post-excerpt { font-size: 16px; }
@media (max-width: 880px) {
  .post-card.is-big { flex-direction: column; }
  .post-card.is-big .post-cover { min-height: 240px; }
  .post-card.is-big .post-card-body { padding: 28px; }
}

/* article detail */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-60);
}
.article-cover {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-body p { margin: 0 0 24px; }
.article-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.2;
}
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.article-body ul li {
  display: flex; gap: 12px;
  padding-left: 0;
}
.article-body ul li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--inl-green);
  margin-top: 12px;
}
.article-body blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--inl-green);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}
.article-callout {
  background: var(--paper-soft);
  border-left: 4px solid var(--inl-deep);
  border-radius: 0 20px 20px 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* skeleton */
.blog-skeleton { display: flex; flex-direction: column; gap: 16px; width: min(480px, 90vw); }
.sk { background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; border-radius: 8px; animation: sk-shimmer 1.4s linear infinite; }
.sk-line { height: 16px; }
.w-l { width: 100%; }
.w-m { width: 70%; }
.w-s { width: 40%; }
@keyframes sk-shimmer { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }

/* ─────────────── COTIZADOR ─────────────── */
.fx-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, #001A4C 0%, #002060 50%, #003088 100%);
  border-radius: 24px;
  color: #fff;
}
.fx-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inl-green-bright);
  margin: 0 0 4px;
}
.fx-rate {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: 0;
  color: #fff;
  margin: 0;
  line-height: 1;
}
.fx-source {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin: 6px 0 0;
}
.fx-override { text-align: right; }
.fx-override label {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 0 0 6px;
}
.fx-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.fx-input-wrap input {
  width: 130px;
  padding: 10px 32px 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-align: right;
  outline: none;
  transition: border-color var(--e) 150ms, background var(--e) 150ms;
}
.fx-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.fx-input-wrap input:focus { border-color: var(--inl-green-bright); background: rgba(255,255,255,.12); }
.fx-clear {
  position: absolute; right: 8px;
  width: 20px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 14px; line-height: 1;
}
@media (max-width: 720px) {
  .fx-banner { grid-template-columns: 1fr; }
  .fx-override { text-align: left; }
}
@media (max-width: 560px) {
  .fx-banner {
    margin-inline: 0;
    padding: 24px;
    border-radius: 22px;
  }
  .fx-rate {
    font-size: 34px;
  }
  .fx-input-wrap input {
    width: 100%;
    text-align: left;
  }
}

/* form + preview grid */
.cot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
@media (max-width: 960px) {
  .cot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cot-card,
  .cot-preview,
  .cot-result-card {
    border-radius: 22px;
    padding: 22px;
  }
  .cot-preview {
    position: static;
    box-shadow: 0 20px 50px -24px rgba(0,32,96,.25);
  }
  .cot-preview-head,
  .cot-preview-pricing,
  .cot-preview-annual,
  .cot-result-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .cot-preview-pricing {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .cot-preview-divider {
    width: 100%;
    height: 1px;
  }
  .cot-preview-price,
  .cot-preview-bignum,
  .cot-summary-bignum {
    font-size: 30px;
    letter-spacing: 0;
  }
  .cot-emp-row {
    align-items: stretch;
    flex-direction: column;
  }
  .cot-emp-input {
    width: 100% !important;
    text-align: left;
  }
  .cot-tier {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
  }
  .cot-summary {
    padding: 20px;
    border-radius: 18px;
  }
  .cot-summary-total {
    padding: 20px;
  }
  .cot-result-actions .btn {
    width: 100%;
  }
}

.cot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
}

.cot-fields {
  display: flex; flex-direction: column;
  gap: 16px;
}
.cot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cot-row { grid-template-columns: 1fr; } }

.cot-field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.cot-field-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0;
}
.cot-field-label em {
  font-style: normal;
  color: var(--inl-green);
  margin-left: 2px;
}
.cot-field input,
.cot-field select {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color var(--e) 150ms, box-shadow var(--e) 150ms;
}
.cot-field input:focus,
.cot-field select:focus {
  border-color: var(--inl-deep);
  box-shadow: 0 0 0 3px rgba(0,32,96,.1);
}
.cot-field.has-error input,
.cot-field.has-error select { border-color: #D23B3B; }
.cot-field-err {
  font-size: 12px;
  color: #D23B3B;
  font-weight: 600;
  font-family: var(--display);
}
.cot-field-hint {
  font-size: 11px;
  color: var(--ink-40);
  font-family: var(--body);
  font-style: italic;
  margin-top: 2px;
}

.cot-emp-row {
  display: flex; gap: 14px;
  align-items: center;
}
.cot-emp-input {
  width: 100px !important;
  text-align: right;
  font-family: var(--display) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}
.cot-tiers {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cot-tier {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-60);
  transition: all var(--e) 150ms;
}
.cot-tier:hover { background: var(--paper-tint); color: var(--ink); }
.cot-tier.is-active { background: var(--inl-deep); color: #fff; }

/* live preview card */
.cot-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 32px);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  box-shadow: 0 30px 60px -20px rgba(0,32,96,.15);
}
.cot-preview-head {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cot-preview-eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inl-green-dim);
}
.cot-preview-folio {
  font-size: 11px;
  color: var(--ink-40);
  font-family: var(--display);
}
.cot-preview-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0 0 4px;
}
.cot-preview-tier {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: 0;
}
.cot-preview-pricing {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--paper-soft);
  border-radius: 16px;
  margin-bottom: 16px;
}
.cot-preview-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--inl-deep);
  margin: 0;
  letter-spacing: 0;
}
.cot-preview-divider {
  width: 1px; height: 50px; background: var(--line);
}
.cot-preview-sub {
  font-size: 12px;
  color: var(--ink-60);
  margin: 2px 0 0;
}
.cot-preview-total {
  padding: 20px;
  background: linear-gradient(135deg, #001A4C 0%, #002060 100%);
  border-radius: 16px;
  margin-bottom: 12px;
  color: #fff;
}
.cot-preview-total .cot-preview-label { color: var(--inl-green-bright); }
.cot-preview-bignum {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0;
  color: #fff;
  margin: 4px 0 4px;
  line-height: 1;
}
.cot-preview-total .cot-preview-sub { color: rgba(255,255,255,.7); }
.cot-preview-annual {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: rgba(36,170,40,.08);
  border-radius: 12px;
  font-family: var(--display);
  margin-bottom: 20px;
}
.cot-preview-annual span {
  font-size: 12px;
  color: var(--inl-green-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cot-preview-annual strong {
  font-weight: 700;
  font-size: 18px;
  color: var(--inl-green-dim);
  letter-spacing: 0;
}
.cot-generate {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
}
.cot-generate:disabled { opacity: 0.6; cursor: wait; }
.cot-preview-note {
  font-size: 12px;
  color: var(--ink-60);
  margin: 12px 0 0;
  line-height: 1.5;
  text-align: center;
}

/* result */
.cot-result-card {
  background: #fff;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 40px 100px -30px rgba(0,32,96,.35);
}
.cot-result-head { margin-bottom: 24px; }
/* cot summary card — visual recap on screen */
.cot-summary {
  display: flex; flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--paper-soft);
  border-radius: 20px;
  margin: 24px 0;
}
.cot-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) { .cot-summary-row { grid-template-columns: 1fr; } }
.cot-summary-col { display: flex; flex-direction: column; gap: 4px; }
.cot-summary-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0;
}
.cot-summary-val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0;
  margin: 4px 0 0;
}
.cot-summary-sub { font-size: 13px; color: var(--ink-60); margin: 2px 0 0; }
.cot-summary-divider { height: 1px; background: var(--line); }

.cot-summary-total {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #001A4C 0%, #002060 100%);
  border-radius: 14px;
  color: #fff;
}
.cot-summary-total .cot-summary-label { color: var(--inl-green-bright); }
.cot-summary-bignum {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  margin: 6px 0 4px;
}
.cot-summary-total .cot-summary-sub { color: rgba(255,255,255,.7); }
.cot-summary-annual {
  display: flex; flex-direction: column;
  padding: 16px 20px;
  background: rgba(36,170,40,.18);
  border-radius: 12px;
  text-align: right;
}
.cot-summary-annual span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inl-green-bright);
}
.cot-summary-annual strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0;
  margin-top: 4px;
}
@media (max-width: 640px) { .cot-summary-total { grid-template-columns: 1fr; } .cot-summary-annual { text-align: left; } }

.cot-summary-includes ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
@media (max-width: 640px) { .cot-summary-includes ul { grid-template-columns: 1fr; } }
.cot-summary-includes li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex; gap: 8px;
  line-height: 1.45;
}
.cot-summary-includes li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--inl-green);
  margin-top: 8px;
}

.cot-pdf-wrap {
  position: relative;
  width: 100%;
  min-height: 760px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.cot-pdf-frame {
  width: 100%;
  min-height: 760px;
  height: 760px;
  border: 0;
  background: var(--paper-soft);
  display: block;
}
.cot-pdf-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: var(--ink-60);
  font-size: 14px;
}
.cot-result-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.cot-result-note {
  font-size: 13px;
  color: var(--ink-60);
  margin: 16px 0 0;
  line-height: 1.5;
}

/* tweaks panel positioning */
.tweaks-panel { z-index: 80 !important; }

/* -------- final mobile pass -------- */
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --nav-h: 56px;
  }

  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body { font-size: 16px; }

  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .nav-cta { display: none; }
  .brand-logo { height: 26px; max-width: min(178px, 58vw); }
  .brand-logo-footer { height: 36px; max-width: 220px; }
  .mobile-menu { overflow-y: auto; }

  .display { line-height: 1.02; }
  .display-xl { font-size: clamp(36px, 10.5vw, 42px); }
  .display-l  { font-size: clamp(34px, 10vw, 40px); }
  .display-m  { font-size: clamp(30px, 9vw, 36px); }
  .display-s  { font-size: clamp(25px, 7.5vw, 32px); }
  .display-xs { font-size: clamp(21px, 7vw, 28px); }
  .lede { font-size: 19px; line-height: 1.38; }
  .body-l { font-size: 17px; }

  .section { padding: 64px 0; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .page-hero p { font-size: 19px; line-height: 1.42; }

  .chip {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.2;
  }

  .link-arrow,
  .arrow-link {
    max-width: 100%;
    white-space: normal;
  }

  .callout {
    border-radius: 24px;
    padding: 40px 22px;
  }

  .footer { padding: 48px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .grid-2,
  .grid-3,
  .steps,
  .cases,
  .ally-grid,
  .ally-grid.ally-grid-2 {
    grid-template-columns: 1fr;
  }

  .bento { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card.is-hero {
    grid-column: 1 / -1 !important;
    min-height: auto;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .sim {
    padding: 20px;
    border-radius: 22px;
    gap: 28px;
  }
  .sim-inputs { gap: 20px; }
  .sim-field-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .sim-value {
    min-width: 0;
    text-align: left;
  }
  .sim-segs,
  .sim-tabs {
    flex-direction: column;
    border-radius: 14px;
  }
  .sim-tab {
    width: 100%;
    border-radius: 12px;
  }
  .sim-out-num {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1;
  }
  .sim-out-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .fx-banner {
    padding: 24px;
    border-radius: 22px;
  }
  .fx-rate { font-size: 34px; }
  .fx-input-wrap input {
    width: 100%;
    text-align: left;
  }

  .cot-card,
  .cot-preview,
  .cot-result-card {
    border-radius: 22px;
    padding: 22px;
  }
  .cot-preview {
    position: static;
    box-shadow: 0 20px 50px -24px rgba(0,32,96,.25);
  }
  .cot-preview-head,
  .cot-preview-annual,
  .cot-result-actions,
  .cot-emp-row {
    align-items: stretch;
    flex-direction: column;
  }
  .cot-preview-pricing {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .cot-preview-divider {
    width: 100%;
    height: 1px;
  }
  .cot-preview-price,
  .cot-preview-bignum,
  .cot-summary-bignum {
    font-size: 30px;
  }
  .cot-emp-input {
    width: 100% !important;
    text-align: left;
  }
  .cot-tier {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
  }
  .cot-summary {
    padding: 20px;
    border-radius: 18px;
  }
  .cot-summary-total { padding: 20px; }
  .cot-result-actions .btn { width: 100%; }
}
