/* =========================================================
   divisascorporativas.com.mx — estilos
   Cambia la paleta aquí: todo el sitio lee estas variables.
   ========================================================= */
:root {
  /* Azules corporativos */
  --navy-900: #071733;
  --navy-800: #0B2250;
  --navy-700: #12306B;
  --blue-600: #0B5BD3;
  --blue-500: #1F6FEB;
  --blue-300: #7FB2FF;
  --blue-100: #E3EEFF;
  --sky-400:  #38BDF8;

  /* Neutros */
  --ink:      #0E1A2B;
  --ink-2:    #45536A;
  --ink-3:    #6B7890;
  --line:     #DCE4F0;
  --bg:       #FFFFFF;
  --bg-soft:  #F4F7FC;

  /* Acentos */
  --ok:       #12B886;
  --warn:     #F59F00;
  --wa:       #25D366;
  --wa-ink:   #073B1F;

  /* Sistema */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(7, 23, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 23, 51, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--blue-600); margin-bottom: .9rem; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }
.hl { background: linear-gradient(90deg, var(--blue-300), var(--sky-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: .78rem; color: var(--ink-3); margin-top: 1.4rem; }
.fine--center { text-align: center; }
.anchor { display: block; height: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 91, 211, .7); }
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 16px 30px -12px rgba(11, 91, 211, .8); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--wa-ink); font-size: 1.08rem; min-height: 58px; padding: 0 2rem; box-shadow: 0 16px 36px -14px rgba(37, 211, 102, .7); }
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa:hover { box-shadow: 0 22px 40px -14px rgba(37, 211, 102, .85); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-align: left; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(7, 23, 51, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.brand b { font-weight: 800; }
.brand small { color: var(--blue-300); font-weight: 600; font-size: .8em; }
.brand__mark { width: 30px; height: 30px; }
.nav { display: none; gap: 1.8rem; }
.nav a { color: rgba(255,255,255,.75); font-size: .93rem; font-weight: 600; transition: color .2s; }
.nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__actions .btn--sm { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .header__actions .btn--sm { display: inline-flex; } }
@media (max-width: 420px) { .brand small { display: none; } }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; font-size: .85rem; }
.lang__btn .flag { width: 21px; height: 14px; border-radius: 2px; }
.lang__btn .chev { width: 10px; height: 6px; transition: transform .2s; }
.lang__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu li { padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.lang__menu li[aria-selected="true"] { background: var(--blue-100); color: var(--navy-800); }
.lang__menu li[aria-disabled="true"] { color: var(--ink-3); }
.lang__menu em { font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s var(--ease) infinite alternate; }
.orb--1 { width: 420px; height: 420px; background: var(--blue-600); right: -120px; top: -80px; }
.orb--2 { width: 320px; height: 320px; background: var(--sky-400); left: -140px; bottom: -160px; opacity: .25; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
.hero__grid { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; opacity: .5; }
.hero__line { fill: none; stroke: var(--blue-300); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s .4s var(--ease) forwards; opacity: .55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__copy .lead { color: rgba(255,255,255,.75); }
.hero .eyebrow { color: var(--blue-300); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.6rem; }
.hero__proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 520px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; }
.hero__proof b { display: block; font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 800; }
.hero__proof span { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.35; display: block; }

.hero__card { justify-self: center; width: 100%; max-width: 380px; }
.mini {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.mini__head { display: flex; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.65); }
.mini__head em { font-style: normal; background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #fff; }
.mini__amount { font-size: 2.4rem; font-weight: 800; margin: .3rem 0 1.2rem; letter-spacing: -.02em; }
.mini__row { display: flex; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.7); }
.mini__row--ok b { color: #5EEAD4; }
.mini__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); margin: .8rem 0; overflow: hidden; }
.mini__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-500), #5EEAD4); transition: width 1.6s .8s var(--ease); }
.is-visible .mini__bar i, .mini__bar i.go { width: var(--w); }
.mini__foot { margin-top: 1rem; font-size: .7rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; }

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 90px) 0 120px; min-height: 92vh; display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.25fr .75fr; }
}

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section--light { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.72); }
.section--dark .eyebrow { color: var(--blue-300); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .lead { margin-inline: auto; }
.tag { display: inline-block; vertical-align: middle; font-size: .4em; letter-spacing: .08em; padding: .35em .7em; border-radius: 8px; background: var(--blue-100); color: var(--blue-600); }
.objection { margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 3px solid var(--blue-600); background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--ink-2); max-width: 62ch; }
.section--dark .objection { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); border-color: var(--sky-400); }
.section--dark .objection strong { color: #fff; }

/* Problema */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split__copy > p { color: var(--ink-2); max-width: 54ch; }
.stats { display: grid; gap: 14px; margin-top: 1.8rem; }
@media (min-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.stat span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.45; margin: .3rem 0 .6rem; }
.stat cite { font-style: normal; font-size: .72rem; color: var(--ink-3); }

.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.chart__badge { font-size: .72rem; background: var(--blue-100); color: var(--blue-600); padding: 3px 9px; border-radius: 99px; }
.chart figcaption { font-size: .74rem; color: var(--ink-3); margin-top: .6rem; }
#fx-chart { width: 100%; height: auto; overflow: visible; }
#fx-chart .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
#fx-chart .axis text { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
#fx-chart .area { fill: url(#fxGrad); opacity: 0; transition: opacity 1.2s .9s; }
#fx-chart .ln { fill: none; stroke: var(--blue-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 2s var(--ease); }
#fx-chart .pt { fill: #fff; stroke: var(--blue-600); stroke-width: 2.5; opacity: 0; transition: opacity .4s; }
#fx-chart .lbl { font-size: 12px; font-weight: 800; fill: var(--navy-800); font-family: var(--font); opacity: 0; transition: opacity .5s; }
#fx-chart .lbl--hi { fill: #D9480F; }
.chart.is-visible #fx-chart .area, .chart.is-visible #fx-chart .pt, .chart.is-visible #fx-chart .lbl { opacity: 1; }

.bridge { margin: 56px 0 0; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; color: var(--navy-800); }
.bridge a { border-bottom: 2px solid currentColor; }

/* KPIs */
.kpis { display: grid; gap: 14px; margin-bottom: 56px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.kpi b { display: block; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: .5rem; }
.kpi span { color: rgba(255,255,255,.72); font-size: .95rem; }
.kpis--dark .kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.kpis--dark .kpi b { color: var(--blue-300); }

/* Pasos FIE */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 14px; counter-reset: s; position: relative; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-300) 0 8px, transparent 8px 16px); z-index: 0; }
}
.step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.step__n { position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: .8rem; color: var(--ink-3); }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-100); fill: none; stroke: var(--blue-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }

