/* ===== CARRUSEL DE BANCOS BOLIVIANOS - VERSIÓN COLOR ===== */

.bank-carousel-section {
  max-width: 500px;
  margin: 10px auto 30px;
  padding: 0 16px;
  text-align: center;
}

.bank-carousel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.bank-carousel-title::before,
.bank-carousel-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted, #64748b), transparent);
}

.bank-carousel-title::before {
  left: -40px;
}

.bank-carousel-title::after {
  right: -40px;
}

/* Contenedor principal del carrusel */
.bank-carousel {
  background: white;
  border-radius: 20px;
  padding: 20px 0;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

/* Efectos de desvanecimiento en los bordes */
.bank-carousel::before,
.bank-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.bank-carousel::before {
  left: 0;
  background: linear-gradient(90deg, white, transparent);
}

.bank-carousel::after {
  right: 0;
  background: linear-gradient(90deg, transparent, white);
}

/* Track del carrusel */
.carousel-track-container {
  overflow: hidden;
  margin: 0 20px;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: scrollBanks 25s linear infinite;
  width: fit-content;
}

/* Pausar al hacer hover */
.bank-carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Items del carrusel */
.bank-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border-radius: 16px;
}

.bank-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(145deg, 
    rgba(230, 57, 70, 0.08), 
    rgba(255, 209, 102, 0.12), 
    rgba(6, 214, 160, 0.08)
  );
}

/* Contenedor del logo */
.bank-logo {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 12px;
}

/* Efecto hover en el logo */
.bank-item:hover .bank-logo {
  transform: scale(1.15);
  box-shadow: 0 15px 30px -8px rgba(230, 57, 70, 0.3);
  border-color: var(--yellow, #FFD166);
  background: linear-gradient(145deg, white, #fff9f0);
}

/* LOGOS A COLOR - SIN FILTROS */
.bank-logo img {
  max-width: 45px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  /* ELIMINADO: filter: grayscale(100%); */
  /* ELIMINADO: opacity: 0.7; */
}

/* Efecto hover en la imagen */
.bank-item:hover .bank-logo img {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Nombre del banco */
.bank-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.bank-item:hover .bank-name {
  color: var(--red, #E63946);
  font-weight: 700;
  transform: scale(1.05);
}

/* Animación infinita */
@keyframes scrollBanks {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* ===== VERSIÓN MÓVIL ===== */
@media (max-width: 768px) {
  .bank-carousel-title {
    font-size: 0.8rem;
  }
  
  .bank-carousel-title::before,
  .bank-carousel-title::after {
    width: 20px;
  }
  
  .bank-carousel-title::before {
    left: -30px;
  }
  
  .bank-carousel-title::after {
    right: -30px;
  }
  
  .bank-carousel {
    padding: 15px 0;
  }
  
  .bank-logo {
    width: 55px;
    height: 55px;
    padding: 8px;
  }
  
  .bank-logo img {
    max-width: 35px;
    max-height: 35px;
  }
  
  .bank-name {
    font-size: 0.65rem;
  }
  
  .carousel-track {
    gap: 25px;
  }
}

/* ===== VERSIÓN PARA PANTALLAS MUY PEQUEÑAS ===== */
@media (max-width: 380px) {
  .bank-logo {
    width: 45px;
    height: 45px;
  }
  
  .bank-logo img {
    max-width: 28px;
    max-height: 28px;
  }
  
  .bank-name {
    font-size: 0.55rem;
  }
  
  .carousel-track {
    gap: 15px;
  }
}

/* ===== OPCIONAL: EFECTO TRICOLOR EN HOVER ===== */
.bank-carousel--tricolor .bank-item:hover .bank-logo {
  border-color: transparent;
  background: linear-gradient(145deg, var(--red, #E63946), var(--yellow, #FFD166), var(--green, #06D6A0));
  padding: 2px;
}

.bank-carousel--tricolor .bank-item:hover .bank-logo img {
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== OPCIONAL: VERSIÓN CON SOMBRA COLORIDA ===== */
.bank-item:hover .bank-logo {
  box-shadow: 
    0 15px 30px -8px rgba(230, 57, 70, 0.3),
    0 0 0 2px rgba(255, 209, 102, 0.3);
}

/* ===== OPCIONAL: PARA DARLE MÁS VIDA ===== */
@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.bank-carousel:hover .bank-item {
  animation: subtlePulse 2s ease infinite;
}

.bank-carousel:hover .bank-item:nth-child(odd) {
  animation-delay: 0.2s;
}
