/* ==========================================================
   NEXT INNOVA — IA aplicada a Banca (Hub de capítulos)
   Archivo: ia-aplicada-banca.css
   Scope: body.ia-hub  (NO afecta otras páginas)
   ========================================================== */

body.ia-hub{
  --ni-navy:#0b2339;
  --ni-navy-2:#071a2b;
  --ni-emerald:#00b388;
  --ni-ink:#0b1220;
  --ni-muted:rgba(11,18,32,.72);
  --ni-border:rgba(11,35,57,.14);
  --ni-shadow:0 16px 40px rgba(7,26,43,.16);
  --ni-radius:18px;

  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  overflow-x:hidden;
}

/* =========================
   HERO
========================= */
body.ia-hub .ia-hero{
  position:relative;
  overflow:hidden;
  padding:56px 0 42px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(0,179,136,.18), transparent 55%),
    linear-gradient(180deg, var(--ni-navy), var(--ni-navy-2));
}
body.ia-hub .ia-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:url("../assets/img/bg-statement-01.jpg");
  background-size:cover;
  background-position:center;
  opacity:.45;
  filter:saturate(1.06) contrast(1.05);
  pointer-events:none;
}
body.ia-hub .ia-hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg,
    rgba(7,26,43,.62) 0%,
    rgba(7,26,43,.36) 50%,
    rgba(7,26,43,.62) 100%);
  pointer-events:none;
}
body.ia-hub .ia-hero .container{ position:relative; z-index:1; }

body.ia-hub .ia-hero-kicker{
  color:rgba(255,255,255,.78);
  letter-spacing:.16em;
  font-weight:900;
  font-size:12px;
  text-transform:uppercase;
  margin-bottom:10px;
}
body.ia-hub .ia-hero-title{
  color:#fff;
  font-weight:900;
  letter-spacing:-.02em;
  font-size:clamp(34px,4.2vw,56px);
  line-height:1.02;
  margin:0 0 14px;
}
body.ia-hub .ia-hero-sub{
  margin:0 0 18px;
  color:rgba(255,255,255,.90);
  font-weight:600;
  letter-spacing:-.005em;
  font-size:clamp(18px,1.6vw,24px);
  line-height:1.45;
  max-width:980px;
  text-shadow:0 2px 18px rgba(0,0,0,.22);
}

/* CTAs */
body.ia-hub .ia-hero-ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 18px;
}

/* Strip */
body.ia-hub .ia-hero-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:16px;
}
@media (max-width: 980px){
  body.ia-hub .ia-hero-strip{ grid-template-columns:1fr; }
}
body.ia-hub .ia-strip-item{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  border-radius:var(--ni-radius);
  padding:14px;
  box-shadow:0 12px 30px rgba(7,26,43,.18);
}
body.ia-hub .ia-strip-item .k{
  font-size:12px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(11,18,32,.62);
  margin-bottom:6px;
}
body.ia-hub .ia-strip-item .v{
  font-size:16px;
  font-weight:900;
  color:var(--ni-ink);
}

/* =========================
   GRID / CARDS
========================= */
body.ia-hub .ia-section{ padding:46px 0; }

body.ia-hub .ia-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 980px){
  body.ia-hub .ia-grid{ grid-template-columns:1fr; }
}

body.ia-hub .ia-card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--ni-border);
  border-radius:var(--ni-radius);
  padding:18px;
  box-shadow:var(--ni-shadow);
}
body.ia-hub .ia-card--live{
  border-color:rgba(0,179,136,.28);
  box-shadow:0 18px 44px rgba(0,179,136,.12), var(--ni-shadow);
}
body.ia-hub .ia-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
body.ia-hub .ia-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:-.01em;
  background:rgba(0,179,136,.12);
  border:1px solid rgba(0,179,136,.22);
  color:var(--ni-navy);
}
body.ia-hub .ia-badge--soon{
  background:rgba(11,35,57,.06);
  border:1px solid rgba(11,35,57,.12);
  color:rgba(11,18,32,.78);
}
body.ia-hub .ia-logo{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:-.02em;
  color:#fff;
  background:linear-gradient(180deg, rgba(0,179,136,.96), rgba(0,179,136,.74));
  box-shadow:0 12px 28px rgba(0,179,136,.18);
}
body.ia-hub .ia-card h3{
  margin:0 0 8px;
  font-weight:900;
  letter-spacing:-.01em;
  color:var(--ni-ink);
}
body.ia-hub .ia-card p{
  margin:0 0 14px;
  color:rgba(11,18,32,.78);
  line-height:1.6;
}

body.ia-hub .ia-bullets{
  margin:0 0 14px;
  padding-left:18px;
  color:rgba(11,18,32,.78);
  line-height:1.55;
}
body.ia-hub .ia-bullets li{ margin:6px 0; }

/* Acciones */
body.ia-hub .ia-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
body.ia-hub .ia-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(11,35,57,.08);
  color:rgba(11,18,32,.68);
  font-weight:700;
  font-size:13.5px;
}

