/* ============================================================================
   STC — Catálogo del Ecosistema Bancario
   Tokens de marca fuente: https://stc.hn/assets/css/tokens.css (verbatim)
   Componentes base fuente: https://stc.hn/assets/css/styles.css (adaptados)
   Extensiones propias: catálogo de pilares / fichas de sistema
   ========================================================================== */

/* ============================================================================
   1) TOKENS OFICIALES STC (copiados sin modificar de stc.hn/assets/css/tokens.css)
   ========================================================================== */
:root {
  /* ---- AZUL DE MARCA (confirmado contra SVG oficial: #005D92) ---- */
  --stc-primary:        #005D92;
  --stc-primary-dark:   #00476F;
  --stc-primary-light:  #0A73B0;

  /* ---- SUPERFICIES (tema claro premium) ---- */
  --stc-bg:        #FFFFFF;
  --stc-bg-2:      #F4F7FA;
  --stc-surface:   #FFFFFF;
  --stc-surface-2: #EFF4F9;
  --stc-border:    #E2E9EF;
  --stc-border-strong: #CBD8E2;
  --stc-ink:       #0A1622;
  --stc-muted:     #4A5A67;
  --stc-faint:     #7A8A96;

  /* ---- CTA DOMINANTE ---- */
  --stc-cta:       #1E9AE0;
  --stc-cta-hover: #1385CC;
  --stc-cta-ink:   #06090D;

  /* ---- NAVY (bloques oscuros premium: tarjeta hero, banda CTA) ---- */
  --stc-navy:        #12324A;
  --stc-navy-2:      #0B2233;
  --stc-on-navy:     #EAF2F8;
  --stc-muted-navy:  #AEC3D4;
  --stc-accent-navy: #6FB8E6;
  --stc-navy-glow:   rgba(30,154,224,.18);

  /* ---- SEMÁNTICOS ---- */
  --stc-success: #157A4E;
  --stc-warning: #9A6B12;
  --stc-danger:  #B23A32;

  /* ---- TIPOGRAFÍA ---- */
  --stc-font-display: "Poppins","Montserrat",system-ui,sans-serif;
  --stc-font-body:    "Inter","Roboto",system-ui,sans-serif;
  --stc-font-mono:    "JetBrains Mono",ui-monospace,monospace;

  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 4.5rem);
  --fs-h1:      clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3:      clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h4:      1.25rem;
  --fs-lead:    1.1875rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  --lh-tight: 1.1; --lh-snug: 1.28; --lh-body: 1.6;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --tracking-eyebrow: 0.14em;

  /* ---- ESPACIADO ÚNICO (4·8·12·16·24·32·48·64·96·128) ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-32: 128px;
  --section-y: clamp(64px, 5vw + 32px, 128px);

  /* ---- GRID / CONTENEDOR ---- */
  --container-max: 1200px; --container-wide: 1360px;
  --gutter: clamp(16px, 3vw, 32px);

  /* ---- RADIOS / SOMBRAS ---- */
  --stc-radius-sm: 8px; --stc-radius: 12px; --stc-radius-lg: 20px; --stc-radius-pill: 999px;
  --stc-shadow:    0 10px 30px rgba(10,40,70,.10);
  --stc-shadow-lg: 0 24px 60px rgba(0,60,110,.16);
  --stc-ring:      0 0 0 2px var(--stc-bg), 0 0 0 4px var(--stc-cta);

  /* ---- MOTION ---- */
  --stc-dur: 240ms; --stc-dur-fast: 140ms;
  --stc-ease: cubic-bezier(.2,.7,.2,1);
  --stc-reveal-y: 16px;

  --z-header: 100; --z-modal: 200;
}

@media (prefers-reduced-motion: reduce) {
  :root { --stc-dur: 0ms; --stc-dur-fast: 0ms; --stc-reveal-y: 0px; }
  html { scroll-behavior: auto; }
}

:root { color-scheme: light; }

