/* ==========================================
   TECHQUETZAL — Light glass fintech template
   Mobile-first
   ========================================== */

:root{
  --bg:       #EEF3F7;
  --bg-2:     #E5EDF3;
  --ink:      #0A1828;
  --ink-2:    #13263B;
  --muted:    #5A6B7B;
  --cyan:     #13A7BD;
  --cyan-lt:  #5FD3E2;
  --azure:    #5C7FE0;
  --gold:     #2FB6C9;
  --gold-lt:  #7FDCE8;
  --line:     rgba(16,38,59,.12);
  --line-2:   rgba(47,182,201,.35);
  --glass:    rgba(255,255,255,.62);
  --glass-brd:rgba(255,255,255,.85);
  --radius:   18px;
  --shadow:   0 14px 40px -20px rgba(16,38,59,.45);
  --shadow-lg:0 30px 70px -28px rgba(16,38,59,.5);
  --wrap:     1140px;
  --ease:     cubic-bezier(.22,.68,.36,1);
  --f-disp:   "Cormorant Garamond","Playfair Display",Georgia,serif;
  --f-body:   "Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --f-mono:   "Space Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--f-body); font-size:16px; line-height:1.7;
  color:var(--ink); background:var(--bg); overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ margin:0; line-height:1.2; font-weight:600; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 20px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px; border:1px solid transparent;
  font-family:var(--f-body); font-size:15px; font-weight:600; letter-spacing:.01em;
  cursor:pointer; transition:transform .28s var(--ease), background .28s var(--ease),
             box-shadow .28s var(--ease), color .28s var(--ease); text-align:center;
}
.btn:active{ transform:scale(.97); }
.btn-gold{
  background:linear-gradient(135deg,var(--cyan),var(--azure)); color:#fff;
  box-shadow:0 10px 26px -10px rgba(47,182,201,.72);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(47,182,201,.85); }
.btn-ghost{
  background:rgba(16,38,59,.04); color:var(--ink); border:1px solid rgba(16,38,59,.22);
}
.btn-ghost:hover{ background:rgba(16,38,59,.08); transform:translateY(-2px); }

/* ---------- Header ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:90;
  background:rgba(238,243,247,.72); backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid var(--line);
  transition:background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled{ background:rgba(255,255,255,.92); box-shadow:0 8px 30px -16px rgba(16,38,59,.4); }
.header-inner{
  max-width:var(--wrap); margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:11px; color:var(--cyan); }
.brand-mark{ display:block; flex:0 0 auto; }
.brand-text strong{
  display:block; font-family:var(--f-disp); font-size:21px; font-weight:600;
  letter-spacing:.14em; color:var(--ink); line-height:1.15;
}
.brand-text em{
  display:block; font-style:normal; font-size:10.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); margin-top:2px;
}
.nav-desktop{ display:none; gap:28px; align-items:center; }
.nav-desktop a{
  font-size:14px; font-weight:500; color:rgba(16,38,59,.78); position:relative; padding:4px 0;
}
.nav-desktop a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1.5px;
  background:var(--cyan); transition:width .3s var(--ease);
}
.nav-desktop a:hover{ color:var(--ink); }
.nav-desktop a:hover::after{ width:100%; }
.nav-desktop a.active{ color:var(--ink); }
.nav-desktop a.active::after{ width:100%; }

.menu-toggle{
  width:42px; height:42px; border:1px solid rgba(16,38,59,.2); border-radius:12px;
  background:rgba(255,255,255,.6); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:5px; cursor:pointer;
}
.menu-toggle span{
  display:block; width:17px; height:1.6px; background:var(--ink); border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle.open span:nth-child(1){ transform:translateY(6.6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-6.6px) rotate(-45deg); }

.mobile-menu{
  display:grid; gap:2px; max-height:0; overflow:hidden;
  padding:0 20px; background:rgba(255,255,255,.96);
  transition:max-height .42s var(--ease), padding .42s var(--ease);
}
.mobile-menu.open{ max-height:340px; padding:10px 20px 20px; }
.mobile-menu a{
  padding:13px 4px; color:var(--ink-2); font-size:15px; font-weight:500;
  border-bottom:1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden; color:var(--ink); text-align:center;
  background:linear-gradient(160deg,#F5F9FC 0%,#E9F1F6 55%,#E0EAF1 100%);
  padding:calc(130px + env(safe-area-inset-top)) 0 72px;
}
.hero-bg{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.hero-bg::before,.hero-bg::after{
  content:""; position:absolute; border-radius:50%; filter:blur(64px); opacity:.5;
}
.hero-bg::before{ width:560px; height:560px; right:-160px; top:-180px;
  background:radial-gradient(circle, rgba(47,182,201,.5), transparent 65%); }
.hero-bg::after{ width:500px; height:500px; left:-160px; bottom:-200px;
  background:radial-gradient(circle, rgba(92,127,224,.42), transparent 65%); }
.hero-inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:42px; width:100%; }
.hero-center{ max-width:760px; display:flex; flex-direction:column; align-items:center; gap:18px; }
.hero-eyebrow{
  display:inline-block; font-family:var(--f-mono); font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--cyan); border:1px solid var(--line-2);
  border-radius:999px; padding:6px 15px; background:rgba(47,182,201,.08);
}
.hero-title{
  font-family:var(--f-disp); font-size:clamp(40px,11vw,76px); font-weight:600;
  line-height:1.02; letter-spacing:-.01em; margin:0;
}
.hero-title .line{ display:block; }
.hero-title .accent{
  background:linear-gradient(105deg,var(--cyan) 0%,var(--azure) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-lead{ max-width:54ch; color:var(--muted); font-size:15.5px; font-weight:400; margin:0; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* status line — the 3 metrics as a tech readout, not a bare number row */
