/* === GLOBAL === */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif !important;
  color: #333;
  background-color: #5B7B9D;
  background-image: url('/static/img/bg_main_form.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 248, 244, 0.88);
  z-index: -1;
}


.contenedor-principal {
  flex: 1;
}

footer {
  background-color: #5B7B9D;
  text-align: center;
  padding: 10px;
}













/* === NAVBAR === */
.navbar {
  max-height: auto; 
  background-color: #5B7B9D;
  font-family: 'Playfair Display', serif !important;
  font-size: 18px;
}

.navbar-brand {
  font-size: 22px !important;
  font-weight: bold;
}

.navbar .navbar-brand span {
  font-size: 28px;
  color: #4b3f38;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: #3b2f2f !important;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar .nav-link i.bi-person-circle {
  transition: color 0.3s ease;
}

.navbar .nav-link:hover i.bi-person-circle {
  color: #b96d53;
}













/* === DROPDOWNS === */

.navbar .dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu {
  background-color: #fdf3d0;
  /* tono de fondo dorado claro */
  backdrop-filter: blur(6px);
  /* efecto de vidrio esmerilado */
  border: 1.5px solid #d4af37;
  /* borde dorado */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  display: block;
  visibility: hidden;
  min-width: 220px;
}


.navbar .dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu .dropdown-item {
  color: #6c4f1e !important;
  /* tono café/dorado */
  padding: 10px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #eed18c;
  color: #4b3f1d !important;
  transform: translateX(2px);
}

#mascotaTrigger {
  transition: transform 0.3s ease;
}


#mascotaTrigger:hover {
  transform: scale(1.05);
}

/* Tamaño por defecto (escritorio) */
#mascotaTrigger,
.mascota-icon {
  width: 165px;
  height: 165px;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}






/* === SEARCH === */
.search-bar {
  max-width: 500px;
  width: 100%;
}

.search-bar .form-control {
  border-radius: 0 8px 8px 0;
  border: 1px solid #d6c9b9;
  border-left: none;
}

.search-bar .input-group-text.search-icon {
  background-color: #fff;
  border: 1px solid #d6c9b9;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #8a7763;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.search-bar .input-group-text.search-icon:hover {
  background-color: #d4c6b6;
  color: #4b3f38;
}

.search-bar .btn-search {
  background-color: #C97D60;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 500;
  margin-left: 8px;
  transition: background-color 0.3s ease;
}


.search-bar .btn-search:hover {
  background-color: #b96d53;
}


/* BOTONES */
.btn-login {
  background-color: #5B7B9D !important;
  color: #000 !important;
  border: none;
}

.btn-login:hover {
  background-color: #d6c9b9 !important;
}

.btn-cosmetic {
  background-color: #E3DAC9;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 5px 15px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-cosmetic:hover {
  background-color: #d4c6b6;
  color: #000;
}

.btn-add-highlight {
  background-color: #C97D60;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-add-highlight:hover {
  background-color: #b76e55;
  transform: scale(1.03);
  color: #fff;
}

.btn-secondary {
  background-color: #D2B1A3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background-color: #BC9D91;
  color: #fff;
  transform: scale(1.03);
}

.btn-logout {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 6px 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.btn-logout:hover {
  background-color: #C97D60;
  color: #fff;
  border-color: #C97D60;
}

/* PAGINACIÓN */
.page-link {
  background-color: #E3DAC9;
  color: #000;
  border: 1px solid #c4b4a5;
}

.page-item.active .page-link {
  background-color: #d4c6b6;
  font-weight: bold;
  border-color: #b8a28f;
}

.page-item.disabled .page-link {
  background-color: #E3DAC9;
  color: #999;
  border-color: #c4b4a5;
  opacity: 0.6;
  cursor: not-allowed;
}

.page-link:hover {
  background-color: #d4c6b6;
  color: #000;
}

/* ÍCONOS */
i.fas,
i.fa-solid {
  color: #c4b4a5 !important;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

i.fas:hover,
i.fa-solid:hover {
  color: #a49284 !important;
}

/* FORMULARIOS */
label {
  font-weight: 600;
  color: #6c4f3d;
  font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
  border-radius: 8px;
  border: 1px solid #d6c9b9;
  background-color: #fff;
  font-size: 1rem;
  padding: 8px 12px;
}

.transition {
  transition: all 0.3s ease;
}


.list-group-item.default-method {
  border-left: 4px solid #198754;
}



#tab-content-insumos img,
#tab-content-productos img,
#tab-content-ingredientes img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Ancho del modal en escritorio */
.modal-product-detail .modal-dialog {
  max-width: 75vw !important;
  width: 100%;
  margin: auto;
}


.modal-content {
  border-radius: 1rem;
  /* Bordes redondeados suaves */
  overflow: hidden;
  /* Importante: asegura que el contenido no sobresalga */
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  /* No permitir que el modal crezca más del 90% de la altura de la ventana */
}

.modal-body {
  overflow-y: auto;
}


.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.carousel-row::-webkit-scrollbar {
  height: 6px;
}

.carousel-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}


/* Botones laterales */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-10%);
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s;
}