/* ============================================================================
   2) RESET + BASE
   ========================================================================== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--stc-primary-light); text-decoration: none; }
a:hover { color: var(--stc-cta-hover); }

body {
  background: var(--stc-bg);
  color: var(--stc-ink);
  font-family: var(--stc-font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--stc-font-display); line-height: var(--lh-tight); font-weight: var(--fw-semibold); }

:focus-visible { outline: none; box-shadow: var(--stc-ring); border-radius: var(--stc-radius-sm); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--stc-cta); color: var(--stc-cta-ink);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--stc-radius-sm);
  z-index: var(--z-modal); font-weight: var(--fw-semibold);
}
.skip-link:focus{ left: var(--sp-4); top: var(--sp-4); }

.container{ width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.section{ padding-block: var(--section-y); }
.section--alt{ background: var(--stc-bg-2); }

.eyebrow{
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--stc-font-mono);
  font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--stc-primary-light); font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-3);
}
.eyebrow::before{ content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow--on-navy{ color: var(--stc-accent-navy); }

/* ---------- Icons ---------- */
.ic{ width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg{ width: 32px; height: 32px; }
.ic-xl{ width: 44px; height: 44px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--stc-font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-6);
  border-radius: var(--stc-radius-pill); border: 1px solid transparent;
  transition: transform var(--stc-dur-fast) var(--stc-ease), background var(--stc-dur-fast) var(--stc-ease), box-shadow var(--stc-dur-fast) var(--stc-ease), border-color var(--stc-dur-fast) var(--stc-ease);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-cta{ background: var(--stc-cta); color: var(--stc-cta-ink); box-shadow: var(--stc-shadow); }
.btn-cta:hover{ background: var(--stc-cta-hover); color: var(--stc-cta-ink); }
.btn-ghost{ background: transparent; color: var(--stc-ink); border-color: var(--stc-border-strong); }
.btn-ghost:hover{ background: var(--stc-surface-2); color: var(--stc-ink); }
.btn-ghost--on-navy{ color: var(--stc-on-navy); border-color: rgba(234,242,248,.35); }
.btn-ghost--on-navy:hover{ background: rgba(234,242,248,.08); color: var(--stc-on-navy); }
.btn-lg{ padding: var(--sp-4) var(--sp-8); font-size: var(--fs-body); }

/* ============================================================================
   3) HEADER
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stc-border);
}
.header-inner{ display: flex; align-items: center; gap: var(--sp-6); min-height: 68px; }
.brand{ display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--stc-ink); }
.brand-mark{ height: 34px; width: auto; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong{ font-family: var(--stc-font-display); font-weight: var(--fw-bold); letter-spacing: .04em; font-size: 1.05rem; }
.brand-text small{ font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stc-muted); }

.main-nav{ margin-inline-start: auto; }
.nav-list{ display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav-link{
  display: inline-flex; align-items: center; position: relative;
  color: var(--stc-ink); padding: var(--sp-2) var(--sp-3); border-radius: var(--stc-radius-sm);
  font-weight: var(--fw-medium); font-size: var(--fs-sm);
}
.nav-link:hover{ color: var(--stc-ink); background: var(--stc-surface-2); }
.nav-link[aria-current="true"]{ color: var(--stc-primary); background: var(--stc-surface-2); }
.header-cta{ margin-inline-start: var(--sp-2); }

.hamburger{ display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px; margin-inline-start: auto; }
.hamburger span{ width: 22px; height: 2px; background: var(--stc-ink); border-radius: 2px; transition: transform var(--stc-dur) var(--stc-ease), opacity var(--stc-dur); }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer{ display: none; flex-direction: column; border-top: 1px solid var(--stc-border); background: var(--stc-surface); }
.mobile-drawer.is-open{ display: flex; }
.mobile-drawer a{ padding: var(--sp-4) var(--gutter); font-size: var(--fs-sm); border-bottom: 1px solid var(--stc-border); color: var(--stc-muted); }
.drawer-cta{ margin: var(--sp-4) var(--gutter); }

@media (min-width: 860px){
  .hamburger{ display: none; }
  .main-nav{ display: block; }
  .header-cta{ display: inline-flex; }
}
@media (max-width: 859px){
  .main-nav, .header-cta{ display: none; }
  .hamburger{ display: flex; }
}

/* ============================================================================
   4) HERO
   ========================================================================== */
.hero{
  padding-block: clamp(48px, 6vw, 104px);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--stc-bg), var(--stc-bg-2));
}
.hero::before{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 88% 0%, #E6F0F8, transparent 60%);
}
.audience-switch{
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--sp-6);
  border-radius: var(--stc-radius-pill); background: var(--stc-surface); border: 1px solid var(--stc-border);
}
.audience-tab{
  border: 0; background: transparent; cursor: pointer; color: var(--stc-muted);
  padding: var(--sp-2) var(--sp-6); border-radius: var(--stc-radius-pill);
  font-family: var(--stc-font-display); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  transition: background var(--stc-dur-fast) var(--stc-ease), color var(--stc-dur-fast) var(--stc-ease);
}
.audience-tab.is-active{ background: var(--stc-primary); color: #fff; }
.audience-tab:not(.is-active):hover{ color: var(--stc-ink); }

.hero h1{ font-size: var(--fs-display); letter-spacing: -.01em; margin-bottom: var(--sp-6); max-width: 17ch; }
.hero h1 em{ color: var(--stc-primary-light); font-style: normal; }
.hero .lead{ font-size: var(--fs-lead); color: var(--stc-muted); max-width: 56ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block: var(--sp-8) 0; }

/* ---------- Stats ---------- */
.stats{ padding-block: var(--section-y); }
.stats-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-6); text-align: center; }
.stat{ padding: var(--sp-6); border-left: 1px solid var(--stc-border); }
.stat:first-child{ border-left: 0; }
.stat-num{ display: block; font-family: var(--stc-font-display); font-weight: var(--fw-bold); font-size: var(--fs-h1); color: var(--stc-primary-light); line-height: 1; }
.stat-label{ display: block; margin-top: var(--sp-3); color: var(--stc-muted); font-size: var(--fs-sm); }
@media (min-width: 640px){ .stats-grid{ grid-template-columns: repeat(4,1fr); } }
@media (max-width: 639px){ .stat:nth-child(odd){ border-left: 0; } }

