/* footer */

#footerlink:visited {
  color: black;
}

.social-links img {
  width: 40px;
  margin: 0 10px;
}

.footerbengi {
  margin-top: 25px;
  padding: 10px 0 10px 10px;
  font-family: 'Montserrat', sans-serif !important;
  margin-top: 25px;
  padding-top: 10px;
  padding-bottom: 10px;

}

.low-margin {
  margin-top: 0px;
  margin-bottom: 0px;
}

footer {
  background-color: #343a40;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #adb5bd;
}

.footer-content {
  margin-top: 10px;
  font-size: 0.9rem;
}

footer {
  font-family: 'Montserrat', sans-serif;
  background-color: #000000;
  ;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #004ba0;
}

.container {
  animation: slideUp 1s ease-out;
}

.social-icons {
  margin-bottom: 0px;
  /* Espacio entre los íconos y el contenido de texto */

}

.social-icons a {
  color: #fff;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ddd;
}

.social-icons img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  /* Hace que las imágenes sean redondas */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Añade una sombra sutil */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transición suave para efectos */
  filter: grayscale(100%);
  transition: filter 1s;
}

.social-icons img:hover {
  transform: scale(1.1);
  /* Aumenta ligeramente el tamaño al pasar el ratón */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  /* Aumenta la sombra al pasar el ratón */
  filter: grayscale(0%);
  transition: filter 1s;
}

/* footer */

/* CLASES COM */

.hidden {
  display: none !important;
}

.blanco {
  color: white !important;
}

/* ===== General ===== */
header {
  border-bottom: 1px solid #ccc;
}

.product-box {
  border: 1px solid #000;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  background-color: #fff;
}

.custom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: black;
  border: none;
  z-index: 2;
}

.carousel-control-prev.custom-nav {
  left: -35px;
}

.carousel-control-next.custom-nav {
  right: -35px;
}

/* ===== Navbar (PC ≥992px) ===== */
@media (min-width: 992px) {
  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #000 !important;
    padding: 0.5rem 1rem !important;
  }

  .navbar-brand {
    display: flex !important;
    align-items: center !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Futura BK BT', sans-serif !important;
    font-style: italic !important;
    margin-right: 2rem !important;
  }

  .navbar-brand img {
    max-height: 60px !important;
    margin-right: 10px !important;
  }

  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin-right: auto !important;
  }

  .navbar-nav .nav-item {
    margin: 0 0.5rem !important;
  }

  .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
  }

  .navbar-nav .nav-link:hover {
    color: #dc3545 !important;
    /* COLOR ROJO ESTANDAR */
  }

  form[role="search"] {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;

  }

  form[role="search"] input {
    max-width: 200px !important;

  }

  .navbar .btn.btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
  }

  .navbar .btn.btn-outline-danger:hover {
    background: #0e0707 !important;
  }
}

/* ===== Tablets y móviles (≤768px) ===== */
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 55px !important;
    height: auto !important;
  }

  .navbar-brand span,
  .navbar-brand h1,
  .navbar-brand h2 {
    font-size: 28px !important;
    white-space: nowrap !important;
    font-family: 'Futura BK BT', sans-serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    margin-left: 5px;
  }

  .navbar-toggler {
    padding: 4px 6px !important;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
  }
}

/* ===== Extra: solo móviles pequeños (≤576px) ===== */
@media (max-width: 576px) {
  .custom-nav {
    left: -20px !important;
    right: -20px !important;
  }

  .HIDEN {
    visibility: hidden !important;
  }

  .imagen-index,
  .img-viewport {
    height: 50vh;
  }
}

.navbar-dark .dropdown-menu {
  background-color: #111 !important;
  color: #fff !important;
}

.navbar-dark .dropdown-menu .dropdown-item {
  color: #fff !important;
}

.navbar-dark .dropdown-menu .dropdown-item:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
}

/* --- SOLO afecta al dropdown de Productos --- */
.nav-item.dropdown .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0.5rem !important;
  z-index: 2000 !important;
  border-radius: 0.5rem !important;
  border: 1px solid #ddd !important;
}

/* Opcional: estilo coherente con navbar dark */
.navbar-dark .dropdown-menu {
  background-color: #111 !important;
  color: #fff !important;
}

.navbar-dark .dropdown-menu .dropdown-item {
  color: #fff !important;
}

.navbar-dark .dropdown-menu .dropdown-item:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
}

/* 🔹 Contenedor del buscador */
.search-container {
  position: relative;
  /* NECESARIO para posicionar la caja justo debajo */
  width: 100%;
}

/* 🔹 Caja de sugerencias debajo del cuadro */
.suggestion-box {
  position: absolute;
  top: calc(100% + 4px);
  /* 4px de espacio debajo del input */
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  display: none;
  max-height: 250px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 15px;
}

.suggestion-item:hover {
  background-color: #f3f3f3;
}

/* 🔹 Optimización para móvil */
@media (max-width: 576px) {
  .suggestion-box {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 70px;
    /* Mantén esto si el input está cerca del top en móvil */
    width: auto;
    max-height: 60vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

.negro {
  color: black !important;
}

/* 🔹 Ajustes visuales del buscador solo en móvil */
@media (max-width: 992px) {
  .navbar .form-control {
    width: 100%;
  }

  form[role="search"] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 10px 0;
  }

  .navbar .btn {
    white-space: nowrap;
  }
}

.logo-header {
  height: 40px;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  position: relative;
  padding: 0.25rem 0.5rem;
}

.icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Offcanvas / filtros: estilo global más elegante */
.offcanvas {
  border-radius: 12px;
  /* esquinas suaves */
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  /* sombra más profunda */
  border: 0;
  /* quitar borde por defecto */
}

.offcanvas .offcanvas-header {
  padding: 1rem 1.25rem;
  border-bottom: 0;
  /* mantener limpio */
}

.offcanvas .offcanvas-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #222;
}

.offcanvas .offcanvas-body {
  padding: 1rem 1.25rem 2rem 1.25rem;
}

/* Lista de filtros dentro del offcanvas */
.offcanvas .lista-de-filtros {
  padding: 0.25rem 0;
}

.offcanvas .lista-de-filtros .filter-item {
  display: block;
  width: 100%;
  background: transparent;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
  color: #222;
}

.offcanvas .lista-de-filtros .filter-item:hover {
  background: #f6f7f8;
  transform: translateY(-2px);
}

.offcanvas .lista-de-filtros .filter-item.active {
  background: #dc3545;
  color: #fff;
  box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Asegurar que el botón de filtros móvil quede por debajo del backdrop del offcanvas
         Bootstrap usa z-index 1045 para .offcanvas y 1040 para el backdrop; bajamos el z-index
         del botón para que el backdrop lo cubra visualmente cuando el offcanvas esté abierto. */
.btn-filtros-movil {
  position: relative;
  z-index: 1030 !important;
}

/* Nota: dejamos control de visibilidad del botón a reglas de la página y al JS.
        Evitamos selectores globales que escondan elementos por proximidad en el DOM. */

/* Pequeños ajustes tipográficos globales para el offcanvas */
.offcanvas .filter-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
}

@media (max-width: 400px) {
  .logo-header {
    width: 275px;
  }
}

.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  color: #333333;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

.suggestion-text-clamp {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}