/* =====================================================================
   ASIF — Outsourcing de servicios financieros · Libranza en Colombia
   Design system: "Fintech editorial" con motivo hexagonal
   Tipografía: Fraunces (display) + Manrope (texto/UI)
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* Marca — azul */
  --blue-900: #16243A;
  --blue-800: #1E3A5C;
  --blue-700: #2E4F73;
  --blue-600: #386089;
  --blue:     #426D9B;
  --blue-300: #8FAFCC;
  --blue-100: #DCE8F3;
  --blue-50:  #EEF4FA;

  /* Marca — verde */
  --green-700: #4E7A1C;
  --green-600: #5E9021;
  --green:     #8DC63F;
  --green-300: #BCDE8C;
  --green-50:  #F2F8E7;

  /* Neutros */
  --ink:      #16243A;
  --muted:    #4E6079;
  --faint:    #8493A8;
  --paper:    #FFFFFF;
  --bg:       #F5F8FC;
  --bg-2:     #EDF3F9;
  --line:     #E2EAF2;
  --line-strong: #CFDBE8;

  /* Tipografía */
  --font-display: "Plus Jakarta Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Proporción de hexágono regular (flat-top): ancho/alto */
  --hex-ratio: 1.1547;

  /* Escala de espacios (8pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radios */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(22,36,58,.06), 0 2px 8px rgba(22,36,58,.05);
  --shadow-md: 0 8px 24px rgba(22,36,58,.08), 0 2px 6px rgba(22,36,58,.05);
  --shadow-lg: 0 24px 60px rgba(22,36,58,.14), 0 8px 18px rgba(22,36,58,.07);
  --shadow-blue: 0 18px 40px rgba(46,79,115,.28);
  --shadow-green: 0 16px 34px rgba(94,144,33,.30);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 76px;

  /* Movimiento */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .18s;
  --t: .32s;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* --------------------------- Tipografía ---------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.06;
  letter-spacing: -.025em; color: var(--blue-900); }
.display {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
}
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.18; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }

/* ----------------------------- Layout ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 19px; flex: none;
  background: var(--green);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--sp-4); }
.section-head h2 { margin-top: var(--sp-3); }

/* --------------------------- Hexágonos ----------------------------- */
/* Flat-top regular: el alto es ancho / 1.1547 para que todos los lados sean iguales */
.hex { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }

/* Patrón honeycomb decorativo (SVG embebido) */
.honeycomb-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23426D9B' stroke-width='1.2' stroke-opacity='0.10'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 69 L59 86 L59 120 L30 137 L1 120 L1 86 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 104px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  padding: 15px 26px; border-radius: var(--r-pill);
  min-height: 50px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
              background-color var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-800); transform: translateY(-2px); }

.btn--accent { background: var(--green); color: var(--blue-900); box-shadow: var(--shadow-green); }
.btn--accent:hover { background: var(--green-300); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue-600); background: var(--blue-50); }

.btn--light { background: #fff; color: var(--blue-800); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); }

.btn--lg { padding: 17px 32px; font-size: 1.05rem; min-height: 56px; }
.btn--block { width: 100%; }

.btn-arrow { transition: transform var(--t) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ----------------------------- Header ------------------------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.header.is-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand .brand-tag { display: none; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); border-left: 1px solid var(--line-strong);
  padding-left: 12px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; font-weight: 600; font-size: .96rem; color: var(--blue-900);
  padding: 9px 14px; border-radius: var(--r-pill); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center;
  justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--blue-900); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------- Hero ---------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(140% 120% at 88% -10%, var(--blue-50) 0%, rgba(238,244,250,0) 55%),
    radial-gradient(120% 110% at -5% 8%, var(--green-50) 0%, rgba(242,248,231,0) 48%),
    var(--paper);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.hero-badge b { color: var(--blue-700); }
.hero-badge .chip { background: var(--green-50); color: var(--green-700); font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-pill); font-size: .78rem; letter-spacing: .02em; }