.duo { display: grid; gap: 14px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel--soft { background: var(--bg-soft); }
.checks, .reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--ink); }
.reqs li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.reqs span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--blue-600); font-weight: 800; }

/* Timeline T+N */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline__track { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(var(--sky-400), var(--blue-500)); transform-origin: top; transform: scaleY(0); transition: transform 1.8s .3s var(--ease); }
.timeline.is-visible .timeline__fill { transform: scaleY(1); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--sky-400); }
.tl__day { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-400); margin-bottom: .3rem; }
.tl p { color: rgba(255,255,255,.7); margin: 0; font-size: .95rem; max-width: 36ch; }
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(3, 1fr); padding: 34px 0 0; gap: 36px; }
  .timeline__track { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .timeline__fill { transform-origin: left; transform: scaleX(0); }
  .timeline.is-visible .timeline__fill { transform: scaleX(1); }
  .tl::before { left: 0; top: -35px; }
}
.note { display: flex; gap: .8rem; align-items: flex-start; margin: 48px 0 0; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); background: rgba(245, 159, 0, .1); border: 1px solid rgba(245, 159, 0, .3); color: rgba(255,255,255,.88); font-size: .95rem; max-width: 760px; }
.note svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; }

/* Comparación */
.compare { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.cmp { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cmp--best { border: 2px solid var(--blue-600); box-shadow: var(--shadow); }
.cmp:hover { transform: translateY(-4px); }
.cmp__flag { position: absolute; top: -12px; left: 24px; background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 99px; }
.cmp__bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; margin: 1rem 0 1.4rem; background: var(--bg-soft); }
.seg { display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; width: 0; transition: width 1.4s var(--ease); }
.cmp.is-visible .seg { width: var(--w); }
.seg--a { background: var(--blue-600); }
.seg--b { background: var(--ok); transition-delay: .9s; }
.seg--wait { background: repeating-linear-gradient(45deg, #CBD5E1 0 6px, #E2E8F0 6px 12px); color: var(--ink-2); font-size: 0; transition-delay: .9s; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--ink-2); }
.cmp li::before { content: "→ "; color: var(--blue-600); font-weight: 800; }
.claim { text-align: center; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; color: var(--navy-800); margin: 48px auto 0; max-width: 28ch; }

/* Otros productos */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.card p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.card .card__pain { color: var(--ink-3); font-style: italic; margin-bottom: .5rem; }

/* Pagos */
.pay { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .pay { padding: 28px; } }
.pay__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pay__tabs::-webkit-scrollbar { display: none; }
.pay__tab { flex: none; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-weight: 700; font-size: .92rem; padding: .6rem 1rem; border-radius: 999px; transition: all .2s; }
.pay__tab:hover { border-color: var(--blue-300); }
.pay__tab[aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pay__body { display: grid; gap: 20px; margin-top: 20px; align-items: center; }
@media (min-width: 900px) { .pay__body { grid-template-columns: 1.1fr 1fr; gap: 36px; } }
.pay__map { background: var(--navy-900); border-radius: 18px; padding: 10px; }
#route-map { width: 100%; height: auto; }
#route-map .dots circle { fill: rgba(127, 178, 255, .32); }
#route { stroke: var(--sky-400); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.pin { fill: var(--sky-400); stroke: #fff; stroke-width: 2; transition: cx .6s var(--ease), cy .6s var(--ease); }
.pin--mx { fill: var(--ok); }
.pay__data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.pay__data > div { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; }
.pay__data .wide { grid-column: 1 / -1; }
.pay__data dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.pay__data dd { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 800; color: var(--navy-800); }
.pay__data small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: .3rem; }
.pay__data dd.fade { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* Portada de la guía (placeholder visual) */
.guide__cover { position: relative; aspect-ratio: 3 / 4; max-width: 300px; justify-self: center; width: 100%; border-radius: 6px 18px 18px 6px; padding: 28px; color: #fff; overflow: hidden; background: linear-gradient(150deg, var(--blue-600), var(--navy-900)); box-shadow: var(--shadow-lg), inset 6px 0 0 rgba(0,0,0,.18); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.guide__cover:hover { transform: rotate(0) scale(1.02); }
.guide__cover span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-300); font-weight: 800; }
.guide__cover b { display: block; font-size: 1.45rem; line-height: 1.2; margin-top: 1rem; }
.guide__cover i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); margin-top: 12px; width: 70%; }
.guide__cover i:first-of-type { margin-top: 2rem; width: 85%; }
.guide__cover i:last-of-type { width: 45%; }

/* CTA final */
.cta { padding: 96px 0; text-align: center; color: #fff; background: radial-gradient(90% 120% at 50% 0%, var(--navy-700), var(--navy-900) 70%); }
.cta h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
.cta p { color: rgba(255,255,255,.72); max-width: 46ch; margin: 0 auto 2rem; }
.cta__hours { margin-top: 1.4rem !important; font-size: .88rem; }

/* Footer */
.footer { background: #050F22; color: rgba(255,255,255,.6); padding: 56px 0 96px; font-size: .88rem; }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 2fr 1fr auto; } }
.brand--footer { margin-bottom: 1rem; }
.footer__legal { max-width: 52ch; font-size: .78rem; line-height: 1.55; }
.footer__links { display: grid; gap: .6rem; align-content: start; }
.footer__links a, .footer__links button { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer__links a:hover, .footer__links button:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); transition: all .2s; }
.footer__social a:hover { color: #fff; border-color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__sig { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: .72rem; color: rgba(255,255,255,.35); }
.footer__sig a { color: rgba(255,255,255,.35); }
.footer__sig a:hover { color: rgba(255,255,255,.7); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: .6rem;
  height: 56px; padding: 0 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font-weight: 800; font-size: .92rem;
  box-shadow: 0 14px 30px -10px rgba(7, 59, 31, .55);
  transform: translateY(120px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, box-shadow .25s;
}
.wa-float.is-in { transform: none; opacity: 1; }
.wa-float:hover { box-shadow: 0 18px 36px -10px rgba(7, 59, 31, .7); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: ping 3s 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
@media (max-width: 599px) { .wa-float span { display: none; } .wa-float { width: 56px; padding: 0; justify-content: center; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 15, 34, .6); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.modal__box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 32px 26px 26px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__box h2 { font-size: 1.45rem; margin-bottom: 1.3rem; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.modal__close:hover { background: var(--line); }
#guide-form label { display: block; font-size: .82rem; font-weight: 700; margin: 0 0 .35rem; }
#guide-form input { width: 100%; height: 50px; padding: 0 14px; margin-bottom: 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
#guide-form input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); }
#guide-form input[aria-invalid="true"] { border-color: #E03131; }
.form__error { color: #C92A2A; font-size: .82rem; min-height: 1.2em; margin: -.4rem 0 .6rem; }
.form__note { text-align: center; font-size: .8rem; color: var(--ink-3); margin: .9rem 0 0; }
.modal__done { text-align: center; padding: 10px 0; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1rem; animation: pop .4s var(--ease); }
.modal__done p { color: var(--ink-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Hero de la guía ---------- */
.ghero { background: var(--bg-soft); padding: 56px 0; }
@media (min-width: 900px) { .ghero { padding: 88px 0; } }
.ghero__panel {
  position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center;
  padding: 36px 22px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, var(--blue-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg);
}
.ghero__panel::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--sky-400); filter: blur(90px); opacity: .25; pointer-events: none; }
@media (min-width: 900px) { .ghero__panel { grid-template-columns: 1.2fr .8fr; padding: 64px; gap: 56px; } }
.ghero .eyebrow { color: var(--blue-300); }
.ghero h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.ghero__sub { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--blue-300); font-weight: 600; max-width: 40ch; }
.ghero__list { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: .7rem; }
.ghero__list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.82); }
.ghero__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--sky-400); border-radius: 2px; }
.ghero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ghero__meta { font-size: .8rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.ghero__media { position: relative; z-index: 1; display: grid; place-items: center; }
.ghero__media > * { grid-area: 1 / 1; }
.ghero__img { width: 100%; max-width: 320px; height: auto; border-radius: 10px 18px 18px 10px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .5s var(--ease); object-fit: cover; }
.ghero__img:hover { transform: rotate(0) scale(1.02); }
.ghero .guide__cover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 6px 0 0 rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12); }

/* Menú de idioma con links */
.lang__menu a { display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.lang__menu a:hover { background: var(--bg-soft); }
.lang__menu a[aria-current="page"] { background: var(--blue-100); color: var(--navy-800); }
.lang__menu li { padding: 0; }

/* ---------- Guía (teaser inferior) ---------- */
.guide { display: grid; gap: 44px; align-items: center; }
@media (min-width: 800px) { .guide { grid-template-columns: .8fr 1.2fr; } }
.guide__copy p { color: var(--ink-2); max-width: 48ch; }

/* ---------- Chip EXIM en hero ---------- */
.exim-chip { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600; transition: background .25s, border-color .25s; }
.exim-chip b { color: #fff; font-weight: 800; }
.exim-chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.exim-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18,184,134,.6); animation: ping 2.6s infinite; }

/* ---------- México exporta ---------- */
.xkpis { display: grid; gap: 14px; margin-bottom: 28px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .xkpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .xkpis { grid-template-columns: repeat(4, 1fr); } }
.xkpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.xkpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.xkpi b { display: block; font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 800; color: var(--blue-600); letter-spacing: -.02em; line-height: 1.1; }
.xkpi b small { font-size: .55em; font-weight: 700; }
.xkpi span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.45; margin: .5rem 0 .6rem; }
.xkpi cite { font-style: normal; font-size: .72rem; color: var(--ink-3); }

.xchart { margin: 0; border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: linear-gradient(180deg, #fff, var(--bg-soft)); box-shadow: var(--shadow); }
@media (min-width: 700px) { .xchart { padding: 28px; } }
.xchart__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 10px; }
.xchart__readout span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); }
.xchart__readout b { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; line-height: 1.15; }
.xchart__readout em { font-style: normal; font-size: .88rem; font-weight: 700; color: var(--ok); }
.xchart__readout em.neg { color: #E03131; }
.seg-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg-toggle button { border: 0; background: none; padding: .5rem .95rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ink-2); transition: background .25s, color .25s; }
.seg-toggle button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
#x-chart { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
#x-chart .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
#x-chart .zero { stroke: var(--ink-3); stroke-width: 1; }
#x-chart text { font-family: var(--font); }
#x-chart .axis text { font-size: 11px; fill: var(--ink-3); }
#x-chart .bar { cursor: pointer; outline: none; }
#x-chart .bar rect.b { fill: var(--blue-300); transition: y .9s var(--ease), height .9s var(--ease), fill .25s; }
#x-chart .bar.is-last rect.b { fill: var(--blue-600); }
#x-chart .bar.is-ytd rect.b { fill: url(#ytdHatch); }
#x-chart .bar.is-neg rect.b { fill: #FFA8A8; }
#x-chart .bar.is-active rect.b, #x-chart .bar:focus-visible rect.b { fill: var(--navy-800); }
#x-chart .bar rect.hit { fill: transparent; }
#x-chart .bar .v { font-size: 10.5px; font-weight: 800; fill: var(--navy-800); opacity: 0; transition: opacity .3s, y .9s var(--ease); }
#x-chart .bar.is-active .v, #x-chart .bar.is-last .v, #x-chart .bar.is-ytd .v { opacity: 1; }
#x-chart .note { font-size: 10.5px; font-weight: 700; fill: var(--ink-3); }
.xchart figcaption { font-size: .74rem; color: var(--ink-3); margin-top: .8rem; }