.carousel-nav:hover {
  background-color: #fdf3d0;
}

.carousel-nav.left {
  left: -1.5rem;
}

.carousel-nav.right {
  right: -1.5rem;
}


.product-gallery-row {
  width: 100%;
}


.product-image-wrapper {
  height: 230px; /* o el alto que quieras fijo */
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 mantiene recorte centrado sin deformar */
  display: block;
}


.product-image-2 {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}





.card.h-100 {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.card-body p {
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.card-footer {
  background: #fff;
  border-top: none;
}

.flex-nowrap {
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.chat-icon-animate {
  animation: bounce 1s ease-in-out infinite;
  animation-delay: 3s;
}

.chat-icon-animate.paused {
  animation: none;
}

#chatMessages::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  margin-bottom: 5px;
}


.bg-orange {
  background-color: #fd7e14 !important;
  color: #fff !important;
}


.estado-ticket option[value="abierto"] {
  background-color: #fd7e14;
  /* naranja bootstrap */
  color: white;
}


.estado-ticket option[value="en_proceso"] {
  background-color: #ffc107;
  /* amarillo */
  color: black;
}


.estado-ticket option[value="cerrado"] {
  background-color: #198754;
  /* verde bootstrap */
  color: white;
}


.estado-ticket.bg-orange {
  background-color: #fd7e14 !important;
  color: white !important;
}


#processingModal {
  z-index: 1080 !important;
  /* por encima de otros modales de Bootstrap */
}


.btn-cosmetic.btn-sm.add-to-cart-btn {
  background-color: #D4AF37;
  /* Dorado tipo oro */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cosmetic.btn-sm.add-to-cart-btn:hover {
  background-color: #C89B2D;
  /* Un poco más oscuro al pasar el mouse */
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-cosmetic.btn-sm.add-to-cart-btn:active {
  background-color: #B78E28;
  /* Más oscuro al presionar */
  transform: scale(0.97);
}


.btn-cosmetic.btn-sm.add-to-cart-btn:disabled {
  background-color: #E6D28A;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* Botón "Ver detalles" */
.view-detail-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #c8a63b;
  background-color: white;
  color: #c8a63b;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  min-height: 36px;
}

.view-detail-btn:hover {
  background-color: #fef5dc;
  color: #a1781d;
  border-color: #a1781d;
  transform: scale(1.02);
}

.btn-gold-light {
  background-color: #f3d066;
  /* Dorado más suave */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-gold-light:hover:not(:disabled) {
  background-color: #ddb84f;
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-gold-light:active:not(:disabled) {
  background-color: #c8a63b;
  transform: scale(0.97);
}

.btn-gold-light:disabled {
  background-color: #f0d685;
  color: white;
  opacity: 0.9;
  cursor: not-allowed;
  box-shadow: none;
}


.btn-outline-gold {
  color: #b8860b;
  /* tono dorado oscuro para el texto */
  border: 1.5px solid #d4af37;
  background-color: transparent;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: #d4af37;
  /* dorado intenso al hover */
  color: white;
  transform: scale(1.03);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}



.btn-outline-gold {
  color: #b78e28;
  border: 2px solid #b78e28;
  background-color: transparent;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline-gold:hover {
  background-color: #fdf3d0;
  color: #a1781d;
  transform: scale(1.02);
  border-color: #a1781d;
}

.btn-outline-gold:active {
  background-color: #eed18c;
  border-color: #b78e28;
  transform: scale(0.98);
}

.btn-outline-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.custom-cart-wrapper {
  margin-right: 0.5rem;
  /* Más cerca de lo que tenga a la izquierda */
}

.custom-cart-icon {
  font-size: 2.75rem;
  color: white;
  font-weight: bold;
  filter: drop-shadow(0 0 2px #00000040);
}

.gold-badge {
  background-color: #D4AF37 !important;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.4em 0.6em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


.custom-user-icon {
  font-size: 3.2rem;
  color: white;
  font-weight: bold;
  filter: drop-shadow(0 0 2px #00000040);
}

.btn-outline-gold i {
  color: #b78e28;
}

.btn-outline-gold:hover i {
  color: #a1781d;
}

.filter-panel {
  background-color: transparent;
  border-left: 4px solid #d4af37;
  border-right: 4px solid #d4af37;
  backdrop-filter: blur(4px);
}


.form-control.bg-transparent {
  background-color: transparent !important;
  border: 1px solid #d4af37;
  color: #333;
}


/* ✏️ Ocultar placeholder pero mantener funcionalidad de form-floating */
.form-control::placeholder {
  color: transparent !important;
}

.form-floating > label {
  background-color: transparent !important; /* o el mismo que body */
  padding: 0 0.4rem;
  color: #d4af37 !important;
  font-weight: 500;
  height: auto !important;
  line-height: 1.2;
  max-width: fit-content;
}
.form-floating .form-control {
  padding-top: 1.25rem !important;
  padding-bottom: 0.5rem;
}

/* 🟡 Borde dorado elegante */
.border-gold {
  border: 1px solid #d4af37;
}


/* Inputs con texto dorado claro */
.filter-panel input[type="text"],
.filter-panel select {
  background-color: transparent;
  color: #d4af37;
  border: 1.5px solid #d4af37;
  font-weight: 500;
}

.filter-panel input::placeholder {
  color: #e8cf97;
  opacity: 0.8;
}

/* Etiquetas */
.filter-panel label {
  color: #d4af37;
  font-weight: bold;
}

.filter-panel input[type="date"] {
  background-color: transparent;
  color: #d4af37;
  border: 1.5px solid #d4af37;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 12px;
}

/* Placeholder de fechas (algunos navegadores) */
.filter-panel input[type="date"]::placeholder {
  color: #e8cf97;
  opacity: 0.8;
}

/* Estilo del ícono de calendario en WebKit (Chrome) */
.filter-panel input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(70%) sepia(40%) saturate(500%) hue-rotate(10deg);
  cursor: pointer;
}


/* === Estilo dorado para inputs generales de filtros === */
#filter-address {
  background-color: transparent;
  color: #d4af37;
  border: 1.5px solid #d4af37;
  font-weight: 500;
  border-radius: 12px; /* ✅ más suave y simétrico */
  padding: 8px 2.5rem 8px 2.2rem; /* 🟡 espacio izquierdo para el ícono, derecho para cierre */
  box-shadow: none;
  width: 100%;
}

/* Placeholder con estilo dorado tenue */
#filter-address::placeholder {
  color: #e8cf97;
  opacity: 0.8;
}

/* Efecto al enfocar */
#filter-address:focus {
  border-color: #e0c46b;
  box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25);
  outline: none;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  transform: scale(0.85) translateY(-1.5rem) translateX(0.15rem);
  opacity: 1;
  background-color: #5B7B9D; /* o el fondo base de tu sitio */
  padding: 0 0.4rem;
  z-index: 1;
}


/* Tabla de productos con fondo semitransparente */
.table-productos tr {
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #d4af37;
}

.table-productos td {
  font-size: 0.95rem;
}

/* Texto fuerte en dorado */
.text-gold {
  color: #d4af37 !important;
}

/* Badge dorado para precios */
.badge-gold {
  background-color: #d4af37;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 5px 10px;
}

/* Badge con borde dorado para proveedores */
.badge-outline-gold {
  background-color: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 5px 10px;
}

/* Encabezado dorado para tabla */
.table-gold th {
  background-color: rgba(212, 175, 55, 0.12);
  /* fondo dorado suave */
  color: #d4af37;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}


.modal-content.bg-themed {
  position: relative;
  overflow: hidden;
  background: none;
  /* quitamos imagen directa */
  color: #4b3f1d;
  border-radius: 1rem;
  border: 1.5px solid #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}



.modal-content.bg-themed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/static/img/bg_main_form.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: rgba(253, 248, 244, 0.88);
  /* aclarado */
  backdrop-filter: blur(6px);
  z-index: 0;
}

.modal-content.bg-themed>* {
  position: relative;
  z-index: 1;
}

.modal-header,
.modal-footer {
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid #d4af37;
  border-top: 1px solid #d4af37;
  color: #d4af37;
}

.modal-header .btn-close {
  filter: invert(80%);
}


.chat-header {
  background: linear-gradient(90deg, #d4af37, #c49020);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid #c49020;
}

#chatTicketInfo {
  background-color: #fff8e1;
  color: #b78e28;
  font-weight: 500;
  font-size: 0.85rem;
  border-left: 4px solid #d4af37;
  padding: 6px 12px;
  margin: 6px 12px 0;
  border-radius: 6px;
  display: none;
}

#chatBox {
  border-radius: 14px;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;

  position: fixed;
  bottom: 270px;
  right: 50px;
  width: 300px;
  height: 500px;
  background: #fff;
  z-index: 1060;

  flex-direction: column;
  display: none; /* Importante para evitar conflictos con d-none */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

#chatBox.mostrar {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.chat-ticket-info {
  background-color: #fff8e1;
  color: #b78e28;
  font-weight: 500;
  font-size: 0.85rem;
  border-left: 4px solid #d4af37;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}

@keyframes bounce-vertical {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.chat-float-bounce {
  animation: bounce-vertical 2s infinite ease-in-out;
}

#openContactChat img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


/* 📦 Tarjeta base */
.product-card .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  /* Puedes ajustar entre 460-500px según el contenido */
  max-height: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}


/* 👑 Efecto de resplandor */
.product-card .card:hover {
  transform: scale(1.03);
  z-index: 10;
}


/* 🔥 Aura dorada animada */
.product-card .card:hover::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 16px;
  background: linear-gradient(130deg, #fffbe6, #fcd462, #d4af37, #fcd462, #fffbe6);
  background-size: 400% 400%;
  animation: goldenAura 4s ease infinite;
  z-index: -1;
  filter: blur(3px);
  opacity: 0.3;
}


/* 🧩 Contenido interno de la tarjeta */
.product-card .card-body {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.product-card .card-footer {
  padding-top: 0;
  padding-bottom: 0.4rem;
}

.product-card .card-body>div:last-child {
  margin-bottom: 0 !important;
}



input[type="checkbox"][name$="-DELETE"] {
  display: none;
}

.image-form.marked-for-deletion {
  opacity: 0.5;
  position: relative;
}

.image-form.marked-for-deletion::after {
  content: "Marcado para eliminación";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

#price-formset .card {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.marked-for-deletion {
  opacity: 0.5;
  pointer-events: none;
}

.marked-for-deletion .remove-price {
  pointer-events: all;
}


.custom-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev.custom-carousel-btn {
  left: 10px;
}

.carousel-control-next.custom-carousel-btn {
  right: 10px;
}

.custom-carousel-btn:hover {
  background: rgba(47, 39, 39, 0.9);
}

/* ✅ Contenedor de imagen y miniaturas alineado verticalmente */
.col-md-6.d-flex {
  align-items: flex-start;
}

/* === CONTENEDOR PRINCIPAL === */
.product-detail-wrapper {
  width: 100%;
  padding: 0 1rem;
}

/* === PRIMERA FILA: Imagen + Miniaturas + Detalles === */
.product-main-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: flex-start;
}




.thumbnail-btn {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.thumbnail-btn.active,
.thumbnail-btn:hover {
  border-color: #d4af37;
}


.product-description-row {
  padding: 1rem 0;
}

.zoomable-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
}

/* 📝 Detalles del producto */
.product-info {
  flex: 1;
  min-width: 260px;
}



.product-prices-row {
  flex-wrap: wrap;
  gap: 1rem;
}


.product-price-card {
  flex: 1 1 calc(50% - 1rem);
  min-width: 250px;
}


/* === MINIATURAS === */
.thumbnails-wrapper {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}




.product-image-wrapper .carousel-control-prev,
.product-image-wrapper .carousel-control-next {
  display: none !important;
}



.custom-modal-50 {
  max-width: 50% !important;
}


.category-scroll-container,
#subcategoryIconsWrapper .subcategory-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.75rem;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.category-scroll-container::-webkit-scrollbar,
.subcategory-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.category-scroll-container::-webkit-scrollbar-thumb,
.subcategory-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}



.carousel-row .product-card {
  flex: 0 0 auto;
  width: 260px;
  max-width: 70vw;
}

/* Tarjetas más compactas en carrusel */
.carousel-card .card {
  min-height: 320px !important;
  /* antes: 480px */
  padding: 0.5rem;
}

.carousel-card .card-body {
  padding: 0.25rem 0.75rem;
}

.carousel-card .product-image-wrapper {
  height: 140px;
}

.carousel-card .product-image {
  height: 100%;
  object-fit: contain;
}

.carousel-card .card-title {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.carousel-card .card-body p {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.carousel-card .add-to-cart-btn {
  font-size: 0.78rem;
  padding: 6px 8px;
  min-height: 34px;
}

.carousel-card .view-detail-btn {
  font-size: 0.78rem;
  padding: 6px 10px;
  min-height: 34px;
}






/* === Burbuja flotante del carrito (escritorio) === */
.cart-bubble-wrapper {
  position: fixed;
  top: 700px;
  right: 80px;
  width: 80px;
  height: 80px;
  z-index: 1050;
}



.cart-bubble {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px gold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: bounce 2.5s infinite;
}

.cart-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px 8px gold;
}

.cart-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.cart-count-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #d4af37;
  color: #fff;
  font-size: 1rem;
  padding: 3px 7px;
  font-weight: 600;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* 🟡 Rebote animado */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-12px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-6px);
  }
}


.menu-icon {
  position: relative;
}

.menu-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(33, 30, 24, 0.92);
  color: #fffbe6;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1052;
  letter-spacing: 0.3px;
}


.menu-icon a {
  text-decoration: none !important;
}

.menu-icon-label {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fefefe;
  text-align: center;
  margin-top: 6px;

  /* Borde simulando stroke */
  -webkit-text-stroke: 0.5px #1e1e1e;

  /* Sombra para mayor realce */
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.6),
    -1px -1px 2px rgba(0, 0, 0, 0.3);
}


