/* Marcas y clientes: carruseles de emblemas del diseño de Photoshop. */
#clientes { padding-top: 40px; }
#clientes .intro { margin-bottom: 60px; }
#clientes .brand-ribbons {
  width: 100vw;
  max-width: none;
  margin: 0 0 26px 50%;
  transform: translateX(-50%);
  overflow: hidden;
}
#clientes .brand-group { width: 100%; overflow: hidden; }
#clientes .brand-group + .brand-group { margin-top: -3px; }
#clientes .brand-row-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#clientes .brand-ribbon,
#clientes .brand-ribbon-bottom {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 55px;
  margin: 0;
  padding: 0 0 0 130px;
}
#clientes .brand-ribbon-bottom { padding-left: 28px; }
#clientes .brand-badge {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 150px;
  width: 150px;
  height: 80px;
  isolation: isolate;
}
#clientes .brand-badge::before,
#clientes .brand-badge::after {
  position: absolute;
  content: '';
  clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0 50%);
}
#clientes .brand-badge::before {
  inset: 0;
  background: linear-gradient(140deg, #313b47, #12171d 50%, #3a4654);
}
#clientes .brand-badge::after {
  inset: 1px;
  background: linear-gradient(145deg, #0b0d0f, #000 80%);
}
#clientes .brand-ribbon .brand-badge img,
#clientes .brand-ribbon-top .brand-badge img,
#clientes .brand-ribbon-bottom .brand-badge img {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  width: 72%;
  height: 44px;
  max-height: 44px;
  aspect-ratio: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s, opacity .2s;
}
#clientes .brand-badge:hover img { filter: none; opacity: 1; }
#clientes .brand-ribbons + .client-section-heading { display: block; }

@media (min-width: 851px) {
  #clientes .client-section-heading,
  #clientes .ref-stories,
  #clientes .model2-video-library,
  #clientes .ref-featured { width: min(100%, 85vw, 1260px); }
  #clientes .ref-stories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }
  #clientes .ref-story { flex: auto; min-width: 0; }
  #clientes .ref-featured-card {
    grid-template-rows: clamp(300px, 30vw, 400px);
    height: clamp(300px, 30vw, 400px);
  }
  #clientes .ref-featured-card > img {
    height: clamp(300px, 30vw, 400px);
    max-height: clamp(300px, 30vw, 400px);
  }
  #clientes .ref-featured-card > div { padding-top: clamp(30px, 3vw, 48px); }
  #clientes { padding-bottom: 35px; }
  body:has(#clientes:not([hidden])) .site-footer { padding-top: 8px; padding-bottom: 14px; }
  body:has(#clientes:not([hidden])) .footer-identity { padding: 22px 26px; gap: 22px; }
  body:has(#clientes:not([hidden])) .footer-identity .brand { width: 155px; height: 57px; }
  body:has(#clientes:not([hidden])) .footer-identity h2 { font-size: 19px; margin: 6px 0; }
  body:has(#clientes:not([hidden])) .footer-identity p:last-child { font-size: 11px; }
  body:has(#clientes:not([hidden])) .footer-identity > .button { font-size: 11px; padding: 9px 12px; }
  body:has(#clientes:not([hidden])) .footer-nav { padding: 18px 26px 12px; }
  body:has(#clientes:not([hidden])) .footer-tabs { margin-bottom: 16px; }
  body:has(#clientes:not([hidden])) .footer-tabs button { padding: 8px 12px; font-size: 11px; }
  body:has(#clientes:not([hidden])) .footer-links { min-height: 104px; }
  body:has(#clientes:not([hidden])) .footer-links h3 { margin-bottom: 7px; }
  body:has(#clientes:not([hidden])) .footer-links a { min-height: 25px; padding: 3px 0; font-size: 11px; }
  body:has(#clientes:not([hidden])) .footer-links p { font-size: 10px; margin: 4px 0; }
  body:has(#clientes:not([hidden])) .footer-end { padding: 10px 26px; }
}

@media (max-width: 800px) {
  #clientes .intro { margin-bottom: 38px; }
  #clientes .brand-ribbon,
  #clientes .brand-ribbon-bottom { gap: 20px; padding-left: 35px; }
  #clientes .brand-ribbon-bottom { padding-left: 0; }
  #clientes .brand-badge { flex-basis: 120px; width: 120px; height: 70px; }
  #clientes .brand-ribbon .brand-badge img { height: 38px; max-height: 38px; }
}

/* Keep the five services evenly spaced across the tablet breakpoint. */
@media (min-width: 601px) and (max-width: 760px) {
  #servicios .ref-service-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 25px 8px;
  }
  #servicios .ref-service-choice,
  #servicios .ref-service-choice:nth-child(4),
  #servicios .ref-service-choice:nth-child(5) {
    grid-column: span 2;
    margin: 0;
  }
  #servicios .ref-service-choice:nth-child(4) { grid-column: 2 / 4; }
  #servicios .ref-service-choice:nth-child(5) { grid-column: 4 / 6; }
}

/* Camera benefit cards spacing matches the supplied reference. */
#servicio-camaras .service-benefits {
  margin: 2px 1.5% 40px;
}
#servicio-camaras .service-benefits article {
  padding: 24px 30px;
}

/* Camera scope typography and blue focus follow the supplied reference. */
#servicio-camaras .service-scope {
  width: 100%;
  gap: 5.5vw;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin: 0 0 30px;
  padding: 42px 0 48px;
  border-top: 1px solid #26303c;
  border-bottom: 1px solid #26303c;
}
#servicio-camaras .service-scope h2 {
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
  margin: 0 0 10px;
}
#servicio-camaras .service-scope p,
#servicio-camaras .service-scope li {
  font-size: 13px;
  line-height: 1.6;
}
#servicio-camaras .service-scope p { margin: 0; }
#servicio-camaras .service-scope li { padding: 8px 0 8px 8px; }
@media (max-width: 760px) {
  #servicio-camaras .service-scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
#servicio-camaras:before {
  animation: camera-blue-focus 5s ease-in-out infinite;
}
@keyframes camera-blue-focus {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #servicio-camaras:before { animation: none; }
}