.hero-status{
  display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.03em; color:var(--muted);
  background:rgba(255,255,255,.55); border:1px solid var(--glass-brd); border-radius:999px;
  padding:9px 18px; box-shadow:var(--shadow);
}
.hero-status .stat b{ font-weight:700; color:var(--cyan); }
.hero-status .sep{ color:var(--line-2); }

/* centered emblem */
.hero-emblem{ width:min(86%,420px); margin:0 auto; opacity:.96; }
.hero-emblem svg{ width:100%; height:auto; }

/* ---------- Trust bar ---------- */
.trustbar{ padding:26px 0; }
.trustbar-inner{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.trust{
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:14px;
  padding:16px 18px; box-shadow:var(--shadow);
}
.trust-k{ font-family:var(--f-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--cyan); display:block; margin-bottom:4px; }
.trust-v{ font-size:14px; font-weight:600; color:var(--ink); }

/* ---------- Sections ---------- */
.section{ padding:74px 0; }
.section.alt{ background:linear-gradient(180deg, rgba(255,255,255,.45), rgba(225,235,243,.25)); }
.kicker{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--cyan); font-weight:700; margin-bottom:12px;
  display:flex; align-items:center; gap:10px;
}
.kicker::before{ content:""; width:26px; height:1.5px;
  background:linear-gradient(90deg,var(--cyan),transparent); }
.section-title{
  font-family:var(--f-disp); font-size:clamp(28px,7.5vw,46px); font-weight:600;
  color:var(--ink); margin-bottom:14px; letter-spacing:-.005em;
}
.section-title em{ font-style:italic; color:var(--cyan); }
.section-lead{ color:var(--muted); max-width:60ch; margin-bottom:36px; font-size:15.5px; }

/* ---------- Nosotros ---------- */
.split-text{ max-width:64ch; }
.split-text p{ color:var(--text); font-size:15.5px; }
.pillars{ display:grid; gap:16px; margin-top:32px; }
.pillar{
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:var(--radius);
  padding:24px 22px; box-shadow:var(--shadow); position:relative; overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--cyan),var(--azure));
  transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease);
}
.pillar:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.pillar:hover::before{ transform:scaleX(1); }
.pillar-n{ font-family:var(--f-mono); font-size:13px; letter-spacing:.06em; color:var(--cyan); display:block; margin-bottom:8px; }
.pillar h3{ font-family:var(--f-disp); font-size:21px; color:var(--ink); margin-bottom:7px; }
.pillar p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- Cards (shared) ---------- */
.card-ico{
  width:54px; height:54px; border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(140deg,rgba(47,182,201,.18),rgba(92,127,224,.18));
  color:var(--cyan); border:1px solid var(--line-2); margin-bottom:16px;
}
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tags li{
  font-size:11px; font-weight:600; letter-spacing:.04em; color:var(--ink-2);
  background:rgba(47,182,201,.13); border:1px solid var(--line-2);
  padding:3px 10px; border-radius:999px;
}

