/* CENFIC · footer institucional compacto basado en 17.png */
.site-footer--compact,
.site-footer--compact * { box-sizing: border-box; }

.site-footer--compact {
  width: 100%;
  height: auto;
  min-height: 112px;
  overflow: visible;
  border: 0;
  color: #e8ecf2;
  background: #001b3b;
  font-family: Inter, Arial, sans-serif;
}

.site-footer--compact::before,
.site-footer--compact::after { display: none !important; }

.compact-footer__inner {
  width: 100%;
  height: 100%;
  padding: 18px 39px 12px;
  display: grid;
  grid-template-columns: 285fr 130fr 155fr 215fr 180fr;
  align-items: start;
}

.site-footer--compact .compact-footer__brand {
  display: flex;
  align-items: flex-start;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  min-width: 235px;
  min-height: 0;
}

.compact-footer__logo {
  display: block;
  width: 45px;
  height: 53px;
  flex: 0 0 45px;
  object-fit: contain;
  transform: scale(1.35);
  transform-origin: center;
}

.compact-footer__brand-text {
  display: flex;
  min-width: 0;
  margin: 3px 0 0 9px;
  flex-direction: column;
}

.compact-footer__brand-text strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.compact-footer__brand-text > span {
  display: block;
  margin-top: 5px;
  color: #e8ecf2;
  width: 180px;
  font-size: 8px;
  font-weight: 500;
  line-height: 9px;
  letter-spacing: .015em;
  white-space: nowrap;
  transform: scaleX(1.12);
  transform-origin: left center;
}

.compact-footer__column,
.compact-footer__social { min-width: 0; }

.compact-footer__column h2,
.compact-footer__social h2 {
  margin: 0 0 16px;
  color: #e8ecf2;
  font-size: clamp(11px, 0.98vw, 17px);
  font-weight: 700;
  line-height: 1.1;
}

.site-footer--compact .compact-footer__column a {
  display: block;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #a7b3c4;
  font-size: clamp(11px, 0.98vw, 17px);
  font-weight: 400;
  line-height: 12px;
  text-decoration: none;
  transition: color .18s ease;
}

.site-footer--compact .compact-footer__column a + a { margin-top: 16px; }

.compact-footer__about a { line-height: 13px; }

.compact-footer__column a:hover,
.compact-footer__column a:focus-visible { color: #fff; }

.compact-footer__social-list {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-footer--compact .compact-footer__social-btn {
  display: grid;
  width: 24px;
  height: 22px;
  min-width: 24px;
  min-height: 22px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: #033260;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.compact-footer__social-btn:hover,
.compact-footer__social-btn:focus-visible {
  color: #fff;
  background: #074984;
  transform: translateY(-1px);
}

.compact-footer__social-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.compact-footer__social-btn svg[fill="none"] { fill: none; }

.compact-footer__social-btn span {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.compact-footer__social-btn--youtube svg {
  width: 11px;
  height: 11px;
}

.compact-footer__ruc,
.compact-footer__copyright {
  margin: 0;
  color: #a7b3c4;
  font-size: clamp(11px, 0.98vw, 17px);
  font-weight: 400;
  line-height: 1.25;
}

.compact-footer__ruc { margin-top: 16px; }

.compact-footer__copyright {
  margin-top: 16px;
  white-space: normal;
}

@media (max-width: 760px) {
  .site-footer--compact {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .compact-footer__inner {
    padding: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  .compact-footer__brand,
  .compact-footer__social { grid-column: 1 / -1; }

  .compact-footer__brand-text strong { font-size: 26px; }

  .site-footer--compact .compact-footer__legal a[href="/legal/cambios-devoluciones/"] {
    line-height: 22px;
  }
}

@media (max-width: 420px) {
  .compact-footer__inner { grid-template-columns: 1fr; }

  .compact-footer__brand,
  .compact-footer__social { grid-column: 1; }

  .compact-footer__copyright { white-space: normal; }
}

@media (max-width: 1180px) {
  .compact-footer__column h2,
  .compact-footer__social h2,
  .compact-footer__ruc,
  .compact-footer__copyright {
    font-size: 15px;
  }

  .site-footer--compact .compact-footer__column a {
    font-size: 15px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .site-footer--compact .compact-footer__about a[href="#accesos-rapidos"],
  .site-footer--compact .compact-footer__legal a[href="/legal/cambios-devoluciones/"] {
    line-height: 22px;
  }

  .site-footer--compact .compact-footer__brand {
    transform: translateX(-20px);
  }

  .site-footer--compact .compact-footer__social {
    transform: translateX(10px);
  }
}

@media (min-width: 1181px) and (max-width: 1350px) {
  .compact-footer__column h2,
  .compact-footer__social h2,
  .compact-footer__ruc,
  .compact-footer__copyright {
    font-size: 14px;
  }

  .site-footer--compact .compact-footer__column a {
    font-size: 14px;
  }
}

@media (min-width: 1181px) {
  .compact-footer__column { transform: translateX(-30px); }
}
