/* ============================================================
   FINORA CORE — finoracore.com
   Sitio institucional. Banca core on-premise (SUDEBAN).
   Marca: Navy #201C4F · Ámbar #F5A026 · Manrope.
   Motif: franjas diagonales hacia adelante (del logotipo).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap');

:root {
  /* Marca (autoridad) */
  --navy:        #201C4F;
  --navy-900:    #15123a;
  --navy-700:    #2a2566;
  --navy-600:    #322c78;
  --amber:       #F5A026;
  --amber-600:   #e08e16;
  --amber-soft:  rgba(245,160,38,0.12);

  /* Superficies */
  --bg:          #FBFAF7;   /* papel cálido, no blanco frío */
  --surface:     #FFFFFF;
  --surface-2:   #F4F2EC;
  --ink:         #14112e;
  --ink-2:       #4b4870;
  --ink-3:       #7c799a;
  --line:        #E7E3D7;
  --line-2:      #d8d3c4;

  /* Acentos semánticos sobrios */
  --teal:        #0D9488;
  --teal-soft:   rgba(13,148,136,0.10);

  /* Sistema */
  --radius:      14px;
  --radius-lg:   22px;
  --maxw:        1200px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-1:    0 1px 2px rgba(20,17,46,0.04), 0 2px 8px rgba(20,17,46,0.04);
  --shadow-2:    0 18px 40px -22px rgba(20,17,46,0.30), 0 6px 16px -10px rgba(20,17,46,0.18);
  --shadow-amber:0 18px 36px -16px rgba(245,160,38,0.45);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--navy-900); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* tipografía utilitaria */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber-600);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--amber);
  display: inline-block;
}
.eyebrow--light { color: var(--amber); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.nav__logo { height: 26px; transition: opacity .3s; }
.nav__logo--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,0.82);
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--navy-900);
  font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-amber); background: #ffb23e; }

/* nav scrolled → claro */
.nav.is-stuck {
  background: rgba(251,250,247,0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -18px rgba(20,17,46,0.4);
}
.nav.is-stuck .nav__logo--light { display: none; }
.nav.is-stuck .nav__logo--dark { display: block; }
.nav.is-stuck .nav__links a { color: var(--ink-2); }
.nav.is-stuck .nav__links a:hover { color: var(--ink); }

.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(245,160,38,0.18), transparent 55%),
    radial-gradient(90% 80% at 0% 0%, rgba(50,44,120,0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 48%, #1b1746 100%);
  color: #fff;
  padding: 168px 0 120px;
}
/* motif: franjas diagonales hacia adelante (logo) */
.hero__stripes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%, #000 100%);
}
.hero__stripes span {
  position: absolute; top: -30%; height: 160%; width: 64px;
  transform: skewX(-22deg);
  background: linear-gradient(180deg, rgba(245,160,38,0.0), rgba(245,160,38,0.16), rgba(245,160,38,0.0));
  filter: blur(.3px);
}
.hero__stripes span:nth-child(1){ right: 6%;  opacity: .9; }
.hero__stripes span:nth-child(2){ right: 12%; width: 30px; background: linear-gradient(180deg,transparent,rgba(255,255,255,0.06),transparent); }
.hero__stripes span:nth-child(3){ right: 19%; width: 110px; background: linear-gradient(180deg,transparent,rgba(245,160,38,0.08),transparent); }
.hero__stripes span:nth-child(4){ right: 27%; width: 22px; background: linear-gradient(180deg,transparent,rgba(255,255,255,0.05),transparent); }

.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 80%);
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px;
  padding: 7px 14px 7px 10px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.86); margin-bottom: 30px;
  background: rgba(255,255,255,0.04);
}
.hero__tag b { color: var(--amber); font-weight: 700; }
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,0.25); }

.hero h1 {
  font-size: clamp(40px, 6vw, 74px); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 26px;
}
.hero h1 .amber { color: var(--amber); }
.hero h1 .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,0.74);
  max-width: 620px; margin-bottom: 38px; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; border-radius: 999px;
  padding: 14px 26px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn--amber { background: var(--amber); color: var(--navy-900); }
.btn--amber:hover { transform: translateY(-2px); box-shadow: var(--shadow-amber); background: #ffb23e; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: var(--navy-700); }
.btn svg { width: 17px; height: 17px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 54px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__trust div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.66); font-weight: 500; }
.hero__trust svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--navy-900); color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats__cell {
  padding: 40px 28px; border-left: 1px solid rgba(255,255,255,0.08);
}
.stats__cell:first-child { border-left: 0; }
.stats__num {
  font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
}
.stats__num .amber { color: var(--amber); }
.stats__lbl { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,0.6); font-weight: 500; line-height: 1.4; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.section { padding: 110px 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }
.section__head h2 {
  font-size: clamp(30px, 4vw, 46px); margin-top: 18px; color: var(--ink);
}
.section__head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   MODULES GRID
   ============================================================ */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mod {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.mod::after {
  content: ''; position: absolute; top: 0; right: 0; width: 70px; height: 70px;
  background: linear-gradient(135deg, transparent 50%, var(--amber-soft) 50%);
  opacity: 0; transition: opacity .35s;
}
.mod:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.mod:hover::after { opacity: 1; }
.mod__ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--navy); color: var(--amber); margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.mod:hover .mod__ico { transform: rotate(-6deg) scale(1.06); }
.mod__ico svg { width: 24px; height: 24px; }
.mod h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.mod p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.mod__tag {
  display: inline-block; margin-top: 16px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-soft); padding: 4px 10px; border-radius: 999px;
}

