/* =========================================================
  ECISA - CASOS DE EXITO
========================================================= */

.cases-page {
  background: #fff;
}

.cases-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 39%, rgba(255,255,255,.18) 55%, rgba(255,255,255,0) 100%),
    url(../img/hero/hero-image.webp) right top / contain no-repeat,
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cases-hero-grid {
  min-height: 350px;
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: center;
}

.cases-hero-copy {
  position: relative;
  z-index: 2;
  padding: 44px 0 50px;
}

.cases-hero-copy h1 {
  margin: 0 0 24px;
  color: var(--navy-950);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 900;
}

.cases-hero-copy p {
  max-width: 535px;
  margin: 0;
  color: #344766;
  font-size: 18px;
  line-height: 1.52;
}

.cases-hero-media {
  position: relative;
  min-height: 450px;
  align-self: stretch;
}

.cases-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.36), rgba(255,255,255,0) 22%);
  pointer-events: none;
}

.cases-hero-shape {
  position: absolute;
  left: -50px;
  bottom: 0;
  width: 120px;
  height: 112px;
  border-radius: 24px 24px 0 0;
  background: rgba(0, 149, 155, .13);
  transform: skewX(-17deg);
}

.cases-metrics-section {
  position: relative;
  z-index: 3;
  margin-top: -26px;
  padding-bottom: 22px;
}

.cases-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.case-metric {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.case-metric:last-child {
  border-right: 0;
}

.case-metric img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.case-metric h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.case-metric h3 {
  margin: 4px 0 8px;
  color: var(--navy-950);
  font-size: 12px;
  line-height: 1.18;
  text-transform: uppercase;
  font-weight: 850;
}

.case-metric p {
  margin: 0;
  color: #56647a;
  font-size: 12px;
  line-height: 1.42;
}

.cases-heading {
  justify-content: center;
}

.cases-heading span {
  color: var(--teal-700);
}

.cases-logos-section,
.cases-featured-section,
.cases-testimonial-section {
  padding: 0 0 28px;
}

.cases-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cases-logo-card {
  height: auto;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.cases-logo-card img {
  max-width: 250px;
  max-height: 150px;
  object-fit: contain;
  opacity: .95;
}

.cases-logo-card span {
  display: block;
}

.cases-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.featured-case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 32, 62, .035);
}

.featured-case-media {
  position: relative;
  height: 118px;
  overflow: visible;
  z-index: 1;
}

.featured-case-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-case-media span {
  position: absolute;
  left: 24px;
  bottom: -26px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
}

.featured-case-media span img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.featured-case-body {
  padding: 38px 22px 22px;
}

.featured-case-body h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 19px;
  line-height: 1.16;
  font-weight: 850;
}

.featured-case-body strong {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.featured-case-body > p {
  min-height: 88px;
  margin: 0 0 16px;
  color: #40516c;
  font-size: 13px;
  line-height: 1.55;
}

.featured-case-result {
  display: grid;
  grid-template-columns: 42px 74px 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.featured-case-result span,
.featured-case-result b {
  color: var(--teal-700);
}

.featured-case-result span {
  font-size: 30px;
}

.featured-case-result b {
  font-size: 27px;
  font-weight: 850;
}

.featured-case-result p {
  margin: 0;
  color: #56647a;
  font-size: 12px;
  line-height: 1.35;
}

.cases-testimonial {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 30px 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cases-testimonial > span {
  color: rgba(0, 149, 155, .62);
  font-size: 88px;
  line-height: .75;
  font-weight: 900;
}

.cases-testimonial p {
  margin: 0 0 16px;
  color: #56647a;
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
}

.cases-testimonial strong,
.cases-testimonial small {
  display: block;
  text-align: center;
}

.cases-testimonial strong {
  color: var(--teal-700);
  font-size: 15px;
}

.cases-testimonial small {
  color: #657189;
  font-size: 13px;
}
