/* Variables si no estÃ¡n definidas en contexto */
.contenedor:not([style]) {
  --color-bg: transparent;
}

/* Contenedor general */
.contenedor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--color-bg, #fff);
}

/* TÃ­tulo secciÃ³n reseÃ±a (productos.php) */
.section-resena-title {
  color: inherit;
  font-weight: 700;
}

.filters-panel {
  width: 100%;
  background-color: var(--color-light);
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filters-panel h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.filters-panel--compact {
  padding: 0.75rem 0.85rem;
  gap: 0.8rem;
}

.filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.filters-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.filters-search {
  flex: 1 1 auto;
  max-width: 420px;
}

.filters-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filters-advanced {
  margin-top: 0.6rem;
}

.filters-advanced__content {
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.dark-mode .filters-panel {
  background-color: #141821;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.dark-mode .filters-panel .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.dark-mode .filters-panel .form-control,
.dark-mode .filters-panel .form-select {
  background-color: #0f131a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f4f6fb;
}

.dark-mode .filters-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dark-mode .filters-advanced__content {
  background: rgba(255, 255, 255, 0.05);
}
.filtro select,
.filtro input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

/* SecciÃ³n de productos */
.productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .productos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .productos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .filters-advanced__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .filters-advanced__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .filters-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-actions {
    width: 100%;
  }

  .filters-actions .btn {
    flex: 1 1 auto;
  }
}

/* Compact buttons in filter panel */
.filters-panel .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

/* Ajustes de espaciado en pÃ¡gina productos */
.productos-page #resena {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.productos-page #resena .section-resena-title {
  margin-bottom: 1rem;
}

.productos-page #resena .section-divider {
  margin: 20px auto;
}

.productos-page .portal-banner-wrap {
  padding: 6px 0 16px;
}

.productos-page .contenedor.py-5 {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
}


.producto-card {
  background-color: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Imagen con zoom */
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.zoom-hover:hover img {
  transform: scale(1.1);
}

/* Badge de agotado */
.offer-badge,
.soldout-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.offer-badge {
  background-color: crimson;
}

.soldout-badge {
  background-color: #444;
}

/* TÃ­tulos y precio */
.producto-card h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--color-dark);
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-card p.text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  opacity: 0.85;
}