/* ============================================================
   COMPLIANCE / SPLIT
   ============================================================ */
.split {
  background: linear-gradient(170deg, var(--navy-900), var(--navy) 60%, #1c1848);
  color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; position: relative;
}
.split__stripes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .6; }
.split__stripes span {
  position: absolute; top: -20%; height: 140%; width: 50px; transform: skewX(-22deg);
  background: linear-gradient(180deg, transparent, rgba(245,160,38,0.12), transparent);
}
.split__stripes span:nth-child(1){ left: 46%; }
.split__stripes span:nth-child(2){ left: 52%; width: 18px; background: linear-gradient(180deg,transparent,rgba(255,255,255,0.06),transparent); }
.split__stripes span:nth-child(3){ left: 58%; width: 90px; background: linear-gradient(180deg,transparent,rgba(245,160,38,0.06),transparent); }
.split__l { padding: 64px 56px; position: relative; z-index: 2; }
.split__l h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 20px; }
.split__l p { color: rgba(255,255,255,0.74); font-size: 17px; line-height: 1.6; max-width: 460px; }
.split__list { margin-top: 30px; display: grid; gap: 14px; }
.split__list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.86); }
.split__list svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 1px; }

.split__r {
  position: relative; z-index: 2; padding: 56px;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.12);
}
.atoms {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px;
}
.atoms__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.atoms__top span { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.atoms__badge { font-size: 11.5px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 4px 9px; border-radius: 999px; }
.atoms__chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.atoms__chips i {
  font-style: normal; font-size: 10.5px; font-weight: 700; text-align: center;
  padding: 7px 0; border-radius: 7px; background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.62); font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s, transform .3s;
}
.atoms__chips i.on { background: var(--amber); color: var(--navy-900); }
.atoms__foot { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; }
.atoms__foot b { color: #fff; font-weight: 700; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.arch__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.arch__k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 12px; }
.arch__card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.arch__card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* feature rows */
.features { display: grid; gap: 0; margin-top: 8px; }
.frow {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 28px; align-items: center;
  padding: 30px 4px; border-top: 1px solid var(--line);
}
.frow:last-child { border-bottom: 1px solid var(--line); }
.frow__n { font-family: var(--serif); font-size: 40px; color: var(--line-2); font-variant-numeric: tabular-nums; }
.frow__b h3 { font-size: 21px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.frow__b p { font-size: 15.5px; color: var(--ink-2); max-width: 640px; line-height: 1.55; }
.frow__t { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--surface-2); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 0 0 110px; }
.cta__box {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
  border-radius: var(--radius-lg); padding: 80px 56px; text-align: center; color: #fff;
}
.cta__box .hero__stripes { mask-image: none; opacity: .8; }
.cta__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta__box h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.cta__box h2 .amber { color: var(--amber); }
.cta__box p { color: rgba(255,255,255,0.74); font-size: 18px; margin-bottom: 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--navy-900); color: rgba(255,255,255,0.6); padding: 64px 0 34px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot__brand img { height: 26px; margin-bottom: 18px; }
.foot__brand p { font-size: 14px; max-width: 280px; line-height: 1.6; }
.foot__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 700; }
.foot__col a { display: block; font-size: 14.5px; color: rgba(255,255,255,0.72); padding: 6px 0; transition: color .2s; }
.foot__col a:hover { color: var(--amber); }
.foot__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.foot__bot b { color: var(--amber); font-weight: 700; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(-n+2) { border-top: 0; }
  .stats__cell:nth-child(odd) { border-left: 0; }
  .stats__cell { border-top: 1px solid rgba(255,255,255,0.08); }
  .split { grid-template-columns: 1fr; }
  .split__r { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.1); border: 0; cursor: pointer; }
  .nav.is-stuck .nav__burger { background: var(--surface-2); }
  .nav__burger svg { width: 22px; height: 22px; color: #fff; }
  .nav.is-stuck .nav__burger svg { color: var(--ink); }
  .hero { padding: 130px 0 90px; }
  .section { padding: 76px 0; }
  .modules { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 10px; }
  .frow__t { justify-self: start; }
  .frow__n { font-size: 30px; }
  .split__l, .split__r { padding: 40px 30px; }
  .cta__box { padding: 56px 26px; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
