/* ───────────  ANIMACIONES PERSONALIZADAS  ─────────── */
.animate-fade {
  animation: fadeIn 1s ease-in-out;
}
.animate-slide {
  animation: slideIn 1s ease-in-out;
}
.animate-bounce {
  animation: bounceIn 1s ease-in-out;
}
.animate-zoom {
  animation: zoomIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ───────────  ESTILOS GENERALES  ─────────── */
body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.catalog-title {
  font-size: 2.5rem;
  color: #333;
}
.logo {
  width: 230px;
  height: auto;
}

/* ───────────  MINIATURAS DEL CATÁLOGO  ─────────── */
/* Ajuste 1:1 en TODAS las pantallas */
.card-img-top {
  width: 100%;
  aspect-ratio: 1/1; /* cuadrado */
  object-fit: cover; /* recorte proporcional */
  display: block;
}

/* Fallback para navegadores sin aspect-ratio (opcional) */
@supports not (aspect-ratio: 1 / 1) {
  .card-img-top {
    height: 100vw; /* ancho de la ventana */
    max-height: 320px; /* no exceder 320 px */
  }
}

.card-text {
  font-weight: 500;
  color: #555;
}

/* ───────────  CARRUSEL DEL MODAL  ─────────── */
.carousel-item img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  margin: 0 auto; /* centrado horizontal */
}

/* ───────────  MAPA RESPONSIVO EN FOOTER  ─────────── */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───────────  FOOTER  ─────────── */
footer p {
  margin-bottom: 0.35rem;
}
footer .fw-semibold {
  font-weight: 600;
}

.banner-container {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.banner-wrapper {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.catalog-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5.5rem;
  font-weight: bold;
  text-shadow: 4px 4px 7px rgba(0, 0, 0, 0.678);
  margin: 0;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .catalog-title-overlay {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .catalog-title-overlay {
    font-size: 1.8rem;
  }
}

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

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que cubra todo sin deformarse */
  display: block;
}

.catalog-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  z-index: 2;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  text-align: center;
  text-decoration: none;
}

.whatsapp-float img {
  background: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-label {
  display: block;
  background: #25d366;
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Colores filtros */
.filter-btn.btn-outline-primary {
  background: #2c509f; /* azul base */
  color: #fff;
  border-color: #2c509f;
}

.filter-btn.btn-outline-primary:hover,
.filter-btn.btn-outline-primary.active,
.filter-btn.btn-outline-primary:focus {
  background: #f18318; /* naranja hover/activo */
  border-color: #f18318;
  color: #fff;
}

/* Tamaño máximo y centrado responsivo del modal */
.modal-dialog {
  max-width: 90vw; /* nunca más ancho que 90 % del viewport */
  margin: 1.5rem auto;
}

/* Imagen dentro del modal */
.modal-body img {
  max-width: 100%;
  max-height: 75vh; /* 75 % de la altura visible */
  object-fit: contain; /* sin deformar */
}

/* Opcional: quita 'modal-lg' en el HTML si deseas aún menos ancho */

@media (max-width: 576px) {
  .filter-btn {
    flex: 1 1 100%;
  }
}