.menu-icon a:hover .menu-icon-label {
  color: #d4af37;
  transform: scale(1.05);
}

.menu-icon.show-tooltip::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.menu-icon img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px #d4af37;
}


#mascotaOptions {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  flex-direction: row;
  background-color: #5B7B9D;
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 1051;
  margin-left: 16px;
}



#mascotaOptions img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s;
}

#mascotaOptions img:hover {
  transform: scale(1.1);
}





.description-wrapper {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  max-height: 300px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #c4a646 #f0f0f0; /* Para Firefox */
}

.description-wrapper::-webkit-scrollbar {
  width: 6px;
}

.description-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.description-wrapper::-webkit-scrollbar-thumb {
  background-color: #c4a646;
  border-radius: 10px;
}

/* Gradiente de desvanecimiento */
.description-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}




/* Estilo base para cada botón */
.btn-status-filter {
  min-width: 140px;
  text-align: left;
  white-space: nowrap;
}


.table-wrapper-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.5rem;
  scroll-behavior: smooth;
  max-width: 100%;
}

.table-wrapper-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-wrapper-responsive::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 6px;
  border: 2px solid #5B7B9D;
}
.table-wrapper-responsive::-webkit-scrollbar-thumb:hover {
  background-color: #b78e28;
  border-color: #f6ecd9;
}

