/* =========================================================
   FinanGlobe · Estilos
   Colores de marca (cámbielos aquí):
   --andes      azul profundo (solidez)
   --esmeralda  verde (crecimiento)
   --ambar      acento para botones y cifras
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --andes: #10294A;
  --andes-2: #183A66;
  --esmeralda: #0B7A5C;
  --esmeralda-vivo: #2FBF8F;
  --ambar: #F4A62A;
  --ambar-2: #E39212;
  --wa: #0F7A40;
  --wa-2: #0C6735;

  --bg: #F2F5F9;
  --bg-alt: #E5EBF3;
  --surface: #FFFFFF;
  --field: #FFFFFF;
  --ink: #0F1B2D;
  --ink-soft: #485670;
  --line: #D0D9E4;
  --brand: #10294A;
  --green-text: #0B7A5C;
  --chip: #E3F2EC;
  --error: #B42318;
  --focus: #10294A;
  --deep: #10294A;
  --footer: #0A1A30;

  --f: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --g: 20px;
  --header-h: 68px;
  --r-s: 6px;
  --r-m: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 18px 40px -20px rgba(15, 27, 45, .35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08121F; --bg-alt: #0D1B2E; --surface: #11223A; --field: #0D1B2E;
    --ink: #E7EDF5; --ink-soft: #A5B3C6; --line: #233852; --brand: #E7EDF5; --green-text: #4FD1A5;
    --chip: #0F3A30; --error: #FF9C92; --focus: #F4A62A; --deep: #0F2747; --footer: #050C16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08121F; --bg-alt: #0D1B2E; --surface: #11223A; --field: #0D1B2E;
  --ink: #E7EDF5; --ink-soft: #A5B3C6; --line: #233852; --brand: #E7EDF5; --green-text: #4FD1A5;
  --chip: #0F3A30; --error: #FF9C92; --focus: #F4A62A; --deep: #0F2747; --footer: #050C16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --g: 32px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--f); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; font-stretch: 100%;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ambar); color: #0F1B2D; padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--g), 1200px); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }

.h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.9vw, 3.25rem); font-weight: 800; font-stretch: 112%;
  letter-spacing: -.02em; color: var(--brand); max-width: 22ch;
}
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head__lead { color: var(--ink-soft); max-width: 48ch; margin: 16px 0 0; font-size: 1.125rem; }
@media (min-width: 900px) {
  .head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
  .head--split .head__lead { margin: 0 0 6px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--r-s);
  font: 700 1rem/1.2 var(--f); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ambar); color: #0F1B2D; }
.btn--primary:hover { background: var(--ambar-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--ghost:hover { background: #fff; color: #0F1B2D; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-2); }
.btn .ico { width: 22px; height: 22px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-size: 1.375rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.02em; line-height: 1; }

/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; transition: background-color .3s, color .3s, box-shadow .3s; --focus: var(--ambar); }
.header__bar { height: 100%; display: flex; align-items: center; gap: 16px; }
.header.is-solid {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line); --focus: var(--brand);
}
:root[data-theme="dark"] .header.is-solid { --focus: var(--ambar); }
.header.is-solid .brand__name { color: var(--brand); }
.header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; min-height: 44px; padding: 10px 18px; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

.icon-btn, .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover, .burger:hover { background: rgba(127, 140, 160, .18); }
.icon-btn .ico--sol { display: none; }
:root[data-theme="dark"] .icon-btn .ico--sol { display: block; }
:root[data-theme="dark"] .icon-btn .ico--luna { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .ico--sol { display: block; }
  :root:not([data-theme="light"]) .icon-btn .ico--luna { display: none; }
  :root:not([data-theme="light"]) .header.is-solid { --focus: var(--ambar); }
}
.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
.burger span { display: block; width: 22px; height: 2px; margin: 2.5px 0; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 28px;
  padding: 20px var(--g) calc(32px + env(safe-area-inset-bottom));
  background: var(--deep); color: #fff; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  --focus: var(--ambar);
}
.header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.header.is-open { background: var(--deep); color: #fff; box-shadow: none; --focus: var(--ambar); }
.header.is-open .brand__name { color: #fff; }
.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-size: 1.625rem; font-weight: 700; font-stretch: 110%; }
.nav__list a:hover { color: var(--ambar); }
.nav__cta { align-self: stretch; min-height: 54px; }

@media (min-width: 1180px) {
  .burger, .header__cta { display: none !important; }
  .nav { position: static; inset: auto; z-index: auto; flex-direction: row; align-items: center; gap: 22px; padding: 0; margin-left: auto; background: none; color: inherit; overflow: visible; visibility: visible; opacity: 1; transform: none; transition: none; }
  .header__tools { margin-left: 0; order: 3; }
  .nav__list { display: flex; gap: 20px; }
  .nav__list a { padding: 8px 0; border: 0; color: inherit; font-size: .9375rem; font-weight: 600; font-stretch: 100%; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ambar); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav__list a:hover { color: inherit; }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__cta { align-self: auto; min-height: 44px; padding: 10px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 28px) 0 92px;
  color: #fff; background: #10294A; --focus: var(--ambar);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slides { z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active img { transform: scale(1); transition: transform 8s linear; }
.hero__slide--1 img { object-position: 60% 40%; }
.hero__slide--2 img { object-position: 72% 50%; }
.hero__slide--3 img { object-position: 50% 45%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 20, 38, .6) 0, rgba(8, 20, 38, 0) 22%),
    linear-gradient(to top, rgba(8, 20, 38, .96) 0%, rgba(8, 20, 38, .8) 45%, rgba(8, 20, 38, .35) 75%, rgba(8, 20, 38, .2) 100%);
}
@media (min-width: 900px) {
  .hero__shade {
    background:
      linear-gradient(to bottom, rgba(8, 20, 38, .55) 0, rgba(8, 20, 38, 0) 20%),
      linear-gradient(100deg, rgba(8, 20, 38, .95) 0%, rgba(8, 20, 38, .8) 40%, rgba(8, 20, 38, .25) 78%),
      linear-gradient(to top, rgba(8, 20, 38, .6) 0%, rgba(8, 20, 38, 0) 40%);
  }
}
.hero__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 600; color: rgba(255, 255, 255, .9); font-size: .9375rem; }
.hero__kicker .ico { color: var(--esmeralda-vivo); width: 20px; height: 20px; }
.hero__title { font-size: clamp(2.375rem, 1.1rem + 5.6vw, 5.25rem); font-weight: 800; font-stretch: 118%; line-height: .98; letter-spacing: -.03em; max-width: 13ch; }
.hero__lead { max-width: 54ch; margin: 20px 0 28px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

/* Cifras en escalera ascendente (elemento de marca) */
.climb { display: flex; align-items: flex-end; gap: 8px; margin-top: 32px; max-width: 560px; }
.climb__bar {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px 12px 10px; border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, .1); border-top: 3px solid var(--esmeralda-vivo);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.climb__bar--1 { min-height: 96px; }
.climb__bar--2 { min-height: 120px; border-top-color: #fff; }
.climb__bar--3 { min-height: 144px; background: var(--ambar); border-top-color: var(--ambar); color: #0F1B2D; }
.climb__bar b { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.climb__bar > span { margin-top: 6px; font-size: .8125rem; line-height: 1.25; font-weight: 600; }
@media (min-width: 560px) {
  .climb { gap: 10px; margin-top: 40px; }
  .climb__bar { padding: 16px 16px 12px; }
  .climb__bar--1 { min-height: 104px; } .climb__bar--2 { min-height: 132px; } .climb__bar--3 { min-height: 160px; }
  .climb__bar > span { font-size: .875rem; }
}

@media (min-width: 1100px) {
  .hero__content { display: grid; grid-template-columns: 1fr 400px; column-gap: 48px; align-items: end; }
  .hero__content > :not(.climb) { grid-column: 1; }
  .hero__title { font-size: clamp(3.5rem, 1rem + 4.6vw, 5rem); }
  .climb { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: end; }
  .climb__bar--1 { min-height: 130px; } .climb__bar--2 { min-height: 190px; } .climb__bar--3 { min-height: 250px; }
}

.hero__controls { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; align-items: center; gap: 8px; }
.hero__dots { display: flex; }
.dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .3s; }
.dot.is-active::before { background: var(--ambar); }
.dot:hover::before { background: #fff; }
.hero__pause { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(8, 20, 38, .35); color: #fff; cursor: pointer; }
.hero__pause .ico { width: 18px; height: 18px; }
.hero__pause .ico--play { display: none; }
.hero__pause.is-paused .ico--play { display: block; }
.hero__pause.is-paused .ico--pausa { display: none; }

/* Entrada del hero */
.js .hero__kicker, .js .hero__title, .js .hero__lead, .js .hero__actions { animation: rise .9s var(--ease) both; }
.js .hero__title { animation-delay: .06s; }
.js .hero__lead { animation-delay: .14s; }
.js .hero__actions { animation-delay: .22s; }
.js .climb__bar { animation: grow .8s var(--ease) both; transform-origin: bottom; }
.js .climb__bar--1 { animation-delay: .45s; } .js .climb__bar--2 { animation-delay: .6s; } .js .climb__bar--3 { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--deep); color: #fff; padding-block: 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.trust__list { display: grid; gap: 28px; }
.trust__item { display: flex; gap: 16px; align-items: flex-start; }
.trust__item .ico { width: 30px; height: 30px; color: var(--ambar); margin-top: 2px; }
.trust__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.trust__item p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 1rem; line-height: 1.5; }
@media (min-width: 620px) { .trust__list { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (min-width: 1100px) {
  .trust { padding-block: 48px; }
  .trust__list { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trust__item { flex-direction: column; padding: 4px 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
  .trust__item:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Soluciones ---------- */
.sol-feature { display: grid; gap: 20px; margin-bottom: 40px; }
.sol {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 28px 24px; border-radius: var(--r-m); color: #fff; background: var(--andes);
}
.sol--alt { background: var(--esmeralda); }
.sol::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(255, 255, 255, .09) 26px 27.5px);
}
.sol__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; }
.sol .sol__icon { background: rgba(255, 255, 255, .12); color: var(--ambar); margin-bottom: 18px; }
.sol__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; }
.sol__desc { margin: 12px 0 0; color: rgba(255, 255, 255, .88); font-size: 1.0625rem; max-width: 46ch; }
.sol__meta { margin: 20px 0 0; display: grid; gap: 12px; }
.sol__meta div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.sol__meta dt { font-weight: 700; font-size: .875rem; color: var(--ambar); }
.sol--alt .sol__meta dt { color: #FFE2A8; }
.sol__meta dd { margin: 2px 0 0; color: rgba(255, 255, 255, .9); }
.sol__term { margin: 24px 0 0; font-weight: 600; }
.sol__term b { font-size: 2.5rem; font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--ambar); font-variant-numeric: lining-nums tabular-nums; }
.sol--alt .sol__term b { color: #fff; }
.sol__link { align-self: flex-start; margin-top: 16px; padding: 8px 0; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--ambar); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sol__link:hover { text-decoration-color: #fff; }
@media (min-width: 900px) {
  .sol-feature { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .sol { padding: 40px 36px 34px; }
}

.sol-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sol-row { display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sol-row .sol__icon { background: var(--chip); color: var(--green-text); }
.sol-row__title { font-size: 1.25rem; font-weight: 700; font-stretch: 106%; line-height: 1.2; margin: 4px 0 8px; color: var(--ink); }
.sol-row__body p { margin: 0; color: var(--ink-soft); }
.sol-row__meta { margin-top: 10px !important; font-size: .9375rem; }
.sol-row__meta b { color: var(--ink); font-weight: 700; }
.sol-row__term { grid-column: 2; margin: 8px 0 0; display: flex; align-items: baseline; gap: 6px; color: var(--green-text); font-weight: 600; font-size: .9375rem; }
.sol-row__term b { font-size: 1.75rem; font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.sol-row:hover .sol__icon { background: var(--esmeralda); color: #fff; }
.sol-row .sol__icon { transition: background-color .25s, color .25s; }
@media (min-width: 640px) {
  .sol-row { grid-template-columns: 52px 1fr auto; }
  .sol-row__term { grid-column: 3; grid-row: 1; margin: 6px 0 0; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
}
@media (min-width: 1000px) {
  .sol-list { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .sol-row:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

/* ---------- Rubros ---------- */
.sectors { background: var(--bg-alt); }
.sectors__ui { display: grid; gap: 20px; }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 calc(-1 * var(--g)); padding-inline: var(--g);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--g); scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .9375rem; cursor: pointer; scroll-snap-align: start; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab .ico { width: 20px; height: 20px; color: var(--green-text); }
.tab:hover { border-color: var(--green-text); }
.tab[aria-selected="true"] { background: var(--andes); border-color: var(--andes); color: #fff; }
.tab[aria-selected="true"] .ico { color: var(--ambar); }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--ambar); border-color: var(--ambar); color: #0F1B2D; }
:root[data-theme="dark"] .tab[aria-selected="true"] .ico { color: #0F1B2D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: var(--ambar); border-color: var(--ambar); color: #0F1B2D; }
  :root:not([data-theme="light"]) .tab[aria-selected="true"] .ico { color: #0F1B2D; }
}

.rubro { display: grid; overflow: hidden; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.js .rubro:not([hidden]) { animation: fade-in .45s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rubro__img, .rubro__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rubro__art {
  display: grid; place-items: center; background-color: var(--andes); color: var(--ambar);
  background-image: repeating-radial-gradient(circle at 85% 110%, transparent 0 34px, rgba(255, 255, 255, .07) 34px 35.5px);
}
.rubro__art .ico { width: 96px; height: 96px; stroke-width: 1.2; }
.rubro__body { padding: 24px; }
.rubro__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; color: var(--brand); }
.rubro__ex { margin: 14px 0 0; font-size: 1.125rem; color: var(--ink); }
.rubro__ex b { color: var(--green-text); }
.rubro__lines { margin: 18px 0 0; color: var(--ink-soft); font-size: .9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rubro__lines span { padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--green-text); font-weight: 600; }
@media (min-width: 760px) {
  .rubro { grid-template-columns: 1fr 1fr; }
  .rubro__img, .rubro__art { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .rubro__body { padding: 36px 32px; align-self: center; }
}
@media (min-width: 1040px) {
  .sectors__ui { grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
  .tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .tab { width: 100%; border-radius: var(--r-s); border-color: transparent; background: transparent; min-height: 48px; }
  .tab:hover { background: var(--surface); border-color: transparent; }
  .tab[aria-selected="true"] { box-shadow: inset 4px 0 0 var(--ambar); }
  .rubro { min-height: 420px; }
}

/* ---------- Nosotros ---------- */
.about__grid { display: grid; gap: 40px; align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); }
.about__media::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 40%; height: 40%; border-left: 4px solid var(--ambar); border-bottom: 4px solid var(--ambar); border-radius: 0 0 0 var(--r-m); pointer-events: none; }
.about__text > p { color: var(--ink-soft); max-width: 58ch; margin-top: 20px; font-size: 1.125rem; }
.reasons { display: grid; gap: 20px; margin-top: 28px; }
.reasons li { display: flex; gap: 14px; align-items: flex-start; }
.reasons .ico { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--chip); color: var(--green-text); }
.reasons h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.reasons p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; gap: 24px 28px; } }
@media (min-width: 960px) {
  .reasons { grid-template-columns: 1fr; gap: 18px; }
  .about__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .about__media img { aspect-ratio: 5 / 6; }
}

/* ---------- Cómo funciona: escalera ---------- */
.steps { background: var(--bg-alt); }
.stairs { display: grid; gap: 14px; }
.stair { position: relative; padding: 22px 22px 22px 76px; border-radius: var(--r-s); background: var(--surface); border-left: 4px solid var(--esmeralda); }
.stair:last-child { border-left-color: var(--ambar); }
.stair__n { position: absolute; left: 22px; top: 20px; font-size: 2.25rem; font-weight: 800; font-stretch: 118%; line-height: 1; color: var(--green-text); font-variant-numeric: lining-nums; }
.stair:last-child .stair__n { color: var(--ambar-2); }
.stair__title { font-size: 1.1875rem; font-weight: 700; margin-bottom: 6px; }
.stair p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .stairs { grid-template-columns: repeat(4, 1fr); align-items: end; gap: 12px; }
  .stair { padding: 28px 24px 30px; border-left: 0; border-top: 5px solid var(--esmeralda); border-radius: 0 0 var(--r-s) var(--r-s); display: flex; flex-direction: column; }
  .stair:last-child { border-top-color: var(--ambar); }
  .stair__n { position: static; font-size: 3.5rem; margin-bottom: 18px; }
  .stair:nth-child(1) { min-height: 280px; }
  .stair:nth-child(2) { min-height: 330px; }
  .stair:nth-child(3) { min-height: 380px; }
  .stair:nth-child(4) { min-height: 430px; }
}
.js [data-reveal-group] .stair { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal-group].is-in .stair { opacity: 1; transform: none; }
.js [data-reveal-group].is-in .stair:nth-child(2) { transition-delay: .15s; }
.js [data-reveal-group].is-in .stair:nth-child(3) { transition-delay: .3s; }
.js [data-reveal-group].is-in .stair:nth-child(4) { transition-delay: .45s; }

/* ---------- Simulador ---------- */
.sim { background: var(--deep); color: #fff; --focus: var(--ambar); position: relative; overflow: hidden; }
.sim::before { content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, transparent 0 40px, rgba(255, 255, 255, .05) 40px 41.5px); }
.sim .h2 { color: #fff; }
.sim__intro p { color: rgba(255, 255, 255, .82); max-width: 48ch; margin: 18px 0 0; font-size: 1.125rem; }
.sim__grid { display: grid; gap: 36px; position: relative; }
.sim__panel { display: grid; gap: 30px; }
.sim label { font-weight: 700; }
.sim__note { margin: 10px 0 0; font-size: .9375rem; color: #FFE2A8; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.range output { font-size: 1.625rem; font-weight: 800; font-stretch: 110%; line-height: 1; color: var(--ambar); font-variant-numeric: lining-nums tabular-nums; }
.range__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .875rem; color: rgba(255, 255, 255, .7); }

input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--ambar) var(--p), rgba(255, 255, 255, .2) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ambar); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--ambar); border: 5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ambar); border: 5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline-offset: 6px; }

.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; width: 100%; padding-right: 44px; cursor: pointer; }
.select .ico { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; width: 20px; height: 20px; }
.sim .select { margin-top: 10px; }
.sim .select select { min-height: 52px; padding: 12px 44px 12px 16px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .35); border-radius: var(--r-s); color: #fff; }
.sim .select option { color: #0F1B2D; background: #fff; }

.sim__result { background: var(--surface); color: var(--ink); border-radius: var(--r-m); padding: 28px 24px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); --focus: var(--brand); }
:root[data-theme="dark"] .sim__result { --focus: var(--ambar); }
.sim__label { margin: 0; font-weight: 700; color: var(--ink-soft); }
.sim__cuota { margin: 6px 0 20px; font-size: clamp(2.375rem, 1.8rem + 2.6vw, 3.25rem); font-weight: 800; font-stretch: 110%; line-height: 1; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.sim__rows { margin: 0; }
.sim__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.sim__rows dt { color: var(--ink-soft); }
.sim__rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.sim__bar { display: flex; height: 10px; margin: 16px 0 10px; border-radius: 5px; overflow: hidden; background: var(--bg-alt); }
.sim__bar-cap { background: var(--andes); transition: flex-basis .4s var(--ease); }
.sim__bar-int { background: var(--ambar); transition: flex-basis .4s var(--ease); }
.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k--cap { background: var(--andes); }
.k--int { background: var(--ambar); margin-left: 12px; }
:root[data-theme="dark"] .sim__bar-cap, :root[data-theme="dark"] .k--cap { background: var(--esmeralda-vivo); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sim__bar-cap, :root:not([data-theme="light"]) .k--cap { background: var(--esmeralda-vivo); } :root:not([data-theme="light"]) .sim__result, :root:not([data-theme="light"]) .form { --focus: var(--ambar); } }
.sim__legend { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink-soft); margin-bottom: 22px; }
.sim__aviso { margin: 16px 0 0; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 960px) {
  .sim__grid { grid-template-columns: 1.15fr .85fr; column-gap: 72px; row-gap: 44px; align-items: start; }
  .sim__result { grid-column: 2; grid-row: 1 / span 2; padding: 36px 32px; position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Requisitos ---------- */
.reqs__grid { display: grid; gap: 40px; }
.reqs__head p { color: var(--ink-soft); max-width: 42ch; margin: 18px 0 0; }
.reqs__col .h3 { display: inline-block; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 3px solid var(--ambar); }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks .ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--chip); color: var(--green-text); stroke-width: 2.2; }
.checks--doc .ico { border-radius: var(--r-s); stroke-width: 1.8; }
@media (min-width: 720px) { .reqs__grid { grid-template-columns: 1fr 1fr; } .reqs__head { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .reqs__grid { grid-template-columns: 1fr 1.1fr 1.1fr; gap: 56px; } .reqs__head { grid-column: auto; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--bg-alt); }
.faq__grid { display: grid; gap: 32px; }
.faq__head p { color: var(--ink-soft); margin: 18px 0 0; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--green-text); }
.qa summary .ico { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--surface); transition: transform .3s var(--ease), background-color .2s; }
.qa[open] summary .ico { transform: rotate(180deg); background: var(--ambar); color: #0F1B2D; }
.qa__a { padding: 0 48px 22px 0; color: var(--ink-soft); }
.qa__a p { margin: 0; max-width: 62ch; }
.qa[open] .qa__a { animation: fade-in .35s var(--ease); }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 120px); color: #fff; background: var(--deep); --focus: var(--ambar); }
.contact::before { content: ""; position: absolute; right: -260px; top: -240px; width: 720px; height: 720px; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, transparent 0 44px, rgba(255, 255, 255, .05) 44px 45.5px); }
.contact__grid { position: relative; display: grid; gap: 40px; align-items: start; }
.contact .h2 { color: #fff; }
.contact__info > p { color: rgba(255, 255, 255, .85); max-width: 44ch; margin: 18px 0 28px; font-size: 1.125rem; }
.contact__list { display: grid; gap: 18px; margin-bottom: 32px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico { color: var(--ambar); margin-top: 3px; }
.contact__list small { display: block; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.contact__list a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.contact__info > .btn { width: 100%; }
@media (min-width: 560px) { .contact__info > .btn { width: auto; } }

.form { background: var(--surface); color: var(--ink); border-radius: var(--r-m); padding: 28px 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); --focus: var(--brand); }
:root[data-theme="dark"] .form { --focus: var(--ambar); }
.form__title { font-size: 1.75rem; font-weight: 800; font-stretch: 110%; color: var(--brand); }
.form__note { margin: 6px 0 20px; font-size: .9375rem; color: var(--ink-soft); }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } .form { padding: 36px 32px; } }
.field { margin-bottom: 4px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  background: var(--field); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-s);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:not([type="checkbox"]):focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ambar) 55%, transparent); }
.form ::placeholder { color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
.form .is-invalid { border-color: var(--error) !important; }
.field__err { min-height: 1.3em; margin: 4px 0 6px; font-size: .875rem; font-weight: 700; color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--esmeralda); }
.form .btn { margin-top: 8px; }
.form__status { margin: 14px 0 0; font-weight: 700; color: var(--green-text); }
.form__status:empty { display: none; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Pie ---------- */
.footer { background: var(--footer); color: rgba(255, 255, 255, .78); padding: 64px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .9375rem; --focus: var(--ambar); }
.footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.footer a:hover { color: var(--ambar); text-decoration: underline; }
.footer__grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand .brand { color: #fff; margin-bottom: 18px; }
.footer__brand p { max-width: 38ch; }
.footer__t { font-size: 1rem; font-weight: 700; font-stretch: 108%; color: #fff; margin-bottom: 14px; }
.footer__col li { padding: 5px 0; overflow-wrap: anywhere; }
.footer__col:last-child { grid-column: 1 / -1; }
.social { display: flex; gap: 8px; margin-top: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { border-color: var(--ambar); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.footer__legal a { text-decoration: underline; }
.footer__legal strong { color: #fff; }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .footer__brand, .footer__col:last-child { grid-column: auto; }
  .footer__legal { display: flex; justify-content: space-between; gap: 40px; }
  .footer__legal p:first-child { max-width: 80ch; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 17px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .5); transition: transform .25s var(--ease), background-color .2s; --focus: var(--ambar); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { background: var(--wa-2); transform: translateY(-2px); text-decoration: none; }
.wa-float__txt { display: none; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; padding: 0 22px 0 18px; } .wa-float__txt { display: inline; } }

/* ---------- Página legal ---------- */
.legal-top { background: var(--deep); color: #fff; --focus: var(--ambar); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.legal-top a { color: #fff; font-weight: 700; }
.legal { padding: 48px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; color: var(--brand); margin: 0 0 16px; }
.legal h2 { font-size: 1.375rem; font-weight: 700; color: var(--brand); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal__aviso { padding: 16px 18px; border: 1.5px dashed var(--ambar-2); border-radius: var(--r-s); background: color-mix(in srgb, var(--ambar) 14%, var(--surface)); color: var(--ink) !important; }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { 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; }
  .hero__slide img, .hero__slide.is-active img { transform: none; }
  .js [data-reveal], .js [data-reveal-group] .stair { opacity: 1; transform: none; }
}