/* ============================================================================
   5) THESIS / PRINCIPLES
   ========================================================================== */
.thesis__head{ max-width: 62ch; }
.section-title{ font-size: var(--fs-h2); margin-bottom: var(--sp-4); max-width: 24ch; }
.thesis__head p{ color: var(--stc-muted); font-size: var(--fs-lead); max-width: 60ch; margin-top: var(--sp-4); }

.principles{ margin-top: var(--sp-16); display: grid; gap: var(--sp-6); grid-template-columns: 1fr; border-top: 1px solid var(--stc-border); }
.principle{ padding-block: var(--sp-8); border-bottom: 1px solid var(--stc-border); display: grid; gap: var(--sp-3); }
.principle__num{ font-family: var(--stc-font-mono); color: var(--stc-primary-light); font-size: var(--fs-sm); }
.principle h3{ font-size: var(--fs-h4); }
.principle p{ color: var(--stc-muted); max-width: 52ch; font-size: var(--fs-sm); }
@media (min-width: 820px){
  .principles{ grid-template-columns: repeat(2,1fr); gap: 0; }
  .principle{ padding: var(--sp-8); border-right: 1px solid var(--stc-border); }
  .principle:nth-child(2n){ border-right: none; }
}

/* ============================================================================
   6) PILARES — OVERVIEW GRID
   ========================================================================== */
.section-head{ display: flex; flex-direction: column; gap: var(--sp-3); max-width: 70ch; }
.section-head p{ color: var(--stc-muted); font-size: var(--fs-lead); }

.pilares-grid{ margin-top: var(--sp-16); display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px){ .pilares-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px){ .pilares-grid{ grid-template-columns: repeat(3,1fr); } }

.card{
  background: var(--stc-surface); border: 1px solid var(--stc-border); border-radius: var(--stc-radius-lg);
  padding: var(--sp-8);
  transition: transform var(--stc-dur) var(--stc-ease), border-color var(--stc-dur) var(--stc-ease), background var(--stc-dur) var(--stc-ease), box-shadow var(--stc-dur) var(--stc-ease);
}
.card:hover{ transform: translateY(-4px); border-color: var(--stc-border-strong); box-shadow: var(--stc-shadow); }

.pilar-card{ display: flex; flex-direction: column; gap: var(--sp-4); }
.pilar-card__top{ display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.pilar-card__icon{ color: var(--stc-primary-light); flex-shrink: 0; }
.pilar-card__count{ font-family: var(--stc-font-mono); font-size: var(--fs-xs); color: var(--stc-muted); white-space: nowrap; padding-top: var(--sp-2); }
.pilar-card h3{ font-size: var(--fs-h4); }
.pilar-card p{ color: var(--stc-muted); font-size: var(--fs-sm); flex-grow: 1; }

.link-arrow{
  margin-top: auto; padding-top: var(--sp-4); display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--fw-semibold); font-family: var(--stc-font-display); font-size: var(--fs-sm); color: var(--stc-primary);
}
.link-arrow .ic{ width: 16px; height: 16px; transition: transform var(--stc-dur-fast) var(--stc-ease); }
.pilar-card:hover .link-arrow .ic{ transform: translateX(4px); }

/* ============================================================================
   7) PILAR DETAIL + SYSTEM CARDS
   ========================================================================== */
.pilar-detail{ scroll-margin-top: 88px; border-top: 1px solid var(--stc-border); }
.pilar-detail__head{ display: flex; flex-direction: column; gap: var(--sp-4); max-width: 76ch; }
.pilar-detail__head-top{ display: flex; align-items: center; gap: var(--sp-4); }
.pilar-detail__icon{ color: var(--stc-primary); flex-shrink: 0; }
.pilar-detail__head p{ color: var(--stc-muted); font-size: var(--fs-lead); }

.systems-grid{ margin-top: var(--sp-16); display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 700px){ .systems-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1180px){ .systems-grid{ grid-template-columns: repeat(3,1fr); } }