.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 .accent { position: relative; color: var(--blue); white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .26em;
  background: linear-gradient(90deg, var(--green-300), var(--green)); border-radius: 4px;
  z-index: -1; opacity: .55;
}
.hero .lead { max-width: 36ch; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust .law { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-trust .law svg { width: 18px; height: 18px; color: var(--green-600); }

/* Hero visual — clúster de hexágonos con personas (evoca el logo) */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hexshot {
  position: absolute; aspect-ratio: var(--hex-ratio) / 1;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: #fff; padding: 6px;
  filter: drop-shadow(0 22px 34px rgba(22,36,58,.22));
}
.hexshot img { width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.hexshot--lg { width: 53%; left: 24%; top: 23%; z-index: 3; animation: floaty 7s var(--ease) infinite; }
.hexshot--md { width: 41%; right: 1%; top: 1%; z-index: 4; animation: floaty 6s var(--ease) infinite .6s; }
.hexshot--sm { width: 37%; left: 1%; bottom: 5%; z-index: 4; animation: floaty 8s var(--ease) infinite 1.1s; }

.hexdot { position: absolute; aspect-ratio: var(--hex-ratio) / 1;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); z-index: 1; }
.hexdot--green { width: 13%; background: var(--green); top: 8%; left: 12%; }
.hexdot--blue { width: 9%; background: var(--blue); bottom: 12%; right: 6%; }
.hexdot--ring { width: 16%; background: none; top: 60%; right: 16%;
  border: 0; box-shadow: none; clip-path: none; }
.hexdot--ring svg { width: 100%; height: auto; opacity: .55; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .hexshot--lg, .hexshot--md, .hexshot--sm { animation: none; }
}
.hero-float {
  position: absolute; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; z-index: 3;
  border: 1px solid var(--line);
}
.hero-float .hex-ico { width: 46px; height: 40px; flex: none; display: grid; place-items: center; color: #fff; }
.hero-float .hex-ico svg { width: 20px; height: 20px; }
.hero-float .meta small { display: block; color: var(--faint); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; }
.hero-float .meta b { font-size: 1.18rem; color: var(--blue-900); font-family: var(--font-display); }
.hero-float--a { top: 8%; left: -6%; animation: floaty 6s var(--ease) infinite; }
.hero-float--b { bottom: 9%; right: -7%; animation: floaty 7s var(--ease) infinite .8s; }
.hero-float--a .hex-ico { background: linear-gradient(150deg, var(--blue), var(--blue-700)); }
.hero-float--b .hex-ico { background: linear-gradient(150deg, var(--green), var(--green-600)); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-float--a, .hero-float--b { animation: none; } }

/* Hexágonos decorativos flotantes */
.deco-hex { position: absolute; pointer-events: none; opacity: .5; z-index: 1; }
.deco-hex svg { width: 100%; height: 100%; }

/* --------------------------- Banda ecosistema ---------------------- */
.trustband { background: linear-gradient(115deg, var(--blue-700), var(--blue-900)); position: relative; overflow: hidden;
  padding-block: clamp(48px, 6vw, 76px); }
.trustband .honeycomb-bg { mask-image: radial-gradient(100% 120% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(100% 120% at 50% 0%, #000 25%, transparent 72%);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.2' stroke-opacity='0.09'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 69 L59 86 L59 120 L30 137 L1 120 L1 86 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.trustband .container { position: relative; z-index: 1; }
.trustband-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 40px); }
.trustband-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-300); margin-bottom: 14px; }
.trustband-kicker::before { content: ""; width: 20px; height: 17px; background: var(--green);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.trustband-head h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.trustband-head h2 b { color: var(--green-300); font-weight: inherit; }
.trustband-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trustband-chips li { display: flex; align-items: center; gap: 13px; padding: 12px 24px 12px 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-pill);
  color: #fff; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em;
  transition: background var(--t), border-color var(--t), transform var(--t) var(--ease); }
.trustband-chips li:hover { background: rgba(141,198,63,.16); border-color: rgba(141,198,63,.45); transform: translateY(-4px); }
.trustband-chips .chip-ico { width: 40px; height: 35px; flex: none; display: grid; place-items: center;
  background: rgba(141,198,63,.22); color: var(--green-300);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.trustband-chips .chip-ico svg { width: 19px; height: 19px; }

/* ----------------------------- Stats ------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; position: relative; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat::before { content: ""; position: absolute; top: -18px; right: -18px; width: 84px; height: 73px;
  background: var(--green-50); clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem,4vw,3.2rem);
  color: var(--blue-700); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; }
.stat .num .suf { color: var(--green-600); }
.stat .label { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .98rem; position: relative; }

/* --------------------------- Servicios ----------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ico {
  width: 60px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-700));
  transition: transform var(--t) var(--ease);
}
.card:nth-child(even) .ico { background: linear-gradient(150deg, var(--green), var(--green-600)); }
.card:nth-child(even) .ico svg { color: #fff; }
.card:hover .ico { transform: rotate(-6deg) scale(1.06); }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .tag { display: inline-block; margin-top: 16px; font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50);
  padding: 5px 12px; border-radius: var(--r-pill); }

/* --------------------------- Audiencias ---------------------------- */
.audience { background: var(--bg); }
.aud-tabs { display: inline-flex; padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-7); gap: 4px; }
.aud-tab { padding: 12px 26px; border-radius: var(--r-pill); font-weight: 700; color: var(--muted);
  transition: color var(--t-fast); position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; }
.aud-tab svg { width: 18px; height: 18px; }
.aud-tab.is-active { color: #fff; }
.aud-tabs { position: relative; }
.aud-pill { position: absolute; top: 6px; bottom: 6px; border-radius: var(--r-pill);
  background: var(--blue-700); transition: transform var(--t) var(--ease), width var(--t) var(--ease),
  background-color var(--t); z-index: 0; }

.aud-panel { display: none; }
.aud-panel.is-active { display: block; animation: fadeUp .5s var(--ease-out) both; }
.aud-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; }
.aud-copy h2 { margin-bottom: var(--sp-4); }
.aud-copy .lead { margin-bottom: var(--sp-5); }
.aud-list { display: grid; gap: 16px; margin-bottom: var(--sp-6); }
.aud-list li { display: flex; gap: 14px; align-items: flex-start; }
.aud-list .check { width: 28px; height: 28px; flex: none; display: grid; place-items: center; color: #fff;
  background: var(--green-600); margin-top: 2px; }
.aud-list .check svg { width: 15px; height: 15px; }
.aud-list b { display: block; color: var(--blue-900); }
.aud-list span { color: var(--muted); font-size: .96rem; }

.aud-visual { position: relative; background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
  border-radius: var(--r-xl); padding: clamp(28px,4vw,44px); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg); }
.aud-visual .honeycomb-bg { mask-image: radial-gradient(120% 120% at 100% 0%, #000 20%, transparent 70%); }
.aud-visual h3 { color: #fff; position: relative; }
.aud-visual p { color: var(--blue-100); position: relative; margin-top: 10px; }
.aud-metrics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.aud-metric { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); padding: 18px; backdrop-filter: blur(4px); }
.aud-metric .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green-300); }
.aud-metric .lbl { font-size: .82rem; color: var(--blue-100); margin-top: 4px; }

/* ----------------- Crédito para personas (B2C emocional) ----------- */
.credito { position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--green-50), transparent 55%), var(--paper); }
.credito-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px,5vw,72px); align-items: center; }
.credito-copy h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: var(--sp-4); }
.credito-copy h2 em { font-style: normal; color: var(--green-600); }
.credito-copy .lead { margin-bottom: var(--sp-6); max-width: 46ch; }
.credito-points { display: grid; gap: 20px; margin-bottom: var(--sp-7); }
.credito-point { display: flex; gap: 16px; align-items: flex-start; }
.credito-point .ico { width: 50px; height: 43px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--green), var(--green-600)); }
.credito-point:nth-child(even) .ico { background: linear-gradient(150deg, var(--blue), var(--blue-700)); }
.credito-point .ico svg { width: 22px; height: 22px; }
.credito-point b { display: block; color: var(--blue-900); font-size: 1.08rem; }
.credito-point span { color: var(--muted); font-size: .96rem; }
.credito-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.credito-note { font-size: .9rem; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.credito-note svg { width: 16px; height: 16px; color: var(--green-600); }

/* Panel visual: para qué te alcanza */
.credito-visual { position: relative; background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  border-radius: var(--r-xl); padding: clamp(28px,4vw,40px); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.credito-visual .honeycomb-bg { mask-image: radial-gradient(120% 110% at 100% 0%, #000 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 110% at 100% 0%, #000 20%, transparent 68%); }
.credito-visual h3 { color: #fff; position: relative; font-size: 1.5rem; }
.credito-visual > p { color: var(--blue-100); position: relative; margin-top: 8px; margin-bottom: 24px; }
.usecases { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.usecase { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-md); padding: 15px;
  transition: background var(--t), transform var(--t) var(--ease); }
.usecase:hover { background: rgba(141,198,63,.18); transform: translateY(-3px); }
.usecase .uic { width: 40px; height: 35px; flex: none; display: grid; place-items: center;
  background: rgba(141,198,63,.22); color: var(--green-300); }
.usecase .uic svg { width: 19px; height: 19px; }
.usecase b { font-size: .98rem; color: #fff; }

/* --------------------------- Proceso ------------------------------- */
.process { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2.5vw,24px); position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 20px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step .node {
  width: 80px; height: 69px; margin: 0 auto 22px; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--blue-700);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  transition: transform var(--t) var(--ease), border-color var(--t), background var(--t), color var(--t);
}
.step:hover .node { background: var(--blue-700); color: #fff; border-color: var(--blue-700); transform: translateY(-4px); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; max-width: 26ch; margin-inline: auto; }

/* --------------------------- Diferenciadores ----------------------- */
.why { background: var(--blue-900); color: #fff; position: relative; overflow: hidden; }
.why .honeycomb-bg { background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.2' stroke-opacity='0.07'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 69 L59 86 L59 120 L30 137 L1 120 L1 86 Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(120% 110% at 80% 10%, #000 25%, transparent 75%); }
.why .container { position: relative; z-index: 2; }
.why h2 { color: #fff; }
.why .lead { color: var(--blue-100); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,30px); margin-top: var(--sp-7); }
.why-item { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); transition: background var(--t), transform var(--t) var(--ease); }
.why-item:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.why-item .ico { width: 54px; height: 47px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(141,198,63,.16); color: var(--green-300); }
.why-item .ico svg { width: 24px; height: 24px; }
.why-item h3 { color: #fff; font-size: 1.22rem; margin-bottom: 8px; }
.why-item p { color: var(--blue-100); font-size: .96rem; }

/* ----------------------------- FAQ --------------------------------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t); }
.faq-item.is-open { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-align: left; font-weight: 700; font-size: 1.05rem; color: var(--blue-900); }
.faq-q .pm { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700); transition: transform var(--t) var(--ease), background var(--t); }
.faq-item.is-open .pm { background: var(--blue-700); color: #fff; transform: rotate(45deg); }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t) var(--ease); }
.faq-a-inner { padding: 0 24px 24px; color: var(--muted); }

/* ----------------------------- CTA --------------------------------- */
.cta-wrap { position: relative; }
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 70%);
  color: #fff; padding: clamp(40px,6vw,80px); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta .honeycomb-bg { background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%238DC63F' stroke-width='1.4' stroke-opacity='0.18'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 69 L59 86 L59 120 L30 137 L1 120 L1 86 Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(90% 120% at 50% 120%, #000 20%, transparent 70%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(2rem,4.4vw,3.2rem); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--blue-100); max-width: 52ch; margin: var(--sp-4) auto var(--sp-6); font-size: 1.1rem; }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ----------------------------- Footer ------------------------------ */
.footer { background: var(--blue-900); color: var(--blue-100); padding-top: clamp(56px,7vw,88px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px,4vw,52px);
  padding-bottom: var(--sp-8); }
.footer .brand img { height: 36px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { margin-top: 18px; max-width: 38ch; color: var(--blue-100); font-size: .96rem; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.07); color: #fff; transition: background var(--t), transform var(--t-fast); }
.footer-social a:hover { background: var(--green-600); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--blue-100); font-size: .96rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--green-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--blue-100); font-size: .96rem; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--green-300); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: var(--blue-300); }
.footer-bottom a { color: var(--blue-100); }
.footer-bottom a:hover { color: var(--green-300); }

/* ---------------------- Scroll reveal / motion --------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aud-panel.is-active { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ----------------------------- Mobile ------------------------------ */
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .hero { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(440px, 84vw); margin-inline: auto; order: -1; margin-bottom: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .aud-layout { grid-template-columns: 1fr; }
  .aud-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .steps::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand .brand-tag { display: none; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
    background: #fff; padding: 28px clamp(20px,5vw,40px) 40px;
    transform: translateX(100%); transition: transform var(--t) var(--ease);
    overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  body.menu-open .mobile-menu { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .mobile-menu a.m-link { display: block; padding: 16px 4px; font-size: 1.3rem; font-weight: 600;
    font-family: var(--font-display); color: var(--blue-900); border-bottom: 1px solid var(--line); }
  .mobile-menu .m-actions { display: grid; gap: 12px; margin-top: 28px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustband .container { justify-content: flex-start; }
  .aud-tabs { width: 100%; }
  .aud-tab { flex: 1; justify-content: center; padding: 12px 10px; }
  .hero-float { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
