/* ==========================================
   CLIENTES POR PAIS - COPERA
   ========================================== */

.clientes-pais {
  background: #f9fafb;
  padding: 4rem 2rem;
}

.clientes-pais__container {
  max-width: 1200px;
  margin: 0 auto;
}

.clientes-pais__header {
  text-align: center;
  margin-bottom: 3rem;
}

.clientes-pais__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #192335;
  margin-bottom: 0.5rem;
}

.clientes-pais__subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Seccion por pais */
.clientes-pais__country {
  margin-bottom: 2.5rem;
}

.clientes-pais__country-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.clientes-pais__flag {
  font-size: 1.5rem;
}

.clientes-pais__country-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #192335;
}

.clientes-pais__count {
  color: #00a551;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Carrusel de logos */
.clientes-pais__carousel {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.clientes-pais__track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-logos 40s linear infinite;
  width: max-content;
}

.clientes-pais__logo {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  padding: 0.5rem;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.clientes-pais__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.clientes-pais__logo:hover {
  border-color: #00a551;
  box-shadow: 0 8px 24px rgba(0, 165, 81, 0.15);
  transform: scale(1.03);
}

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

/* Paises pequenos (Colombia, Ecuador) */
.clientes-pais__small-countries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.clientes-pais__single-logo {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  padding: 0.5rem;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.clientes-pais__single-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.clientes-pais__single-logo:hover {
  border-color: #00a551;
  box-shadow: 0 8px 24px rgba(0, 165, 81, 0.15);
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  .clientes-pais__small-countries {
    grid-template-columns: 1fr;
  }

  .clientes-pais__logo {
    width: 180px;
    height: 180px;
  }

  .clientes-pais__single-logo {
    width: 180px;
    height: 180px;
  }

  .clientes-pais {
    padding: 3rem 1rem;
  }
}

/* ==========================================
   LIGHTBOX PARA LOGOS
   ========================================== */
.logo-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  animation: lightboxFadeIn 0.25s ease;
}

.logo-lightbox.active {
  display: flex;
}

.logo-lightbox__content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: lightboxZoomIn 0.3s ease;
}

.logo-lightbox__content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.logo-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: #192335;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-lightbox__close:hover {
  background: #00a551;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}