@media (max-width: 325px) {

.hero-section {
  height: 70vh;
}
}


@media (max-width: 576px) {
  .product-price-card {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .modal-dialog.modal-half {
    max-width: 95vw;
    /* Más ancho en móvil */
    margin: 1rem auto;
  }

  .product-card .card {
    min-height: 390px;
  }
  .product-image-2 {
    max-height: 100%;
    object-fit: contain;
  }

  .carousel-row {
    gap: 0.75rem;
  }

  .modal-dialog {
    max-width: 98vw !important;
    width: 98vw !important;
    margin: 1rem auto;
  }

  #chatBox {
    width: 95vw !important;
    height: 85vh !important;
    right: 50% !important;
    bottom: auto !important;
    top: 7vh !important;
    transform: translateX(50%) !important;
    border-radius: 16px !important;
  }

  .carousel-row {
    gap: 4.75rem !important;
}

}


@media (max-width: 768px) {
  /* 🛍️ Modal producto */
  .modal-product-detail .modal-dialog {
    max-width: 95vw !important;
    margin: 1rem auto;
  }

  .modal-product-detail .modal-content {
    padding: 0.75rem;
    border-radius: 1rem;
  }

  .modal-product-detail .product-detail-wrapper {
    padding: 0.5rem 1rem;
    text-align: left;
  }

  .modal-product-detail .product-main-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .modal-product-detail .product-image-wrapper {
    width: 100%;
    padding: 0;
  }

  .modal-product-detail .zoomable-image {
    max-height: 240px;
    width: 100%;
    object-fit: contain;
  }

  .modal-product-detail .thumbnails-wrapper {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .modal-product-detail .thumbnail-btn {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .modal-product-detail .product-price-card {
    padding: 1rem;
    width: 100%;
    font-size: 0.95rem;
    min-width: auto !important;
  }

  .modal-product-detail .product-price-card small {
    font-size: 0.85rem;
  }

  .modal-product-detail .add-to-cart-btn {
    font-size: 0.85rem;
    min-height: 38px;
    padding: 8px 12px;
  }

  .modal-product-detail .product-description-row {
    padding: 0.5rem 0;
  }


  .modal-product-detail .description-box {
    -webkit-line-clamp: 18;
    font-size: 0.9rem;
  }


  .cart-bubble {
    animation: none;
    box-shadow: 0 0 12px gold;
  }

  .cart-bubble:hover {
    transform: none;
    box-shadow: 0 0 16px gold;
  }

  .cart-count-badge {
    font-size: 0.75rem;
    top: -8px;
    right: -8px;
    padding: 2px 6px;
  }
  
  .ms-auto-mascota {
    margin-left: auto;
    margin-right: 3rem; 
    display: flex;
    align-items: center;
  }

  #mascotaMenu {
    position: relative;
    border-radius: 10%; 
    cursor: pointer; 
    margin: 0  0 0;
  
  }

  #mascotaBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1049;
    transition: opacity 0.3s ease;
  }

  body.modal-open {
    overflow: hidden;
  }

  #mascotaOptions {
    position: fixed !important;
    top: 48% !important;
    left: 45% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 22rem;
    z-index: 1051;
    background-color: #5B7B9D;
    border: 1.5px solid #d4af37;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #mascotaTrigger,
  .mascota-icon {
    width: 135px;
    height: 135px;
  }

  #mascotaOptions .menu-icon {
    flex: 0 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  #mascotaOptions .menu-icon img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
  }

  #mascotaOptions .menu-icon::after {
    display: none !important; /* Oculta el tooltip en móviles */
  }
  

  .carousel-nav.left {
    left: -1rem;
  }

  .carousel-nav.right {
    right: -1rem;
  }


  .cart-bubble-wrapper {
    left: 80%;
    transform: translateX(-50%);
    right: auto;
    top: 85vh; /* puedes ajustar si necesitas que esté más arriba o abajo */
  }

  .modal-register-wide {
    max-width: 98vw;
    width: 98vw;
    margin: 1rem auto;
  }
  .product-order-item .card-body {
    padding: 0.75rem;
  }

  .product-order-item .card-title {
    font-size: 0.95rem;
  }

  .product-order-item .card-text {
    font-size: 0.8rem;
  }

  .product-order-item img {
    max-height: 100px;
    object-fit: cover;
    width: 100%;
  }
  .btn-status-filter {
    flex: 1 1 calc(50% - 0.5rem);  /* dos columnas con espacio */
  }

  .table-productos td,
  .table-productos th {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }

  .image-cell {
    max-width: 120px;
    overflow-x: auto;
  }

  .image-row-scroll {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
  }

  .image-row-scroll img {
    width: 56px;
    height: 56px;
  }


  .hero-overlay {
    padding: 1rem 1.25rem !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-overlay h1,
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-overlay p,
  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5;
    max-width: 90vw;
    word-break: break-word;
  }

  .hero-overlay a.btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .margin-mobile{
    margin-top: -2rem;
    margin-left: 0.26rem;
  }

  .select2-container .select2-results__options {
    max-height: 250px !important;
  }
  .hero-section {
    height: 70vh !important;
  }

  .metric-value {
    font-size: 1.4rem;
  }

  .chart-pie {
    height: 240px;
    max-width: 240px;
  }

  .chart-time,
  .chart-full {
    height: 220px;
  }

  h5, h6 {
    font-size: 0.9rem;
  }

}

