/* CSS is now loaded in parallel via head-defaults.js */

/* ── Certification marquee ── */
.cert-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0;
}

/* Fade edges */
.cert-marquee-wrapper::before,
.cert-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.cert-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.cert-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.cert-marquee-track {
  display: flex;
  width: max-content;
  animation: certScroll 35s linear infinite;
}

.cert-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes certScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cert-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 160px;
  height: 110px;
  margin: 0 18px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cert-marquee-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}

.cert-marquee-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}

.cert-marquee-item:hover img {
  filter: grayscale(0%);
}

/* ── Clients marquee ── */
.clients-marquee-section {
  padding: 36px 0 28px;
  background: #fff;
  text-align: center;
}

.clients-marquee-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #bbb;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.clients-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.clients-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.clients-marquee-track.ready {
  animation: clientsScroll 150s linear infinite;
}

.clients-marquee-track.ready:hover {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--clients-half, 50%)));
  }
}

.clients-marquee-img {
  height: 90px;
  width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0 28px;
  border-right: 1px solid #ddd;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.25s ease;
}

.clients-marquee-img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Partner & membership strip */
.cert-partners-strip {
  margin-top: 40px;
  padding: 32px 24px;
  background: #f7f8fa;
  border-top: 1px solid #e8e8e8;
  border-radius: 12px;
  text-align: center;
}

.cert-partners-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.cert-partners-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cert-partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease;
}

.cert-partner-badge:hover {
  transform: translateY(-5px);
}

.cert-partner-badge img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  transition: filter 0.25s ease;
}

.cert-partner-badge:hover img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.cert-partner-badge span {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .cert-partners-row {
    gap: 28px;
  }
  .cert-partner-badge img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .cert-marquee-wrapper::before,
  .cert-marquee-wrapper::after {
    width: 48px;
  }
  .cert-marquee-item {
    width: 120px;
    height: 84px;
    margin: 0 10px;
  }
}

/* ── Casos de Éxito ── */
.casos-section {
  background: #080c14;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.casos-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.casos-section .container {
  position: relative;
  z-index: 1;
}

/* Heading */
.casos-heading {
  color: #fff !important;
  font-size: 2rem;
  line-height: 1.35;
}

.casos-age {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Filter pills */
.casos-filters .site-button-secondry {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border-radius: 100px !important;
  padding: 8px 22px !important;
  font-size: 12px !important;
  letter-spacing: 0.8px;
  transition: all 0.25s ease !important;
}

.casos-filters .btn.active .site-button-secondry,
.casos-filters .site-button-secondry:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: #6366f1 !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.3) !important;
}

/* Card shell */
.casos-section .dlab-box.dlab-gallery-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f1525;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.casos-section .dlab-box.dlab-gallery-box:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18);
}

/* Card image */
.casos-section .dlab-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.casos-section .dlab-box.dlab-gallery-box:hover .dlab-media img {
  transform: scale(1.06);
}

/* "Ver caso" button inside overlay */
.casos-section .ico-casos {
  background: rgba(99, 102, 241, 0.85);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.casos-section .ico-casos:hover {
  background: rgba(99, 102, 241, 1);
}

/* Dark info box */
.casos-section .dez-info,
.casos-section .p-a30.bg-white {
  background: #0f1525 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px !important;
}

.casos-section .dez-title,
.casos-section .card-container h5 {
  color: #f0f4ff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.casos-section .oracion {
  color: rgba(180, 190, 220, 0.65) !important;
  font-size: 0.82rem;
  line-height: 1.55;
  text-transform: none;
}

/* Category badge via CSS — no HTML changes needed */
.casos-section .card-container .dlab-box {
  position: relative;
}

.casos-section .card-container.gobierno .dlab-box::before {
  content: "SERVICIO PÚBLICO";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  text-transform: uppercase;
}

.casos-section .card-container.privado .dlab-box::before {
  content: "INICIATIVA PRIVADA";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
  text-transform: uppercase;
}

/* Bottom quote band */
.casos-quote {
  background: linear-gradient(135deg, #080c14 0%, #0f0a24 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.25);
  padding: 60px 0;
}

.casos-quote h3 {
  color: #e2e8f0 !important;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-top: 20px;
}

.casos-quote h3::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
