/* =========================================================
   CSIBS — Style (consolidado y optimizado)
   Paleta: azul corporativo + acento morado
   ========================================================= */

/* ---------- Variables y base ---------- */
:root{
  --primary:#135EB0;
  --accent:#3730A3;
  --muted:#F5F7FB;
  --text:#222;
  --text2:#667085;
  --dark:#0c1220;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;color:var(--text);background:#fff}
img{max-width:100%;height:auto;display:block}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
main{padding-top:72px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- Header & navegación ---------- */
.header{
  position:fixed;inset:0 0 auto 0;z-index:50;
  background:linear-gradient(180deg,#0e4690,#135EB0);
  box-shadow:0 2px 8px rgba(0,0,0,.15)
}
.header__inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.nav{display:none;gap:12px}
.nav__link,.nav__parent{
  background:none;border:0;padding:8px 10px;cursor:pointer;
  color:rgba(255,255,255,.9);text-decoration:none;font:inherit
}
.nav__link.is-active,.nav__link:hover,.nav__parent:hover{color:#fff}
.nav__toggle{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;width:36px;border-radius:8px;border:0;
  background:rgba(255,255,255,.1);color:#fff
}
@media(min-width:768px){.nav{display:flex}.nav__toggle{display:none}}

.nav__list{display:flex;gap:12px;list-style:none;margin:0;padding:0}
.nav__item{position:relative}
.nav__chev{margin-left:6px;font-size:12px}
.nav__submenu{
  position:absolute;top:100%;left:0;min-width:220px;z-index:60;display:none;
  background:#fff;color:#1c1c1c;border-radius:10px;box-shadow:0 10px 24px rgba(0,0,0,.12);padding:8px;margin-top:6px;list-style:none
}
.nav__submenu-link{display:block;padding:8px 10px;border-radius:8px;color:#1c1c1c;text-decoration:none}
.nav__submenu-link:hover{background:#f5f7fb}
@media(min-width:768px){.nav__item.has-children:hover>.nav__submenu{display:block}}

@media(max-width:767px){
  .nav{display:none}
  html.nav-open .nav{display:block;position:fixed;inset:56px 0 0 0;background:#135EB0;padding:16px}
  .nav__list{flex-direction:column;gap:8px}
  .nav__item.has-children .nav__submenu{position:static;background:transparent;box-shadow:none;padding:0;margin:0}
  .nav__item.has-children .nav__submenu-link{color:#fff;padding:8px 12px}
  .nav__item.has-children.is-open>.nav__submenu{display:block}
}

/* ---------- Branding ---------- */
.branding{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.branding__logo-img{display:block;height:36px;width:auto;object-fit:contain}
.branding__text{display:flex;flex-direction:column;line-height:1.1}
.branding__name{font-weight:700;font-size:16px;color:#fff}
.branding__tagline{font-weight:400;font-size:12px;color:#fff;opacity:.85}
@media(max-width:640px){.branding__tagline{display:none}}
@media(max-width:767px){.branding__logo-img{height:32px}}
.branding--footer .branding__logo-img{height:32px;width:auto}
.branding--footer .branding__name{font-weight:600;color:#fff}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;padding:10px 16px;border:1px solid rgba(0,0,0,.1);
  text-decoration:none;transition:transform .06s ease
}
.btn:active{transform:scale(.98)}
.btn--primary{background:#fff;color:var(--primary);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.btn--light{background:#fff;color:var(--primary)}
.btn--outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}

/* ---------- Hero ---------- */
.hero{
  padding:64px 0;color:#fff;  
  background:url('/public/img/banner.png') no-repeat center/cover 
 /* background:linear-gradient(120deg,#0e4690 0%,#135EB0 40%,#3730A3 100%)*/
}
.hero .grid{display:grid;grid-template-columns:1fr;gap:24px}
.hero .lead{color:rgba(255,255,255,.85)}
.hero__viz{
  position:relative;height:260px;border-radius:16px;
  background:rgba(255,255,255,.06);outline:1px solid rgba(255,255,255,.15)
}
.hero__viz .viz{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px}
.hero__viz .viz>div{background:rgba(255,255,255,.12);border-radius:12px}
.hero__viz .viz>div.col-2{grid-column:span 2}
.hero__viz .kpi{
  position:absolute;right:-8px;bottom:-8px;background:#fff;color:var(--primary);
  padding:10px 14px;border-radius:12px;box-shadow:0 10px 20px rgba(0,0,0,.15)
}
.scroll{text-align:center;color:rgba(255,255,255,.85);padding-bottom:12px}
@media(min-width:768px){.hero .grid{grid-template-columns:1fr 1fr}.hero__viz{height:320px}}

/* ---------- Secciones & tipografía ---------- */
.section{padding:64px 0}
.section--muted{background:var(--muted)}
.section--gradient{background:linear-gradient(135deg,#0e4690,#135EB0);color:#fff}
.section--accent{background:#f6f6ff}
.section__title{text-align:center;max-width:720px;margin:0 auto 24px}
.kicker{letter-spacing:.2em;text-transform:uppercase;color:var(--primary);font-size:12px;margin:0 0 8px}
.muted{color:var(--text2)}
.mt{margin-top:14px}

/* ---------- Grid utilitario ---------- */
.grid{display:grid;gap:16px}
.grid--2{grid-template-columns:1fr}
.grid--3{grid-template-columns:1fr}
.grid--4{grid-template-columns:1fr}
@media(min-width:768px){
  .grid--2{grid-template-columns:1fr 1fr}
  .grid--3{grid-template-columns:repeat(3,1fr)}
  .grid--4{grid-template-columns:repeat(4,1fr)}
}

/* ---------- Tarjetas & listas ---------- */
.cards .card{
  background:#fff;border-radius:16px;padding:20px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);outline:1px solid rgba(0,0,0,.05)
}
.card__icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:12px;background:rgba(19,94,176,.08)
}
.card__title{margin:10px 0 6px;font-size:18px}
.card__text{color:var(--text2);font-size:14px}
.card__link{display:inline-flex;margin-top:10px;color:var(--primary);text-decoration:none}

/* ---------- Casos / KPIs ---------- */
.case{background:#fff;border-radius:16px;padding:20px}
.kpis{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:8px;padding:0;margin:10px 0;list-style:none
}
.kpi-badge{text-align:center;background:rgba(19,94,176,.1);border-radius:8px;padding:4px 8px;font-size:13px}
.pill{background:#fff;border-radius:10px;padding:10px;box-shadow:0 1px 3px rgba(0,0,0,.06)}

/* ---------- Banners por categoría ---------- */
.banner{padding:36px 0}
.banner__inner{display:grid;grid-template-columns:1fr;gap:16px;align-items:center}
.banner__title{margin:0 0 6px}
.banner__desc{margin:0;color:var(--text2)}
.banner__media{text-align:right}
.banner__img{max-width:520px;width:100%;height:auto;border-radius:16px;object-fit:cover}
@media(min-width:768px){.banner__inner{grid-template-columns:1.1fr .9fr}}
.banner.--gradient{background:linear-gradient(120deg,#0e4690 0%,#135EB0 40%,#3730A3 100%);color:#fff}
.banner.--solid{background:var(--muted)}
.banner.--muted{background:#f7f9fc}
.banner.--gradient .banner__desc{color:rgba(255,255,255,.9)}

/* ---------- CTA ---------- */
.cta{border-radius:16px;background:linear-gradient(90deg,#135EB0,#3730A3);padding:28px;text-align:center;color:#fff}

/* ---------- Formularios ---------- */
.input,.textarea{
  width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;
  background:#fff;color:inherit
}
.textarea{min-height:120px}

/* ---------- Cookies ---------- */
.cookies{
  position:fixed;left:0;right:0;bottom:0;background:#fff;
  box-shadow:0 -10px 20px rgba(0,0,0,.15);padding:12px 0;z-index:70
}
.cookies__inner{display:flex;align-items:center;justify-content:space-between;gap:12px}

/* =========================================================
   CSIBS — Footer + WhatsApp (versión consolidada)
   ========================================================= */

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366; /* Verde oficial WhatsApp */
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
  transition: filter .2s ease, transform .1s ease;
}

.whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Imagen del logo */
.whatsapp-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}


/* ---------- Footer base ---------- */
.footer {
  background: var(--dark);
  color: #fff;
  padding-top: 40px;
  margin-top: 40px;
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.footer__grid {
  display: grid;
  gap: 24px;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- Branding dentro del footer ---------- */
.branding--footer {
  display: flex;
  gap: 12px;
  align-items: center;
}
.branding__img {
  height: 80px;
  margin-top: 36px;
  width: auto;
}
.branding__tag {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Listas ---------- */
.list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.list li { margin: 6px 0; }

/* ---------- Partners / Alianzas ---------- */
.footer__partners .partners {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: .9;
}

.footer__partners .partners img {
  height: 22px;
  max-height: 22px;
  width: auto;
  margin: 0 10px 8px 0;
  filter: brightness(0) invert(1);
  opacity: .85;
  opacity:0.9; transition:opacity .2s;
/* transition: opacity .2s, transform .08s;*/
}
.footer__partners .partners img:hover {
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .footer__partners .partners img {
    height: 18px;
    max-height: 18px;
  }
}

/* ---------- Botones del footer ---------- */
.footer .btn {
  border-color: rgba(255, 255, 255, .25);
}
.footer .btn--light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  transition: background .2s ease;
}
.footer .btn--light:hover {
  background: rgba(255, 255, 255, .08);
}
.footer .btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: filter .2s ease;
}
.footer .btn--primary:hover {
  filter: brightness(1.05);
}
.footer .footer__contact .btn {
  margin-top: 6px;
}

/* ---------- Línea inferior ---------- */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 12px 0;
  text-align: center;
  color: rgba(255, 255, 255, .75);
}
.footer__alliances {  }
.footer__alliances .partners img {
    height: 36px;
    max-height: 36px;
  }
.footer__alliances .partners img:hover {
  opacity: 1;
  transform: translateY(-1px);
}