@media (min-width: 769px) {


  #mascotaOptions.show {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  #mascotaOptions .menu-icon {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px; /* opcional, para que la etiqueta también se alinee */
  }

  #mascotaOptions .menu-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain; /* o cover, según prefieras */
    border-radius: 12px; /* opcional: bordes más suaves */
  }

  #mascotaOptions .menu-icon img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px #d4af37;
  }


  /* ✅ TOOLTIP estilizado moderno */
  .menu-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -55%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(33, 30, 24, 0.92);
    color: #fffbe6;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 1052;
    letter-spacing: 0.3px;
  }

  .menu-icon.show-tooltip::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .status-filters {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .btn-status-filter {
    flex: 0 1 auto;
  }

  .btn-add-responsive {
    width: auto;
    padding: 6px 14px;
    font-size: 0.875rem;
  }


}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  #mascotaOptions {
    position: fixed !important;
    top: 48% !important;
    left: 45% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 22rem;
    z-index: 1051;
    background-color: #5B7B9D;
    border: 1.5px solid #d4af37;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #mascotaBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1049;
    transition: opacity 0.3s ease;
  }

  .ck-editor-container .cke,
  .ck-editor-container .cke_inner {
    width: 100% !important;
  }

}

@media (min-width: 1025px) {

  .ck-editor-container .cke,
  .ck-editor-container .cke_inner {
    width: 100% !important;
  }

  #mascotaOptions {
    position: absolute;
    top: 0%;
    right: 100%;
    left: auto;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.35s ease,
      opacity 0.3s ease-in,
      visibility 1s ease-in;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background-color: #5B7B9D;
    border: 1.5px solid #d4af37;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 1051;
    margin-right: 12px;
    min-height: 150px;
  }
}




