/* ===== caso-exito.css — Página individual de caso de éxito ===== */

/* ══════════════════════════════════
   Hero — azul profundo + glow aurora
══════════════════════════════════ */
.cb-hero {
  position: relative;
  overflow: hidden;
  /* azul oscuro que matchea el borde superior de los banners (sin gap blanco) */
  background-color: #0d1f30;
  padding-top: 68px;
}

/* Imagen — misma altura en los 3 casos (proporción del banner de BICE) */
.cb-hero-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  aspect-ratio: 2379 / 661;
  height: auto;
  object-fit: cover;
  object-position: center 65%;
}

/* Glow / aurora — por encima de la imagen, mezcla suave */
.cb-hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 113, 178, .5), rgba(1, 138, 56, .2) 45%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Logos sobre la imagen (absolute, centrados) — opcional por página */
.cb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .6rem;
  /* deja libre el alto del navbar fijo (72px) */
  padding: 72px 1.5rem 1.5rem;
}

.cb-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #46d484;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.cb-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.cb-hero-title .cb-sep {
  margin: 0 .6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
}

/* ══════════════════════════════════
   Franja intro — gradiente azul→verde
══════════════════════════════════ */
.cb-intro {
  background: linear-gradient(rgba(10, 33, 56, .15), rgba(10, 33, 56, .15)),
              url('../img/banner-quienesomos.png') center / cover no-repeat;
  padding: 2rem 1.5rem;
}

.cb-intro-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: .98rem;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* ══════════════════════════════════
   Cuerpo
══════════════════════════════════ */
.cb-section {
  background: #f5f5f3;
  padding: 60px 0 90px;
}

.cb-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Stats ===== */
.cb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cb-stat {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.cb-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #2271b2;
  margin: 0;
}

.cb-stat-num .cb-unit {
  color: #018a38;
}

.cb-stat-label {
  font-size: .82rem;
  color: #6b7280;
  margin: .6rem 0 0;
}

/* ===== Texto puente ===== */
.cb-bridge {
  max-width: 960px;
  margin: 0 auto 2rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 1.6rem 2rem;
}

.cb-bridge p {
  font-size: .92rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* ══════════════════════════════════
   Secciones numeradas
══════════════════════════════════ */
.case-block {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 2rem;
}

.case-num {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #018a38;
  margin: 0 0 .4rem;
}

.case-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2271b2;
  margin: 0 0 1.2rem;
}

.case-text {
  font-size: .92rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 1.1rem;
}

.case-text:last-child {
  margin-bottom: 0;
}

/* Label pill (verde sutil) */
.case-label {
  display: inline-flex;
  align-items: center;
  background: rgba(1, 138, 56, .08);
  border: 1px solid rgba(1, 138, 56, .25);
  color: #018a38;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Variantes de tamaño de título */
.case-title--lg {
  font-size: 1.8rem;
}

.case-title--sm {
  font-size: 1.1rem;
  line-height: 1.35;
}

/* Título con línea verde debajo */
.case-heading {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2271b2;
  margin: 0 0 1.4rem;
  padding-bottom: .7rem;
}

.case-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #018a38;
}

/* Card con fondo azul profundo (texto blanco) */
.case-block--dark {
  background: #0a2138;
  border-color: transparent;
}

.case-block--dark .case-heading {
  color: #fff;
}

.case-block--dark .case-text {
  color: rgba(255, 255, 255, .85);
}

/* Lista con chevron verde */
.case-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.case-list li {
  display: flex;
  gap: .65rem;
  font-size: .92rem;
  line-height: 1.75;
  color: #444;
}

.case-list li i {
  flex-shrink: 0;
  margin-top: .25rem;
  color: #018a38;
  font-size: 1.1rem;
}

/* Lista dentro de una card oscura */
.case-block--dark .case-list li {
  color: rgba(255, 255, 255, .85);
}

/* Sub-encabezado dentro de una sección */
.case-subhead {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #2271b2;
  margin: 1.3rem 0 .4rem;
}

.case-block--dark .case-subhead {
  color: #46d484;
}

/* Frase destacada / pull quote (border-left verde) */
.case-quote {
  margin: 1.4rem 0;
  padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid #018a38;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 600;
  color: #0a2138;
}

.case-block--dark .case-quote {
  color: #fff;
  border-left-color: #46d484;
}

/* Grilla de 4 stats */
.cb-stats--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .cb-stats--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Placeholder de gráfico (fallback gris si la imagen no carga) */
.case-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0ec;
  color: #9ca3af;
  font-size: .85rem;
  text-align: center;
}

.case-chart img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Foto a ancho completo (sin el tope de los gráficos) */
.case-photo {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.case-photo img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ══════════════════════════════════
   CTA final — bloque oscuro
══════════════════════════════════ */
.cb-cta {
  max-width: 960px;
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, #0a2138, #0f2a47);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}

.cb-cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .6rem;
}

.cb-cta-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 1.6rem;
}

.cb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(90deg, #2271b2, #018a38);
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.cb-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ══════════════════════════════════
   Responsive
══════════════════════════════════ */
@media (max-width: 768px) {
  .cb-stats {
    grid-template-columns: 1fr;
  }
  .case-block,
  .cb-bridge,
  .cb-cta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .cb-cta-title {
    font-size: 1.35rem;
  }
}