/* ---------- Contexto 2026 ---------- */
.ctx { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ctx { grid-template-columns: repeat(2, 1fr); } .ctx__card--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ctx { grid-template-columns: repeat(4, 1fr); } .ctx__card--wide { grid-column: span 4; } }
.ctx__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.ctx__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.ctx__card--wide { background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: #fff; border: 0; }
.ctx__card--wide p { color: rgba(255,255,255,.8) !important; }
.ctx__card--wide cite { color: rgba(255,255,255,.55) !important; }
.ctx__card--wide .ctx__k { color: #fff; font-size: clamp(2.2rem, 6vw, 3.2rem); }
.ctx__k { font-size: 1.7rem; font-weight: 800; color: var(--blue-600); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .7rem; }
.ctx__card p { color: var(--ink-2); font-size: .93rem; flex: 1; }
.ctx__card cite { font-style: normal; font-size: .72rem; color: var(--ink-3); }

/* ---------- Glosario ---------- */
.faq { display: grid; gap: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--blue-300); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); font-size: .94rem; animation: fadeUp .35s var(--ease); }

/* ---------- EXIM Partners ---------- */
.exim { position: relative; overflow: hidden; }
.exim::before { content: ""; position: absolute; left: -160px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--blue-600); filter: blur(110px); opacity: .35; }
.exim__inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .exim__inner { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.exim__pillars { list-style: none; margin: 2rem 0 2.2rem; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .exim__pillars { grid-template-columns: repeat(3, 1fr); } }
.exim__pillars li { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.exim__pillars b { display: block; margin-bottom: .3rem; color: #fff; }
.exim__pillars span { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.45; display: block; }
.exim__viz { justify-self: center; width: 100%; max-width: 340px; }
.exim__viz svg { width: 100%; height: auto; overflow: visible; }
.net__lines line { stroke: rgba(127,178,255,.35); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 2.4s linear infinite; }
.net__ring { fill: none; stroke: rgba(56,189,248,.35); stroke-width: 1.5; transform-origin: 160px 160px; animation: ringPulse 3.6s var(--ease) infinite; }
@keyframes ringPulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.net__nodes circle { fill: var(--blue-300); stroke: var(--navy-900); stroke-width: 3; animation: float 6s ease-in-out infinite; }
.net__nodes circle:nth-child(2n) { fill: var(--sky-400); animation-delay: -2s; }
.net__nodes circle:nth-child(3n) { animation-delay: -4s; }
.net__core { fill: var(--blue-600); stroke: rgba(255,255,255,.25); stroke-width: 2; }
.net__t1 { fill: #fff; font: 800 17px var(--font); letter-spacing: .1em; }
.net__t2 { fill: var(--blue-300); font: 700 6px var(--font); letter-spacing: .1em; }

/* Footer EXIM */
.footer__exim { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .8rem; }
.footer__exim b { color: #fff; }

/* Nav más compacto con 5 links */
@media (min-width: 900px) and (max-width: 1100px) { .nav { gap: 1.1rem; } .nav a { font-size: .86rem; } }

/* ---------- Utilidades ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--line { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn--line:hover { border-color: var(--navy-800); }

/* ---------- Portada real del libro ---------- */
.ghero__img { max-width: 300px; border-radius: 6px 14px 14px 6px; }
.guide__img { justify-self: center; width: 100%; max-width: 280px; height: auto; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .5s var(--ease), opacity .8s var(--ease); }
.guide__img.is-visible { transform: rotate(-3deg); }
.guide__img:hover { transform: rotate(0) scale(1.02); }

/* ---------- Pronóstico vs realidad ---------- */
.fcast { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fcast h3 { margin-bottom: .3rem; }
.fcast > p { color: var(--ink-2); font-size: .9rem; margin-bottom: .9rem; }
.fcast__list { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: 8px; }
.fcast__list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.fcast__list i { display: block; height: 10px; border-radius: 99px; background: var(--blue-300); width: 0; transition: width 1.2s var(--ease); }
.fcast.is-visible .fcast__list i { width: var(--w); }
.fcast__list b { font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.fcast__list li.is-real { color: var(--ink); font-weight: 700; }
.fcast__list li.is-real i { background: var(--blue-600); }
.fcast__list li.is-real b { color: var(--blue-600); }
.fcast__foot { font-size: .88rem; color: var(--ink-2); margin-bottom: .5rem; }
.fcast cite { font-style: normal; font-size: .72rem; color: var(--ink-3); }

/* ---------- Contexto: 3 columnas ---------- */
@media (min-width: 1000px) { .ctx { grid-template-columns: repeat(3, 1fr); } .ctx__card--wide { grid-column: span 3; } }

/* ---------- Diagnóstico ---------- */
.diag { display: grid; gap: 18px; }
@media (min-width: 900px) { .diag { grid-template-columns: 1fr 1fr; align-items: start; } }
.diag__q { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.diag__q label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.diag__q label:hover { border-color: var(--blue-300); }
.diag__q input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); }
.diag__q label:has(input:checked) { border-color: var(--blue-600); background: var(--blue-100); box-shadow: 0 0 0 3px rgba(11,91,211,.12); }
.diag__r { background: var(--navy-900); color: #fff; border-radius: 22px; padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.diag__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.key { display: block; padding: 12px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); font-weight: 800; font-size: .95rem; color: rgba(255,255,255,.45); transition: all .35s var(--ease); }
.key small { display: block; font-size: .7rem; font-weight: 600; margin-top: 2px; }
.key.is-on { color: #fff; background: var(--blue-600); border-color: var(--blue-500); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(11,91,211,.8); }
.diag__empty { color: rgba(255,255,255,.65); margin: 0; }
.diag__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diag__list li { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); animation: fadeUp .4s var(--ease); }
.diag__list li em { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-400); }
.diag__list li b { display: block; margin: .15rem 0; }
.diag__list li a { color: var(--blue-300); font-size: .85rem; font-weight: 700; }
.diag__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.diag__cta .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.diag__cta .btn--line:hover { border-color: #fff; }

/* ---------- Mitos ---------- */
.myths { display: grid; gap: 14px; }
@media (min-width: 700px) { .myths { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .myths { grid-template-columns: repeat(3, 1fr); } }
.myth { position: relative; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 190px; display: flex; flex-direction: column; gap: .7rem; cursor: pointer; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.myth:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.myth b { font-size: 1.08rem; line-height: 1.35; }
.myth::after { content: "Ver la verdad →"; margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--blue-600); }
html[lang="en"] .myth::after { content: "See the truth →"; }
.myth__tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: #FFE3E3; color: #C92A2A; }
.myth__tag--ok { background: rgba(18,184,134,.15); color: #0B7A5A; display: inline-block; margin-bottom: .6rem; }
.myth__truth { position: absolute; inset: 0; padding: 22px; background: var(--navy-900); color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.5; display: flex; flex-direction: column; justify-content: center; clip-path: circle(0% at 90% 90%); transition: clip-path .55s var(--ease); }
.myth__truth .myth__tag--ok { background: rgba(18,184,134,.2); color: #63E6BE; }
.myth[aria-pressed="true"] .myth__truth { clip-path: circle(150% at 90% 90%); }

/* ---------- EXIM link / footer tagline ---------- */
.exim__site { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.65); }
.exim__site a { color: var(--blue-300); font-weight: 700; border-bottom: 1px solid currentColor; }
.footer__tag { font-style: italic; color: rgba(255,255,255,.75); margin-bottom: .6rem; }
.done__fallback { font-size: .85rem; color: var(--ink-3); }

/* ---------- Formulario: opt-out ---------- */
.form__check { display: flex !important; gap: 10px; align-items: flex-start; font-size: .8rem !important; font-weight: 500 !important; color: var(--ink-2); margin: -.2rem 0 .9rem !important; cursor: pointer; line-height: 1.4; }
.form__check input { width: 16px !important; height: 16px !important; margin: 1px 0 0 !important; flex: none; accent-color: var(--blue-600); }
.form__note a { color: var(--blue-600); text-decoration: underline; }
.footer__sig-links { display: inline-flex; gap: 1.2rem; }

/* ---------- Página legal ---------- */
.legal-top { background: var(--navy-900); padding: 18px 0; }
.legal-top .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.legal-top a.back { color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 600; }
.legal-top a.back:hover { color: #fff; }
.legal { max-width: 780px; margin: 0 auto; padding: 56px 16px 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .4rem; }
.legal .updated { color: var(--ink-3); font-size: .88rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--ink); }
.legal .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.legal mark.todo { background: #FFF3BF; color: #7A5B00; padding: 0 .3em; border-radius: 4px; font-weight: 700; }
.legal-foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: .8rem; color: var(--ink-3); }
.legal-foot .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 600px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td:first-child { font-weight: 700; color: var(--ink); border-bottom: 0; padding-bottom: 0; } }

/* Nota sobre fondo claro (limitación del factoraje) */
.note--light { color: var(--ink-2); background: #FFF8E6; border-color: #FFE08A; }
.note--light strong { color: var(--ink); }
.note--light a { color: var(--blue-600); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- Logo EXIM Capital Partners (blanco, sobre fondos oscuros) ---------- */
.exim__logo { display: block; width: 180px; height: auto; margin-bottom: 1.4rem; }
.footer__exim { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.footer__exim img { width: 120px; height: auto; opacity: .9; }

.pin__lbl { fill: #fff; font: 700 15px var(--font); paint-order: stroke; stroke: var(--navy-900); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- WhatsApp flotante: esquina inferior izquierda ---------- */
.wa-float { right: auto; left: 16px; }

/* ---------- Portadas clicables ---------- */
.cover-btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; justify-self: center; }
.cover-btn:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 6px; }
.cover-btn--teaser { width: 100%; max-width: 280px; }
.cover-btn:hover .ghero__img, .cover-btn:hover .guide__img { transform: rotate(0) scale(1.03); }

/* ---------- Tarjetas de herramientas clicables ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__more { margin-top: auto; padding: 14px 0 0; border: 0; background: none; text-align: left; font: inherit; font-size: .85rem; font-weight: 700; color: var(--blue-600); cursor: pointer; }
.card__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover { cursor: pointer; }
.card:hover .card__more { text-decoration: underline; }
.card__more:focus-visible { outline: none; }
.card:has(.card__more:focus-visible) { outline: 3px solid var(--sky-400); outline-offset: 3px; }

/* ---------- Ventana de herramienta ---------- */
.modal--tool .modal__box.tool { max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px 24px 26px; }
@media (min-width: 700px) { .modal--tool .modal__box.tool { padding: 40px 40px 32px; } }
.tool h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-bottom: .6rem; padding-right: 36px; }
.tool__lead { color: var(--ink-2); font-size: 1.02rem; }
.tool__fig { margin: 1.2rem 0; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; }
.tool__fig figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .6rem; }
.tool__points { padding-left: 1.1rem; display: grid; gap: .55rem; color: var(--ink-2); margin: 0 0 1.2rem; }
.tool__cols { display: grid; gap: 14px; }
@media (min-width: 600px) { .tool__cols { grid-template-columns: 1fr 1fr; } }
.tool__cols > div { background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; }
.tool__cols h3 { font-size: .95rem; margin-bottom: .5rem; }
.tool__cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--ink-2); font-size: .9rem; }
.tool__src { font-size: .75rem; color: var(--ink-3); margin: 1.1rem 0; }
.tool__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gráficas de herramientas */
.tg { width: 100%; height: auto; display: block; font-family: var(--font); }
.tg-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.tg-track { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.tg-ax { font-size: 11px; fill: var(--ink-3); }
.tg-lbl { font-size: 13px; font-weight: 700; fill: var(--ink); }
.tg-val { font-size: 13px; font-weight: 800; fill: var(--navy-800); }
.tg-note { font-size: 12px; fill: var(--ink-2); }
.tg-legend text { font-size: 12px; fill: var(--ink-2); }
.tg-l { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tg-l--a { stroke: var(--blue-600); }
.tg-l--b { stroke: var(--ok); }
.tg-l--muted { stroke: #A9B4C6; }
.tg-bar--a { fill: var(--blue-600); }
.tg-bar--b { fill: var(--ok); }
.tg-bar--muted { fill: #C5CEDC; }
.tg-span { fill: rgba(18, 184, 134, .18); }
.tg-dot { stroke: #fff; stroke-width: 3; }
.tg-dot--a { fill: var(--blue-600); } .tg-dot--b { fill: var(--ok); } .tg-dot--muted { fill: #A9B4C6; }
.tg-box { stroke-width: 1.5; }
.tg-box--a { fill: var(--blue-600); stroke: var(--blue-600); }
.tg-box--a + .tg-lbl, .tg-box--a ~ .tg-lbl--inv { fill: #fff; }
.tg-box--b { fill: rgba(18, 184, 134, .14); stroke: var(--ok); }
.tg-box--muted { fill: #fff; stroke: var(--line); }
.tg-lbl--inv, .tg-ax--inv { fill: #fff; }
.tg-arrow { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 5; }
.tg-arrowhead { fill: var(--ink-3); }
.tg-box--a + .tg-lbl + .tg-ax { fill: rgba(255,255,255,.82); }
