/**
 * BANNER PRINCIPAL - CSS NUEVO
 * Solución limpia y simple
 * Sin conflictos de viewport width
 */

/* ====================================
   CONTENEDOR PRINCIPAL
==================================== */
.banner-principal {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================================
   CONTENEDOR DE SLIDES
==================================== */
.banner-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* [B12.1] Placeholder neutro para slides sin imagen oficial */
.banner-slide-placeholder {
  width: 100%;
  height: 100%;
}

.banner-slide-placeholder-1 {
  background: linear-gradient(135deg, #e8f3f1 0%, #c8e0db 100%);
}

.banner-slide-placeholder-2 {
  background: linear-gradient(135deg, #d8ebe7 0%, #b0d2c9 100%);
}

/* ====================================
   CONTROLES DE NAVEGACIÓN
==================================== */
.banner-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.28);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.banner-nav-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

/* ====================================
   INDICADORES (DOTS)
==================================== */
.banner-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.banner-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.banner-dot.active {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

/* ====================================
   RESPONSIVE DESIGN
==================================== */

/* Tablets (1024px y menos) */
@media (max-width: 1024px) {
  .banner-principal {
    height: 400px;
  }

  .banner-nav-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .banner-prev {
    left: 15px;
  }

  .banner-next {
    right: 15px;
  }
}

/* Tablets pequeños (768px y menos) */
@media (max-width: 768px) {
  .banner-principal {
    height: 300px;
  }

  .banner-nav-button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .banner-prev {
    left: 10px;
  }

  .banner-next {
    right: 10px;
  }

  .banner-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .banner-dot {
    width: 10px;
    height: 10px;
  }
}

/* Móviles (480px y menos) */
@media (max-width: 480px) {
  .banner-principal {
    height: 220px;
  }

  .banner-nav-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .banner-prev {
    left: 5px;
  }

  .banner-next {
    right: 5px;
  }

  .banner-indicators {
    bottom: 10px;
    gap: 6px;
  }

  .banner-dot {
    width: 8px;
    height: 8px;
  }
}