.scrolla  .product-image-2 {
    max-height: 100%;
    object-fit: contain;
  }ble-form-wrapper {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Estética de textarea */
.textarea-cm {
  height: 3rem;
  resize: vertical;
  background-image: linear-gradient(45deg, transparent 49%, #ccc 50%, #ccc 51%, transparent 52%),
                    linear-gradient(-45deg, transparent 49%, #ccc 50%, #ccc 51%, transparent 52%);
  background-size: 1rem 1rem;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-origin: content-box;
}

.textarea-sm {
  height: 4rem;
  resize: vertical;
}

.small-street {
  min-height: 60px;
  max-height: 70px;
  resize: vertical;
}

.small-textarea {
  min-height: 60px;
  max-height: 100px;
  resize: vertical;
}


.bi-info-circle-fill {
  cursor: pointer;
  font-size: 1rem;
  vertical-align: text-bottom;
}

.invalid-feedback {
  font-size: 0.875rem;
}


/* Modal más ancho (aprox 30% más que modal-lg) */
.modal-custom-width {
  max-width: 960px; /* modal-lg es 800px aprox. */
  width: 90%;        /* ajustable al 90% del viewport en pantallas grandes */
}


.golden-toast {
  background-color: #fdf3d0 !important;
  color: #4b3f1d;
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
}

.golden-toast .btn-close {
  filter: invert(60%);
}

.golden-toast .toast-icon {
  font-size: 1.2rem;
  line-height: 1;
}


.modal-title .icon-sm {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}


.modal-header .modal-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  overflow: hidden;
}

.cke_notification_warning {
  display: none !important;
}

.ck-editor-container {
  width: 100%;
}

/* Área editable dentro del iframe */
.ck-editor__editable {
  min-height: 250px;
}

/* Fuerza al iframe/editor a ocupar el 100% del contenedor */
.ck-editor-container .cke,
.ck-editor-container .cke_inner {
  width: 100% !important;      /* ✅ Por defecto, 90% para buena estética en móviles */
  max-width: 100% !important;
  margin: 0 auto;
}

.django-ckeditor-widget {
  width: 100%;
}

/* 🟡 Texto de los inputs y selects en negro */
#order-filters-form input[type="text"],
#order-filters-form input[type="date"],
#order-filters-form select {
  color: #000 !important;
  background-color: transparent;
  border-color: #d4af37;
  font-weight: 500;
}

/* 🟡 Placeholder neutral */
#order-filters-form input::placeholder {
  color: #999 !important;
}