.system-card{ display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); }
.system-card__id{ font-family: var(--stc-font-mono); font-size: var(--fs-xs); color: var(--stc-faint); }
.system-card__tag{ font-family: var(--stc-font-mono); font-size: var(--fs-xs); color: var(--stc-primary-light); }
.system-card h3{ font-family: var(--stc-font-body); font-weight: var(--fw-semibold); font-size: 1.02rem; line-height: var(--lh-snug); margin-top: 2px; }
.system-card p.desc{ color: var(--stc-muted); font-size: var(--fs-sm); }

.system-card details{ margin-top: var(--sp-2); border-top: 1px solid var(--stc-border); padding-top: var(--sp-3); }
.system-card summary{
  cursor: pointer; font-family: var(--stc-font-mono); font-size: var(--fs-xs); letter-spacing: .06em;
  text-transform: uppercase; color: var(--stc-ink); display: flex; align-items: center; justify-content: space-between; list-style: none;
}
.system-card summary::-webkit-details-marker{ display: none; }
.system-card summary::after{ content: "+"; font-family: var(--stc-font-body); font-size: 1.1rem; color: var(--stc-primary); }
.system-card details[open] summary::after{ content: "–"; }
.system-card details dl{ margin-top: var(--sp-3); display: grid; gap: var(--sp-3); }
.system-card details dt{ font-family: var(--stc-font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stc-faint); }
.system-card details dd{ margin-top: 2px; font-size: var(--fs-sm); color: var(--stc-ink); }

/* ============================================================================
   8) MÓDULOS OPCIONALES
   ========================================================================== */
.optional-grid{ display: grid; gap: var(--sp-6); grid-template-columns: 1fr; margin-top: var(--sp-16); }
@media (min-width: 700px){ .optional-grid{ grid-template-columns: repeat(2,1fr); } }
.optional-grid .card p{ margin-top: var(--sp-2); color: var(--stc-muted); font-size: var(--fs-sm); }
.optional-grid .card h3{ margin-top: var(--sp-2); font-size: var(--fs-h4); }

/* ============================================================================
   9) POR QUÉ STC
   ========================================================================== */
.why-list{ margin-top: var(--sp-16); border-top: 1px solid var(--stc-border); }
.why-item{ padding-block: var(--sp-6); border-bottom: 1px solid var(--stc-border); display: grid; gap: var(--sp-2); transition: padding-left var(--stc-dur-fast) var(--stc-ease); }
.why-item:hover{ padding-left: var(--sp-3); }
.why-item__row{ display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); }
.why-item h3{ font-family: var(--stc-font-body); font-weight: var(--fw-semibold); font-size: 1.02rem; }
.why-item__num{ font-family: var(--stc-font-mono); font-size: var(--fs-sm); color: var(--stc-faint); }
.why-item p{ color: var(--stc-muted); max-width: 62ch; font-size: var(--fs-sm); }

/* ============================================================================
   10) CTA BAND (WhatsApp)
   ========================================================================== */
.cta-band{
  padding-block: var(--section-y);
  background: linear-gradient(120deg, var(--stc-navy), var(--stc-navy-2) 85%);
  position: relative; overflow: hidden;
}
.cta-band::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 120% at 88% 0%, var(--stc-navy-glow), transparent 60%);
}
.cta-inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); flex-wrap: wrap; position: relative; }
.cta-band h2{ font-size: var(--fs-h2); max-width: 20ch; margin-bottom: var(--sp-3); color: var(--stc-on-navy); }
.cta-band p{ color: var(--stc-muted-navy); max-width: 48ch; }
.cta-band .cta-actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.cta-band .contact-meta{ display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-6); font-family: var(--stc-font-mono); font-size: var(--fs-sm); color: var(--stc-muted-navy); }
.cta-band .contact-meta a{ color: var(--stc-on-navy); border-bottom: 1px solid rgba(234,242,248,.3); }

/* ============================================================================
   11) FOOTER
   ========================================================================== */
.site-footer{ background: var(--stc-bg-2); border-top: 1px solid var(--stc-border); padding-block: var(--sp-16) var(--sp-8); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-12); }
.footer-brand img{ margin-bottom: var(--sp-4); height: 30px; }
.footer-note{ color: var(--stc-muted); font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 32ch; }
.footer-col h4{ font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--stc-ink); margin-bottom: var(--sp-4); }
.footer-col a{ display: block; color: var(--stc-muted); font-size: var(--fs-sm); padding-block: var(--sp-1); }
.footer-col a:hover{ color: var(--stc-ink); }
.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--stc-border);
  color: var(--stc-muted); font-size: var(--fs-sm);
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ============================================================================
   12) REVEAL ON SCROLL
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(var(--stc-reveal-y)); transition: opacity var(--stc-dur) var(--stc-ease), transform var(--stc-dur) var(--stc-ease); }
.reveal.is-visible{ opacity: 1; transform: none; }
.stagger > *{ transition-delay: calc(var(--i, 0) * 60ms); }