.producto-card h4.text-primary {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card-price {
  font-weight: 600;
}

/* Pre con scroll y lÃ­mites */
.producto-card pre {
  background-color: #f5f5f5;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 6px;
  color: var(--color-dark);
  overflow-x: auto;
  max-height: 150px;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botones de acciÃ³n en cards */
.btn-ver-detalle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background-color: transparent;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-ver-detalle:hover,
.btn-ver-detalle:focus,
a.btn-ver-detalle:hover,
a.btn-ver-detalle:focus {
  background-color: var(--color-primary) !important; /* hover mÃ¡s llamativo */
  border-color: var(--color-primary) !important;
  color: #1e40af !important;
}

.btn-ver-detalle i {
  margin-right: 8px;
}

.btn-ver-detalle:active {
  transform: translateY(1px);
}

.btn-agregar-carro,
.product-card .btn-agregar-carro,
.producto-card .btn-agregar-carro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  gap: 0.5rem;
  background-color: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-agregar-carro:hover,
.btn-agregar-carro:focus {
  background-color: #ff4348; /* tono hover afÃ­n al tema */
}

/* En productos.php: Cotizar con mismo estilo que Ver producto */
.productos .card-compact__actions .btn-agregar-carro {
  background-color: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  box-shadow: none;
  width: auto;
  min-height: auto;
  padding: 4px 10px;
  border-radius: var(--bs-border-radius);
}

.productos .card-compact__actions .btn-agregar-carro:hover,
.productos .card-compact__actions .btn-agregar-carro:focus {
  background-color: #0d6efd;
  color: #fff;
}

/* En productos.php: botones en la misma lÃ­nea */
.productos .card-compact__actions {
  flex-wrap: nowrap;
}

.productos .card-compact__actions .btn {
  flex: 1 1 0;
  justify-content: center;
}

@media (max-width: 575px) {
  .productos .card-compact__actions {
    flex-wrap: wrap;
  }
}

.btn-agregar-carro:active {
  transform: translateY(1px);
}

.btn-agregar-carro[disabled],
.btn-agregar-carro[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* TÃ­tulo como enlace al detalle */
.card-title-link {
  color: var(--color-dark);
  text-decoration: none;
}

.card-title-link:hover,
.card-title-link:focus {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Dark mode: make product title use the same color as the price */
body.dark-mode .producto-card .card-title-link {
  color: var(--color-primary) !important;
}
body.dark-mode .producto-card .card-title-link:hover,
body.dark-mode .producto-card .card-title-link:focus {
  color: var(--color-secondary) !important;
}

/* If CSS variables are not available in dark mode, force both title and price to a readable color
   matching other dark-mode rules (used elsewhere as product price color). */
body.dark-mode .producto-card h4.text-primary,
body.dark-mode .producto-card .card-title-link {
  color: #0056B3 !important;
}

/* Forzar que el hover/focus del tÃ­tulo mantenga el mismo color en modo oscuro */
body.dark-mode .producto-card .card-title-link,
body.dark-mode .producto-card .card-title-link:hover,
body.dark-mode .producto-card .card-title-link:focus {
  color: #0056B3 !important;
  text-decoration: none !important;
}

/* Estilos para tablas internas */
.producto-card table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.producto-card table td, 
.producto-card table th {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

/* AcordeÃ³n */
.producto-card .accordion-button {
  background-color: var(--color-light);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
}

.producto-card .accordion-button:not(.collapsed) {
  background-color: var(--color-secondary);
  color: white;
}

.producto-card .accordion-body {
  font-size: 0.85rem;
  color: #333;
  background-color: #fff;
}

/* Icono de carrito */
.carrito {
  position: relative;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
}

.carrito .badge {
  position: absolute;
  top: -10px;
  right: -12px;
  background-color: red;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 10;
}

/* Drawer del carrito */
.drawer {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: fixed;
  top: 0;
  right: -400px;
  left: auto;
  transform: none;
  transition: right 0.3s ease-out;
  z-index: 1050;
}

.drawer.open {
  right: 0;
}

/* Drawer carro: posicionamiento robusto + safe areas */
.drawer.drawer-carro {
  width: min(420px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  padding-right: env(safe-area-inset-right, 0);
  padding-top: env(safe-area-inset-top, 0);
  overflow: hidden;
}

.drawer.drawer-carro.open {
  right: 0;
  transform: none;
}

.drawer.drawer-carro .drawer-carro__header {
  position: sticky;
  top: 0;
  z-index: 3;
  flex-shrink: 0;
}

.drawer.drawer-carro .drawer-carro__list {
  min-height: 120px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.drawer.drawer-carro .drawer-carro__form {
  flex: 0 0 auto;
  max-height: 34vh;
  overflow-y: auto;
  border-top: 1px solid #ddd;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
}

.drawer.drawer-carro .drawer-carro__form-head {
  margin-bottom: 0.75rem;
}

.drawer.drawer-carro .drawer-carro__form-title {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.drawer.drawer-carro .drawer-carro__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.drawer.drawer-carro .drawer-carro__step-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eef2ff;
  color: #4f46e5;
}

.drawer.drawer-carro .drawer-carro__step-chip--active {
  background: #dbeafe;
  color: #1d4ed8;
}

.drawer.drawer-carro .drawer-carro__step {
  margin-bottom: 0.8rem;
  padding: 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.drawer.drawer-carro .drawer-carro__step:last-child {
  margin-bottom: 0;
}

.drawer.drawer-carro .drawer-carro__step-title {
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.drawer.drawer-carro .drawer-carro__step-title span {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: #dbeafe;
  color: #1d4ed8;
}

.drawer.drawer-carro .drawer-carro__footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex-shrink: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 768px) {
  .drawer.drawer-carro {
    width: 100vw;
    max-width: none;
    right: -100%;
  }

  .drawer.drawer-carro.open {
    right: 0;
  }
}

.drawer-header{
  padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.drawer-footer {
  padding: 1rem;
  background: #f4f4f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f9f9f9;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1040;
}

.drawer-overlay.active {
  display: block;
}

.drawer-header button,
.drawer-carro__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-carro__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.drawer-footer button,
.drawer-carro__btn {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-carro__btn--vaciar,
#vaciarCarro {
  background-color: #f44336;
  color: white;
}

.drawer-carro__btn--vaciar:hover,
#vaciarCarro:hover {
  background-color: #d32f2f;
}

.drawer-carro__btn--enviar,
#enviarCotizacion {
  background-color: #28a745;
  color: white;
}

.drawer-carro__btn--enviar:hover,
#enviarCotizacion:hover {
  background-color: #218838;
}

.drawer-carro__total-wrap {
  padding: 0.75rem 1rem;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-carro__total-label {
  font-weight: 600;
  color: #333;
}

.drawer-carro__total {
  font-size: 1.1rem;
  color: #667eea;
}

.carro-empty {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.carro-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 4px solid #667eea;
  animation: slideIn 0.3s ease-out;
  align-items: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carro-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.carro-item__body,
.carro-item div {
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
}

.carro-item strong {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.carro-item__quitar {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f44336;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carro-item__quitar:hover {
  background: #d32f2f;
}

.carro-item__quitar i {
  font-size: 0.9rem;
}

/* Dialog de Ã©xito (cotizaciÃ³n enviada) */
.drawer-carro-dialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 0;
  max-width: 90vw;
}

.drawer-carro-dialog__inner {
  padding: 2rem;
  text-align: center;
}

.drawer-carro-dialog__icon {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: 1rem;
}

.drawer-carro-dialog__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem;
}

.drawer-carro-dialog__desc {
  color: #666;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.drawer-carro-dialog__btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.drawer-carro-dialog__btn:hover {
  opacity: 0.9;
}

.form-group {
  padding: 0.75rem 1rem;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-form {
  display: flex;
  flex-direction: column;
}

.input-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.input-form input,
.input-form textarea {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.input-form input:focus,
.input-form textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Utilidades de animaciÃ³n */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* Select2 visual fixes: ensure readable text and enable scrolling on results */
.select2-container {
  width: 100% !important;
}
.select2-container--default .select2-selection--single {
  background-color: var(--color-light, #ffffff);
  border: 1px solid #ced4da;
  color: var(--color-dark, #212529);
  border-radius: 6px;
  height: calc(2.25rem + 4px);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--color-dark, #212529);
  line-height: calc(2.25rem + 4px);
}
.select2-container--default .select2-results__option {
  color: var(--color-dark, #212529);
}
.select2-container--default .select2-results {
  max-height: 260px;
  overflow-y: auto;
}
/* Improve visibility in dark-mode */
body.dark-mode .select2-container--default .select2-selection--single {
  background-color: #2a2a2a;
  border-color: #444;
  color: #ffffff;
}
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-results__option {
  color: #ffffff;
}
/* Ensure dropdown overlay sits on top */
.select2-container--open .select2-dropdown {
  z-index: 2000;
}
/* More specific rules to cover other select2 themes/structures */
.select2-dropdown,
.select2-container--default .select2-dropdown,
.select2-container .select2-dropdown {
  background: var(--color-light, #ffffff) !important;
  color: var(--color-dark, #212529) !important;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.select2-container--default .select2-results__options,
.select2-results__options {
  max-height: 320px !important;
  overflow-y: auto !important;
}
.select2-container--default .select2-results__option[aria-selected],
.select2-results__option[aria-selected] {
  color: var(--color-dark, #212529) !important;
}
body.dark-mode .select2-dropdown,
body.dark-mode .select2-container--default .select2-dropdown {
  background: #222 !important;
  color: #fff !important;
  border-color: #333 !important;
}
body.dark-mode .select2-results__option {
  color: #fff !important;
}

/* Force white dropdown background and black text for Select2 dropdowns (even in dark mode) */
.select2-container--default .select2-dropdown,
.select2-dropdown,
.select2-container .select2-dropdown,
.select2-container--open .select2-dropdown {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ddd !important;
}
.select2-container--default .select2-results__option,
.select2-results__option {
  color: #000000 !important;
}
.select2-container--default .select2-results__option--highlighted,
.select2-results__option--highlighted {
  background: #f1f1f1 !important;
  color: #000000 !important;
}
.select2-container--default .select2-results__options,
.select2-results__options {
  background: #ffffff !important;
  max-height: 320px !important;
  overflow-y: auto !important;
}
.select2-container--open .select2-dropdown {
  z-index: 3000 !important;
}

/* Mejorar contraste del placeholder en modo oscuro */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode select::placeholder,
body.dark-mode .form-control::placeholder,
body.dark-mode .form-select::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

/* Select2 placeholder / rendered text en modo oscuro */
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Asegurar contraste en inputs dentro de las cards */
body.dark-mode .filters-panel .form-control::placeholder,
body.dark-mode .filters-panel .form-select::placeholder {
  color: rgba(255,255,255,0.72) !important;
}

/* Dark mode styles para Drawer del carrito */
body.dark-mode .drawer {
  background-color: #1f1f1f !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer-header {
  background: linear-gradient(135deg, #0056B3 0%, #003d82 100%) !important;
  border-bottom-color: #444 !important;
  color: #ffffff !important;
}

body.dark-mode .drawer-header h4,
body.dark-mode .drawer-carro__title {
  color: #ffffff !important;
}

body.dark-mode .drawer-carro__total-wrap {
  background: #2a2a2a !important;
  border-top-color: #444 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer-carro__total-label {
  color: #e0e0e0 !important;
}

body.dark-mode .drawer-carro__total {
  color: #60a5fa !important;
}

body.dark-mode .carro-empty {
  color: #9ca3af !important;
}

body.dark-mode .carro-item__quitar {
  background: #c41e3a !important;
  color: #fff !important;
}

body.dark-mode .carro-item__quitar:hover {
  background: #8b0000 !important;
}

body.dark-mode .drawer-carro-dialog__inner {
  background: #1f1f1f;
  color: #e0e0e0;
}

body.dark-mode .drawer-carro-dialog__title {
  color: #fff !important;
}

body.dark-mode .drawer-carro-dialog__desc {
  color: #9ca3af !important;
}

body.dark-mode .drawer-header button {
  color: #ffffff !important;
}

body.dark-mode .drawer-header button:hover {
  color: #b0d4ff !important;
}

body.dark-mode .drawer-content {
  background-color: #1c1c1e !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer-footer {
  background: #2a2a2a !important;
  border-top-color: #444 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .drawer-footer button {
  color: #ffffff !important;
  border-color: #444 !important;
}

body.dark-mode #vaciarCarro {
  background-color: #c41e3a !important;
}

body.dark-mode #vaciarCarro:hover {
  background-color: #8b0000 !important;
}

body.dark-mode #enviarCotizacion {
  background-color: #1e7e34 !important;
}

body.dark-mode #enviarCotizacion:hover {
  background-color: #165c2f !important;
}

body.dark-mode .carro-item {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-left-color: #0056B3 !important;
}

body.dark-mode .carro-item strong {
  color: #ffffff !important;
}

body.dark-mode .form-group {
  background-color: #1f1f1f !important;
  border-top-color: #444 !important;
}

body.dark-mode .drawer-carro__form-title {
  color: #f3f4f6 !important;
}

body.dark-mode .drawer-carro__step-chip {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
}

body.dark-mode .drawer-carro__step-chip--active {
  background: rgba(59, 130, 246, 0.3) !important;
  color: #bfdbfe !important;
}

body.dark-mode .drawer-carro__step {
  background: #252525 !important;
  border-color: #3f3f3f !important;
}

body.dark-mode .drawer-carro__step-title {
  color: #e5e7eb !important;
}

body.dark-mode .drawer-carro__step-title span {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #bfdbfe !important;
}

body.dark-mode .input-form label {
  color: #e0e0e0 !important;
}

body.dark-mode .input-form input,
body.dark-mode .input-form textarea {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

body.dark-mode .input-form input::placeholder,
body.dark-mode .input-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .input-form input:focus,
body.dark-mode .input-form textarea:focus {
  background-color: #333 !important;
  border-color: #0056B3 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25) !important;
}


/* ==================== HERO CATÁLOGO SLIM ==================== */
.hero-catalogo {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 250px;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #212529 0%, #b00020 80%, #ff4348 100%);
}

/* Compensar header fixed en móvil */
@media (max-width: 991px) {
  .hero-catalogo {
    padding-top: 60px;
  }
}

.hero-catalogo__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  width: 100%;
}

.hero-catalogo__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-catalogo__title {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  word-wrap: break-word;
}

/* Reducir aún más en pantallas muy pequeñas */
@media (max-width: 576px) {
  .hero-catalogo {
    height: 25vh;
    min-height: 200px;
  }
}