/* 🟡 Etiquetas (labels) en dorado */
#order-filters-form label {
  color: #d4af37 !important;
  font-weight: 600;
}

/* Oculta los botones "Insertar vínculo" y "Quitar vínculo" de la barra */
.cke_button__link,
.cke_button__unlink {
  display: none !important;
}


/* 📌 Botón "Agregar" responsive */
.btn-add-responsive {
  width: 100%;
  padding: 10px 18px;
  font-size: 0.75rem;
}




.product-order-item {
  min-height: 220px; /* puedes ajustar este valor según tus necesidades visuales */
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  border-radius: 12px;
}

.product-order-item .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-order-item .card-body p,
.product-order-item .card-body h6 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.product-order-item .col-4 {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-right: 1px solid #eee;
}

.product-order-item img {
  max-height: 150px;
  object-fit: contain;
}


.modal-register-wide {
  max-width: 800px;
  width: 95%;
}



/* 🔄 Contenedor de imágenes con scroll horizontal */
.image-row-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
  scrollbar-color: #d4af37 transparent; /* Para navegadores modernos */
  scrollbar-width: thin;
}

/* 🎨 Scroll personalizado para WebKit (Chrome, Edge, Safari) */
.image-row-scroll::-webkit-scrollbar {
  height: 8px;
}