/* Nota final */
body.ia-hub .ia-footnote{
  margin-top:18px;
  background:rgba(11,35,57,.04);
  border:1px solid rgba(11,35,57,.10);
  border-radius:var(--ni-radius);
  padding:18px;
}
body.ia-hub .ia-footnote h3{
  margin:0 0 10px;
  font-weight:900;
  color:var(--ni-ink);
}
body.ia-hub .ia-footnote p{
  margin:0 0 12px;
  color:rgba(11,18,32,.78);
  line-height:1.6;
}

/* ==========================================================
   FIX CONTRASTE — SOLO EN ESTA PÁGINA
   Reglas:
   1) Botón verde (.btn-primary): texto blanco normal; hover/active -> navy
   2) .btn.btn-link: texto verde normal (visible); hover/active -> navy
   3) NO tocar .btn-outline
   4) Navbar "Conversemos" (btn-sm): hover/active -> navy
========================================================== */

/* 1) BOTÓN PRIMARIO VERDE */
body.ia-hub .btn.btn-primary,
body.ia-hub .btn.btn-primary:visited{
  background: var(--ni-emerald) !important;
  border-color: var(--ni-emerald) !important;
  color: #ffffff !important;
  transition: all .22s ease;
}

body.ia-hub .btn.btn-primary:hover,
body.ia-hub .btn.btn-primary:focus,
body.ia-hub .btn.btn-primary:active{
  background: #0aa87e !important;
  border-color: #0aa87e !important;
  color: var(--ni-navy) !important; /* 👈 estándar */
}

/* 2) SOLO .btn.btn-link (NO outline) */
body.ia-hub .btn.btn-link,
body.ia-hub .btn.btn-link:visited{
  background: transparent !important;
  color: var(--ni-emerald) !important; /* 👈 visible INACTIVO */
  border: 0 !important;
  padding-left: 0;
  padding-right: 0;
  font-weight: 800;
  transition: color .18s ease;
  text-decoration: none;
}

body.ia-hub .btn.btn-link:hover,
body.ia-hub .btn.btn-link:focus,
body.ia-hub .btn.btn-link:active{
  color: var(--ni-navy) !important; /* 👈 estándar */
}

/* 4) NAVBAR botón Conversemos (solo en ia-hub) */
body.ia-hub .navbar .btn.btn-sm,
body.ia-hub .navbar .btn.btn-sm:visited{
  background: var(--ni-emerald) !important;
  color: #ffffff !important;
  border: 0 !important;
  transition: all .2s ease;
}
body.ia-hub .navbar .btn.btn-sm:hover,
body.ia-hub .navbar .btn.btn-sm:focus,
body.ia-hub .navbar .btn.btn-sm:active{
  background: #0aa87e !important;
  color: var(--ni-navy) !important; /* 👈 estándar */
}

/* =========================
   MODAL (correo) — scoped
========================= */
body.ia-hub .ia-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
body.ia-hub .ia-modal.is-open{ display:block; }

body.ia-hub .ia-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,26,43,.62);
  backdrop-filter: blur(2px);
}

body.ia-hub .ia-modal-panel{
  position:relative;
  width:min(720px, calc(100% - 32px));
  margin:64px auto;
  background:#fff;
  border-radius:20px;
  border:1px solid rgba(11,35,57,.12);
  box-shadow:0 28px 80px rgba(7,26,43,.28);
  padding:22px;
}

@media (max-width: 680px){
  body.ia-hub .ia-modal-panel{ margin:18px auto; }
}

body.ia-hub .ia-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(11,35,57,.14);
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

body.ia-hub .ia-modal-kicker{
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(11,18,32,.62);
  margin-bottom:8px;
}

body.ia-hub .ia-modal-title{
  margin:0 0 8px;
  font-weight:900;
  color:var(--ni-ink);
  letter-spacing:-.01em;
}
body.ia-hub .ia-modal-sub{
  margin:0 0 14px;
  color:rgba(11,18,32,.78);
  line-height:1.55;
}

/* Form */
body.ia-hub .ia-form{ margin-top:8px; }
body.ia-hub .ia-form-row{ margin-bottom:12px; }

body.ia-hub .ia-label{
  display:block;
  font-weight:800;
  margin-bottom:6px;
  color:rgba(11,18,32,.86);
}

body.ia-hub .ia-input{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(11,35,57,.18);
  padding:12px 12px;
  font-weight:700;
  outline:none;
}
body.ia-hub .ia-input:focus{
  border-color: rgba(0,179,136,.55);
  box-shadow:0 0 0 4px rgba(0,179,136,.14);
}

body.ia-hub .ia-hint{
  margin-top:6px;
  font-size:12.5px;
  color:rgba(11,18,32,.62);
}

body.ia-hub .ia-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:12px 0 14px;
  color:rgba(11,18,32,.78);
  font-weight:650;
  line-height:1.35;
}
body.ia-hub .ia-check input{ margin-top:3px; }

body.ia-hub .ia-form-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:8px;
}

body.ia-hub .ia-note{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  background:rgba(11,35,57,.04);
  border:1px solid rgba(11,35,57,.10);
  color:rgba(11,18,32,.78);
  line-height:1.5;
}

/* Invalid hint (simple) */
body.ia-hub #iaGateForm.is-invalid .ia-input:invalid{
  border-color: rgba(200, 30, 30, .55);
  box-shadow:0 0 0 4px rgba(200, 30, 30, .10);
}