/* ---------- Servicios grid ---------- */
.svc-grid{ display:grid; gap:16px; grid-template-columns:1fr; }
.svc-card{
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:var(--radius);
  padding:24px 22px; box-shadow:var(--shadow); position:relative;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--line-2); }
.svc-code{ font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; color:var(--cyan); display:block; margin-bottom:14px; }
.svc-card h3{ font-family:var(--f-disp); font-size:21px; color:var(--ink); margin-bottom:8px; }
.svc-card p{ font-size:14px; color:var(--muted); margin-bottom:14px; }

/* ---------- Proceso funnel ---------- */
.funnel{ display:grid; gap:12px; }
.funnel-step{
  display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:center;
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:16px;
  padding:18px 22px; box-shadow:var(--shadow); width:100%;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.funnel-step:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--line-2); }
.f-num{
  display:grid; place-items:center; width:42px; height:42px; border-radius:12px; flex:0 0 auto;
  background:linear-gradient(135deg,var(--cyan),var(--azure)); color:#fff;
  font-family:var(--f-disp); font-size:20px; font-weight:700;
}
.funnel-step h3{ font-family:var(--f-disp); font-size:19px; color:var(--ink); margin-bottom:4px; }
.funnel-step p{ font-size:13.5px; color:var(--muted); margin:0; }

/* ---------- Sectores ---------- */
.sector-grid{ display:grid; gap:16px; grid-template-columns:1fr; }
.sector{
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:14px;
  padding:22px 20px; box-shadow:var(--shadow); position:relative;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.sector:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--line-2); }
.s-idx{ font-family:var(--f-mono); font-size:11px; color:var(--cyan); letter-spacing:.04em; }
.sector .card-ico{ width:48px; height:48px; margin:12px 0 14px; border-radius:12px; }
.sector h3{ font-family:var(--f-disp); font-size:20px; color:var(--ink); margin-bottom:7px; }
.sector p{ font-size:13.5px; color:var(--muted); margin:0; }

/* ---------- Diferenciadores manifesto ---------- */
.manifesto{ display:grid; border-top:1px solid var(--line); }
.m-row{
  display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:start;
  padding:22px 4px; border-bottom:1px solid var(--line); transition:background .3s var(--ease);
}
.m-row:hover{ background:rgba(47,182,201,.05); }
.m-num{ font-family:var(--f-disp); font-size:clamp(28px,5vw,40px); font-weight:700; color:var(--cyan); line-height:1; opacity:.85; }
.m-row h3{ font-family:var(--f-disp); font-size:21px; color:var(--ink); margin-bottom:6px; }
.m-row p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.6); padding:56px 0 80px; }
.footer-inner{ display:grid; gap:26px; }
.footer-brand{ display:flex; align-items:center; gap:12px; color:var(--cyan-lt); }
.footer-brand p{ font-size:13px; color:rgba(255,255,255,.55); margin:0; }
.footer-brand strong{ font-family:var(--f-disp); font-size:19px; letter-spacing:.14em; color:#fff; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:20px; }
.footer-nav a{ font-size:13.5px; color:rgba(255,255,255,.65); }
.footer-nav a:hover{ color:var(--cyan-lt); }
.footer-legal{ font-size:11.5px; line-height:1.85; border-top:1px solid rgba(255,255,255,.1); padding-top:22px; color:rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition-duration:.01ms !important; }
  .reveal{ opacity:1; transform:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (min-width:600px){
  .wrap{ padding:0 28px; }
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .sector-grid{ grid-template-columns:repeat(2,1fr); }
  .trustbar-inner{ grid-template-columns:repeat(4,1fr); }
}
@media (min-width:760px){
  .section{ padding:96px 0; }
  .hero{ padding-top:calc(150px + env(safe-area-inset-top)); }
  .hero-emblem{ width:min(64%,460px); }
  .pillars{ grid-template-columns:repeat(3,1fr); gap:18px; }
  .funnel-step:nth-child(1){ max-width:62%; }
  .funnel-step:nth-child(2){ max-width:74%; }
  .funnel-step:nth-child(3){ max-width:86%; }
  .funnel-step:nth-child(4){ max-width:96%; }
  .funnel-step:nth-child(5){ max-width:100%; }
}
@media (min-width:1000px){
  .nav-desktop{ display:flex; }
  .menu-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
  .svc-grid{ grid-template-columns:repeat(3,1fr); }
  .sector-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-inner{ grid-template-columns:auto 1fr; align-items:center; }
  .footer-legal{ grid-column:1/-1; }
}