.image-row-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.image-row-scroll::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 6px;
  border: 2px solid #5B7B9D; /* Fondo claro alrededor */
}

.image-row-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #b78e28;
  border-color: #f6ecd9;
}

/* 📏 Celda de imágenes en tabla con ancho limitado */
.image-cell {
  max-width: 120px;
  min-width: 100px;
  overflow-x: auto;
  white-space: nowrap;
}


/* Asegura que los contenedores padre tengan posición relativa para que el dropdown se alinee correctamente */
#id_state, #id_municipality {
  position: relative;
  z-index: 1;
}

/* Asegura que el dropdown de Select2 tenga prioridad y no se oculte */
.select2-container--open {
  z-index: 9999 !important;
}

/* Asegura que el ancho del Select2 sea el del contenedor */
.select2-container {
  width: 100% !important;
  max-width: 100%;
}

/* Estilos del dropdown: altura, scroll y visuales limpios */
.select2-container .select2-results__options {
  max-height: 400px !important;
  overflow-y: auto;
}

/* Evita superposición incorrecta sobre otros elementos */
.select2-dropdown {
  z-index: 1050; /* Igual o mayor que modales Bootstrap */
  position: absolute !important;
}

.hero-section {
  position: relative;
  height: 40vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
  z-index: 1;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}


.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-overlay a.btn {
  margin-top: 2rem;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  background: rgba(11, 28, 53, 0.6); /* Oscuro traslúcido */
  color: #fff; /* Color oscuro similar al del logo */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(11, 28, 53, 0.6); /* Oscuro traslúcido */
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: justify;            /* ✅ Justifica el texto */
  width: 100%;                    /* ✅ Ocupa todo el ancho del contenedor */
  max-width: 100%;                /* Evita límites de ancho */
  display: block;                 /* Asegura que sea bloque completo */
}


.product-image-wrapper {
  background: #fff;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-inner {
  width: 100%;
  height: 100%;
}

.carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.w-70 {
  width: 70%;
}

#subcategoryIconsWrapper .btn {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  gap: 0.25rem;
}

#subcategoryIconsWrapper img,
#subcategoryIconsWrapper i {
  margin-bottom: 4px;
}

.category-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-behavior: smooth;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.subcategory-scroll-container {
overflow-x: auto;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}

.subcategory-scroll-container::-webkit-scrollbar {
display: none;
}

#subcategoryIconsWrapper .btn {
white-space: nowrap;
min-width: 70px;
max-width: 120px;
flex-shrink: 0;
transition: all 0.3s ease;
border-radius: 20px;
font-size: 0.8rem;
}

#subcategoryIconsWrapper .btn.active {
background-color: #d4af37;
color: white;
border-color: #d4af37;
font-weight: bold;
}


.category-icon-btn.active {
  background-color: #d4af37;
  color: white;
  border-color: #d4af37;
  font-weight: bold;
}

.select-status {
  font-weight: bold;
  color: #333;
}


.dashboard-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

.metric-card {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  border: none;
  height: 100%;
}

.metric-card .card-body {
  padding: 2rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0;
}

.chart-pie {
  width: 100%;
  max-width: 300px;
  height: 300px;
  position: relative;
}

.chart-time,
.chart-full {
  height: 280px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas.clickable-chart {
  cursor: pointer;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

label,
.form-label,
h5, h6 {
  font-size: 0.95rem;
  text-align: center;
}

.chart-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
}

.small-textarea {
  min-height: 60px;
  max-height: 100px;
  resize: vertical;
}