:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);

  --transition: all 0.25s ease;
  --transition-fast: all 0.15s ease;
  --border-radius: 0.375rem;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: #ffffff;
  background-color: var(--light-color);
  font-size: 0.875rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}

.display-4 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.btn {
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.3s ease;
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: calc(var(--border-radius) + 0.15rem);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: calc(var(--border-radius) - 0.1rem);
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: white;
  margin-bottom: 1rem;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  border-bottom: 1px solid rgba(243, 233, 233, 0.125);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-body {
  padding: 1rem;
}

.card-footer {
  border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.125);
  padding: 0.5rem 1rem;
}

.navbar {
  background: linear-gradient(270deg, #00b7ff, #8000ff, #ff00f2,#ff5100);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  color: white;
   box-shadow: inset 0 -10px 10px 0px rgb(255, 255, 255); /* Difuminado hacia abajo */
   position: fixed;
   top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  z-index: 1000;
  
}
.navbar .container {
    overflow: visible !important; /* Permitir que el contador salga del contenedor */
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.navbar .nav-link {
  color: white !important;
}

.navbar .nav-link:hover {
  color: #f8f9fa !important;
}

.navbar-brand {
    margin-bottom: 0;        /* Eliminar cualquier margen */
    padding: 0;              /* Eliminar padding extra */
    line-height: 1;          /* Línea de altura consistente */
}


.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem;
  color: #ffffff 
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
  font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.2);
  transform: translateY(-1px);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

.input-group {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.input-group-text {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
}

.table thead th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 0.5rem;
  background: var(--dark-color);
  color: white;
}

.table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(0, 123, 255, 0.05);
}

.badge {
  font-weight: 500;
  padding: 0.3em 0.6em;
  border-radius: var(--border-radius);
  font-size: 0.75em;
}

.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #a8e7b7;
  border-left: 3px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 3px solid var(--danger-color);
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border-left: 3px solid var(--warning-color);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border-left: 3px solid var(--info-color);
}

.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
  padding: 1rem;
}

.modal-title {
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem;
}

.producto-card {
  transition: var(--transition);
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.producto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.producto-imagen {
  height: 280px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-imagen .placeholder-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

.stock-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.stock-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.units-badge,
.boxes-badge {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  min-width: 50px;
  text-align: center;
}

.units-badge.success {
  background: var(--success-color);
}
.units-badge.warning {
  background: var(--warning-color);
  color: #212529;
}
.units-badge.danger {
  background: var(--danger-color);
}

.boxes-badge {
  background: var(--info-color);
  font-size: 0.65rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.8rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
}

.category-tag {
  background: var(--secondary-color);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.6rem;
  white-space: nowrap;
}

.reference-tag {
  color: var(--secondary-color);
  font-size: 0.65rem;
  white-space: nowrap;
}

.pricing-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.unit-price,
.box-price {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.unit-price {
  color: var(--success-color);
  font-size: 1.1rem;
}

.box-price {
  color: var(--primary-color);
  font-size: 1rem;
}

.unit-price small,
.box-price small {
  font-weight: 400;
  color: var(--secondary-color);
  font-size: 0.8rem;
}

.action-button {
  margin-top: auto;
}

.action-button .btn {
  width: 100%;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

.categoria-badge {
  background: var(--gradient-primary) !important;
  border: none !important;
  border-radius: 15px;
  padding: 6px 12px !important;
  margin: 3px !important;
  transition: var(--transition);
  color: white !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.categoria-badge:hover {
  background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
  color: white !important;
  text-decoration: none !important;
  transform: scale(1.03);
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.categoria-badge.active {
  background: var(--gradient-success) !important;
  color: white !important;
  text-decoration: none !important;
  transform: scale(1.03);
  box-shadow: 0 3px 12px rgba(56, 21, 138, 0.4);
}

.filtros-section {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.search-box {
  border-radius: 20px;
  border: 2px solid #e9ecef;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  font-size: 0.875rem;
}

.search-box:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.2);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

#modalDetalles .modal-dialog {
  max-width: 55vw !important;
  width: 55vw !important;
  max-height: 85vh !important;
}

#modalDetalles .modal-content {
  height: auto !important;
  max-height: 85vh !important;
}

#modalDetalles .modal-body {
  max-height: 70vh !important;
  overflow-y: auto !important;
}

#modalDetalles .producto-imagen {
  height: 350px !important;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.sin-productos {
  text-align: center;
  padding: 2rem;
  color: var(--secondary-color);
  grid-column: 1 / -1;
}

.sin-productos i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.sin-productos h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

@media (min-width: 1400px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
  }

  #modalDetalles .modal-dialog {
    max-width: 70vw !important;
    width: 70vw !important;
  }

  .producto-imagen {
    height: 180px;
  }
}

@media (max-width: 767px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  .producto-imagen {
    height: 160px;
  }

  .card-body {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .product-title {
    font-size: 0.9rem;
    min-height: 1.8rem;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  #modalDetalles .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    height: 95vh !important;
    margin: 2.5vh auto !important;
  }

  .display-4 {
    font-size: 2rem;
  }

  .filtros-section {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
  }

  .producto-imagen {
    height: 210px;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-in {
  animation: fadeIn 0.4s ease forwards;
}

.transition-all {
  transition: var(--transition);
}

.transition-fast {
  transition: var(--transition-fast);
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg);
}

.border-radius-custom {
  border-radius: var(--border-radius);
}

.cursor-pointer {
  cursor: pointer;
}

.user-select-none {
  user-select: none;
}

.overflow-hidden {
  overflow: hidden;
}

.toast {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: none;
  font-size: 0.875rem;
}

.dropdown-item {
  transition: var(--transition-fast);
  border-radius: calc(var(--border-radius) - 0.2rem);
  margin: 0.1rem 0.5rem;
  padding: 0.375rem 0.75rem;
}

.dropdown-item:hover {
  background: var(--primary-color);
  color: white;
}

.pagination {
  gap: 0.2rem;
}

.pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-link:hover {
  color: #0056b3;
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
}

.progress {
  height: 0.6rem;
  border-radius: var(--border-radius);
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  transition: width 0.6s ease;
}

footer {
  background: linear-gradient(270deg, #ff5100, #ff00f2, #8000ff,#00b7ff);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  color: white;
  box-shadow: inset 0 10px 10px -2px rgb(255, 255, 255); /* Difuminado hacia arriba */
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

footer a,
footer p,
footer small,
footer .text-muted {
  color: white !important;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


footer h5 {
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

footer p,
footer small {
  color: #ffffff !important; /* Cambiado de #adb5bd a #ffffff */
  font-size: 0.8rem;
  margin-bottom: 0;
}

footer .text-muted {
  color: #ffffff !important; /* Forzar color blanco para clase text-muted */
}

footer a {
  color: #ffffff !important; /* Cambiado de #adb5bd a #ffffff */
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: #f8f9fa !important; /* Color ligeramente más claro al hover */
  text-decoration: underline;
}

/* Asegurarse de que el contenido no se oculte detrás del footer */
body {
  padding-bottom: 120px !important;
}

/* Para pantallas más pequeñas */
@media (max-width: 768px) {
    /* Eliminar prácticamente todos los espacios */
    footer * {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    footer .row {
        line-height: 1 !important;
    }
    
    /* Espacios mínimos específicos */
    footer h5 + p {
        margin-top: 0.1rem !important;
    }
    
    .social-media-container {
        margin: 0.25rem 0 0.1rem 0 !important;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 0.25rem 0 !important; /* Aún más compacto */
    }
    
    footer h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    footer p,
    footer small {
        font-size: 0.7rem !important;
        margin-bottom: 0.1rem !important;
        line-height: 1.1 !important;
    }
    
    .social-media-container {
        margin: 0.25rem 0 !important;
        gap: 0.75rem !important;
    }
    
    /* Hacer los iconos un poco más pequeños */
    .social-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Reducir el padding del body para compensar */
    body {
        padding-bottom: 80px !important; /* Menos espacio reservado para footer */
    }
}

@media (max-width: 576px) {
  footer {
    padding: 0.5rem 0 !important;
  }
  
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  
  footer .col-md-6 {
    margin-bottom: 0.25rem;
  }
  
  footer p,
  footer small,
  footer .text-muted {
    color: #ffffff !important;
  }
  
  body {
    padding-bottom: 90px !important;
  }
}

.search-results-count {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius);
  animation: fadeIn 0.3s ease;
}

.no-results-row {
  animation: fadeIn 0.3s ease;
}

.highlight-search {
  background-color: #fff3cd;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

.container-fluid.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.text-center.mb-5 {
  margin-bottom: 2rem !important;
}

.text-center .display-4 {
  margin-bottom: 1rem !important;
}

.text-center .lead {
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #000000;
    --dark-color: #ffffff;
  }

  body {
    background-color: #ffffff;
    color: #ffffff;
  }

  .card {
    background: #2d3748;
    color: #ffffff;
  }

  .form-control,
  .form-select {
    background: #bbb7b7;
    border-color: #191cc9;
    color: #030303;
  }

  .table {
    background: #2d3748;
    color: #ffffff;
  }

  .modal-content {
    background: #ffffff;
    color: #ffffff;
  }
}

@media print {
  .navbar,
  .sidebar,
  .btn,
  .modal,
  .filtros-section {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12px;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
    break-inside: avoid;
  }

  .table {
    box-shadow: none !important;
    font-size: 11px;
  }

  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
}
.container-fluid h1,
.container-fluid h2,
.container-fluid h3,
.container-fluid h4,
.container-fluid h5,
.container-fluid h6,
.text-center h1,
.text-center h2,
.text-center .display-4,
.text-center .lead,
.d-flex h5,
.filtros-section h5 {
  color: #212529 !important;
}

.modal-body,
.modal-body p,
.modal-body div,
.modal-body span,
.modal-body small,
.modal-body .text-muted,
.modal-body .fw-bold,
.modal-body strong,
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
  color: #212529 !important;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.producto-card {
  background: transparent !important;
}

.producto-card .card-body {
  background: rgba(0, 0, 0, 0.39) !important;
  background-image: none !important; 
  background-color: rgba(0, 0, 0, 0.397) !important;
  backdrop-filter: blur(2px);
  border-radius: 0 0 15px 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.producto-imagen {
  height: 180px;
}

.product-title {
  font-size: 0.8rem;
  min-height: 1.8rem;
}

.unit-price {
  font-size: 0.9rem;
}

.box-price {
  font-size: 0.8rem;
}

@media (min-width: 1400px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .producto-imagen {
    height: 190px;
  }
}

@media (max-width: 767px) {
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
  }

  .producto-imagen {
    height: 170px;
  }

  .card-body {
    padding: 0.5rem;
  }
}
.producto-card .product-title {
  color: white !important;
}

.producto-card .reference-tag {
  color: rgba(255, 255, 255, 0.8) !important;
}

.producto-card .reference-tag i {
  color: rgba(255, 255, 255, 0.8) !important;
}

.producto-card .unit-price small,
.producto-card .box-price small {
  color: rgba(255, 255, 255, 0.9) !important;
}

.producto-card .card-body,
.producto-card .card-body * {
  color: white !important;
}

.producto-card .category-tag,
.producto-card .units-badge,
.producto-card .boxes-badge {
  color: white !important;
}

.producto-card .unit-price {
  color: #90ee90 !important; 
}

.producto-card .box-price {
  color: #87ceeb !important; 
}
.producto-card .producto-imagen,
.card .producto-imagen {
  height: 280px !important;
}

@media (max-width: 768px) {
  .producto-card .producto-imagen,
  .card .producto-imagen {
    height: 300px !important;
  }
}

@media (max-width: 506px) {
  .producto-card .producto-imagen,
  .card .producto-imagen {
    height: 180px !important;
  }
}
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 5px 5px 0;
}

.carousel-control-prev {
  border-radius: 5px 0 0 5px;
}

.carousel-indicators {
  margin-bottom: 0.5rem;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
}

#imagenesPreview img,
#imagenesExistentes img {
  transition: transform 0.2s ease;
}

#imagenesPreview img:hover,
#imagenesExistentes img:hover {
  transform: scale(1.05);
}

#imagenesExistentes .btn-danger {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-imagen-detalle {
  height: 400px !important;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f8f9fa;
}

.producto-imagen-detalle img {
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  background: white;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 8px 8px 0;
}

.carousel-control-prev {
  border-radius: 8px 0 0 8px;
}

.carousel-indicators {
  margin-bottom: 10px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
}

.carousel-indicators button.active {
  background-color: #007bff;
  border-color: #007bff;
}

@media (max-width: 768px) {
  .producto-imagen-detalle {
    height: 300px !important;
  }

  #modalDetalles .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
  }
}

.productos-grid .producto-imagen img {
  object-fit: cover !important;
  object-position: center;
}

#imagenesPreview .card img {
  transition: transform 0.2s ease;
}

#imagenesPreview .card:hover img {
  transform: scale(1.05);
}

#imagenesExistentes .card img {
  transition: transform 0.2s ease;
}

#imagenesExistentes .card:hover img {
  transform: scale(1.05);
}

.navbar-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0);
  padding: 2px;
}

.navbar-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: translateX(2px);
}

.navbar-brand span {
  line-height: 1.2;
}

@media (max-width: 768px) {
  .navbar-logo {
    width: 32px;
    height: 32px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand span {
    display: none; 
  }
}

@media (max-width: 480px) {
  .navbar-brand span {
    display: inline; 
    font-size: 0.9rem;
  }
}

.navbar-brand img {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
}

@media (prefers-color-scheme: dark) {
  .navbar-logo {
    background: rgba(255, 255, 255, 0);
  }
}

.skeleton-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  z-index: 1;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  overflow: hidden;
}

.lazy-load {
  transition: opacity 0.3s ease !important;
  opacity: 0;
}

.lazy-load.loaded {
  opacity: 1 !important;
}

.productos-grid {
  contain: layout style; 
}

@media (prefers-reduced-motion: reduce) {
  .lazy-load,
  .skeleton-loader,
  .producto-card {
    transition: none !important;
    animation: none !important;
  }
}

.producto-card {
  transform: translateZ(0); 
  will-change: transform; 
}

.producto-imagen img {
  transform: translateZ(0);
  backface-visibility: hidden; 
}

.stock-overlay {
  contain: layout style;
}

.loading-image {
  position: relative;
  overflow: hidden;
}

.loading-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
  z-index: 2;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.webp .producto-imagen img[data-webp] {
  content: attr(data-webp);
}

.image-placeholder.loading {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

.image-placeholder.error {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.2) 100%
  );
}

.productos-grid {
  overflow-anchor: auto; 
}

@media (max-width: 768px) {
  .skeleton-loader {
    width: 70%;
    height: 50%;
  }

  .producto-card:hover {
    transform: none;
  }

  .producto-imagen img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (max-width: 480px) {
  .skeleton-loader {
    animation-duration: 2s; 
  }

  .lazy-load {
    transition-duration: 0.5s; 
  }
}

.high-performance-mode .producto-card {
  transition: none !important;
  transform: none !important;
}

.high-performance-mode .skeleton-loader {
  animation: none;
  background: #e0e0e0;
}

.above-fold .lazy-load {
  opacity: 1; 
}

.image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 2rem;
  width: 100%;
  height: 100%;
}

.producto-card:hover img[data-hover-src] {
}

.no-intersection-observer .lazy-load {
  opacity: 1;
}

.no-intersection-observer .skeleton-loader {
  display: none;
}

.slow-connection-warning {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #ffc107;
  color: #856404;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1000;
  animation: slideInRight 0.3s ease;
}

.virtual-scroll-container {
  height: 400px;
  overflow-y: auto;
  contain: strict;
}

.virtual-scroll-spacer {
  height: var(--spacer-height, 0);
}

.productos-grid .producto-item {
  contain: layout style paint;
}

.searching .producto-item {
  transition: opacity 0.2s ease;
}

.searching .producto-item.hidden {
  opacity: 0.3;
  pointer-events: none;
}

.preload-next-page {
  position: absolute;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.producto-imagen,
.producto-imagen img {
  background-color: #ffffff !important;
}
.nav-link-large {
  font-size: 1.1rem; /* aumenta el tamaño del texto */
  padding: 0.5rem 1rem;
}

.nav-link-large i {
  font-size: 1.2rem; /* también agranda el ícono */
}
/* Estilos para las redes sociales */
.social-media-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem; /* Aumenté un poco el espaciado */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-wrap: wrap;
    width: 220px;
}

.footer-content-row {
    position: relative;
    min-height: 80px;
}

.social-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.social-icon {
    width: 45px; /* ← NUEVO TAMAÑO PARA PC */
    height: 45px; /* ← NUEVO TAMAÑO PARA PC */
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    padding: 0;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: 1;
}

.social-link:hover .social-icon::before {
    opacity: 1;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

/* Animación de ola para TODOS los iconos */
.instagram-link .social-icon {
    animation: instagramWave 2.5s infinite;
}

.whatsapp-link .social-icon {
    animation: whatsappWave 2s infinite;
}

.facebook-link .social-icon {
    animation: facebookWave 2.5s infinite;
}

/* Keyframes para Instagram */
@keyframes instagramWave {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgb(255, 255, 255);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(225, 48, 108, 0);
    }
}

/* Keyframes para WhatsApp */
@keyframes whatsappWave {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgb(255, 255, 255);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }
}

/* Keyframes para Facebook */
@keyframes facebookWave {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgb(255, 255, 255);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(24, 119, 242, 0);
    }
}

/* Efectos hover específicos */
.instagram-link:hover .social-icon {
    box-shadow: 0 0 12px rgb(255, 255, 255);
    transform: rotate(3deg);
    animation: none; /* Pausa la animación al hacer hover */
}

.whatsapp-link:hover .social-icon {
    box-shadow: 0 0 12px rgb(255, 255, 255);
    transform: rotate(-3deg);
    animation: none; /* Pausa la animación al hacer hover */
}

.facebook-link:hover .social-icon {
    box-shadow: 0 0 12px rgb(255, 255, 255);
    transform: rotate(2deg);
    animation: none; /* Pausa la animación al hacer hover */
}

/* Tooltip personalizado */
.social-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

/* Responsive */
@media (max-width: 768px) {
    .social-media-container {
        gap: 1rem;
        position: static; /* ← Mantén esto */
        transform: none; /* ← Mantén esto */
        margin: 1rem 0;
        justify-content: center; /* ← CAMBIA ESTE */
        width: 100%; /* ← AÑADE ESTA LÍNEA */
        left: auto; /* ← AÑADE ESTA LÍNEA */
        top: auto; /* ← AÑADE ESTA LÍNEA */
    }
    
    .footer-content-row {
        min-height: auto;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-tooltip {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .social-media-container {
        gap: 0.75rem;
        margin: 0.75rem 0;
        justify-content: center; /* ← AÑADE ESTA LÍNEA */
        width: 100%; /* ← AÑADE ESTA LÍNEA */
        left: auto; /* ← AÑADE ESTA LÍNEA */
        top: auto; /* ← AÑADE ESTA LÍNEA */
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
    }
    
    .social-tooltip {
        display: none;
    }
}
/* Asegurar que solo se muestre uno en cada dispositivo */
@media (min-width: 992px) {
    .navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .nav-link-large {
        display: none !important;
    }
}


.quality-badge {
    animation: quality-shine 2s ease-in-out infinite;
    font-size: 1.2rem;
}

.delivery-truck {
    animation: truck-move 5s linear infinite;
    color: #ffffff;
}

@keyframes location-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(0, 123, 255, 0.5); }
}

@keyframes quality-shine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
}

@keyframes truck-move {
    0% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(-2px); }
}

.footer-right-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente */
    text-align: center;
}

.footer-call-action {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mantén tu CSS existente */
.fresh-stock {
    animation: box-shake 3s ease-in-out infinite;
    font-size: 1.1rem;
}

.location-highlight {
    animation: location-pulse 4s ease-in-out infinite;
    font-weight: 600;
    color: #ffffff;
}

@keyframes box-shake {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@media (max-width: 768px) {
    .footer-right-content {
        align-items: center;
        text-align: center;
    }
}

/* Estructura del lado izquierdo */
.footer-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Opción 1: Productos danzantes */
.footer-products-showcase {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dancing-mug, .dancing-keychain, .dancing-thermos {
    display: inline-block;
    font-size: 1.1rem;
}

.dancing-mug {
    animation: mug-dance 2s ease-in-out infinite;
}

.dancing-keychain {
    animation: keychain-swing 2.5s ease-in-out infinite 0.3s;
}

.dancing-thermos {
    animation: thermos-bounce 3s ease-in-out infinite 0.6s;
}

/* Opción 2: Motivacional */
.footer-motivation {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.star-shine {
    animation: star-twinkle 2s ease-in-out infinite;
    font-size: 1.1rem;
}

.heart-beat {
    animation: heart-pulse 1.5s ease-in-out infinite;
    font-size: 1.1rem;
}

/* Opción 3: Stats */
.footer-stats {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.counting-box {
    animation: count-bounce 3s ease-in-out infinite;
    font-size: 1.1rem;
}

.growth-arrow {
    animation: arrow-rise 2s ease-in-out infinite;
    font-size: 1.1rem;
}

/* Keyframes */
@keyframes mug-dance {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(-5deg) translateY(-2px); }
    75% { transform: rotate(5deg) translateY(-1px); }
}

@keyframes keychain-swing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes thermos-bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes star-twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes count-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes arrow-rise {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-left-content {
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }
}
















/* Estilos del carrito */
.cart-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1050;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: cart-pulse 2s infinite;
}

.cart-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounce 0.5s ease;
}

@keyframes cart-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(40, 167, 69, 0.8); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: scale(1); }
    40%, 43% { transform: scale(1.2); }
}

/* Modal del carrito */
.cart-modal .modal-dialog {
    max-width: 800px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.cart-item-info h6 {
    margin-bottom: 0.25rem;
    color: #495057;
    font-weight: 600;
}

.cart-item-ref {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #0202023d;
    background: rgba(255, 255, 255, 0.521);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
}

.quantity-btn:hover {
    background: #0fff6b79;
    color: rgb(14, 14, 14);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.521);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-summary {
    background: linear-gradient(135deg, #000000, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    margin-bottom: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.unit-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.unit-option {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.unit-option.active {
    border-color: #007bff00;
    background: #007bff00;
    color: white;
}

.unit-option:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.quote-preview {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    font-family: 'Arial', sans-serif;
}

.quote-header {
    text-align: center;
    border-bottom: 2px solid #007bff00;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.quote-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 10px;
}

.quote-items table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.quote-items th,
.quote-items td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.quote-items th {
    background: #f8f9fa;
    font-weight: 600;
}

.quote-footer {
    border-top: 2px solid #007bff00;
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .cart-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        right: 15px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
    }
    
    .quantity-input {
        width: 50px;
    }
}

/* Estilos del carrito en el header */
.nav-cart-button {
     background: linear-gradient(270deg, rgb(0, 255, 98), #07ddc1);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    /* Solo overflow visible, sin márgenes extras */
    overflow: visible !important;
    z-index: 1;
}

.nav-cart-button::before {
    content: "" !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    border-radius: 28px !important;
    background: conic-gradient(from 0deg,
            #00ffff,
            #00ffff33 25%,
            transparent 50%,
            #00ffff33 75%,
            #00ffff) !important;
    animation: spinBorder 3s linear infinite !important;
    z-index: -1 !important;
    filter: blur(3px) !important;
    pointer-events: none !important;
}

.nav-cart-button > * {
    position: relative;
    z-index: 2;
}

.nav-cart-button:hover {
    background: linear-gradient(270deg, #28a745, #20c997, #28a745) !important;
    background-size: 600% 600% !important;
    animation: gradientMove 10s ease infinite !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.6) !important;
    color: white !important;
}

.cart-count-header:hover {
    background: #dc3545 !important; /* Mantener el color original */
    transform: none !important;     /* Sin transformaciones */
    box-shadow: none !important;    /* Sin sombras */
}

/* Asegurar que solo el botón sea clicable */
.nav-cart-button:before,
.nav-cart-button:after {
    display: none !important; /* Eliminar pseudo-elementos que causen efectos */
}

.cart-count-header {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    z-index: 10; /* Aumentado para estar por encima del efecto */
    animation: bounce 0.5s ease;
    pointer-events: none !important;
    box-shadow: none !important;
}

.cart-count-hamburger {
    position: static;
    display: inline-flex;
    margin-left: 0.5rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}
/* Contador móvil */
.cart-count-mobile {
    position: static;
    display: inline-flex;
    margin-left: 0.5rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: scale(1); }
    40%, 43% { transform: scale(1.2); }
}

/* Modal del carrito */
.cart-modal .modal-dialog {
    max-width: 900px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.cart-item-info h6 {
    margin-bottom: 0.25rem;
    color: #495057;
    font-weight: 600;
}

.cart-item-ref {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: #f0f0f0;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid #ffffff00;
    border-radius: 8px;
    padding: 0.25rem;
    color: #000000;
    background: #ffffff5e;
    font-weight: 600;
    font-size: 1rem;
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-radius: 15px !important;
    padding: 0.75rem !important; /* Reducido de 1.5rem */
    margin: 0 !important; /* Sin margen */
    position: sticky !important;
    bottom: 0 !important;
    z-index: 999 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
}

.cart-total {
    font-size: 1.25rem !important; /* Reducido de 1.5rem */
    font-weight: 700 !important;
    color: #28a745 !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important; /* Reducido de 1rem */
    line-height: 1.2 !important; /* Más compacto */
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.unit-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.unit-option {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.unit-option.active {
    border-color: #007bff00;
    background: #007bff6e;
    color: rgb(0, 0, 0);
}

.unit-option:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    color: white;
    padding: 0.23rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto !important;
        min-width: 120px !important;
        max-width: 200px !important;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.quote-preview {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    font-family: 'Arial', sans-serif;
}

.quote-header {
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
#downloadQuoteBtn {
    padding: 0.1rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    width: auto !important;
        min-width: 120px !important;
        max-width: 200px !important;
}

#downloadQuoteBtn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        background: transparent !important;
        border: 2px solid #25d366 !important;
        color: #25d366 !important;
        padding: 0.1rem 1rem !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        
    }

    .whatsapp-btn:hover {
        background: #25d366 !important;
        color: white !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
    }
    
    #downloadQuoteBtn {
         font-size: 0.9rem !important;
        padding: 0.1rem 1rem !important;
    }
    
    .whatsapp-btn i,
    #downloadQuoteBtn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    #downloadQuoteBtn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    /* En móviles muy pequeños, solo mostrar iconos */
    .whatsapp-btn span,
    #downloadQuoteBtn span {
        display: none !important;
    }
}
.quote-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 10px;
}



/* Footer fijo para el modal del carrito */
.cart-modal .modal-content {
    display: flex !important;
    flex-direction: column !important;
    height: 80vh !important;
    max-height: 80vh !important;
}

.cart-modal .modal-header {
    flex-shrink: 0 !important;
}

.cart-modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-bottom: 1rem !important;
}

.cart-modal .modal-footer {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    background: white !important;
    border-top: 2px solid #dee2e6 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
}

/* Para móviles */
@media (max-width: 768px) {
    .cart-modal .modal-content {
        height: 90vh !important;
        max-height: 90vh !important;
    }
}





.quote-items table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.quote-items th,
.quote-items td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.quote-items th {
    background: #f8f9fa;
    font-weight: 600;
}

.quote-footer {
    border-top: 2px solid #007bff;
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 1199px) {
    .nav-cart-button span:not(.cart-count-header) {
        display: none;
    }
    
    .nav-cart-button {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 991px) {
    .cart-count-mobile {
    display: inline-flex !important;
}
}

/* Botón de carrito en móvil con color */
/* Botón de carrito en móvil con color - versión compacta */
@media (max-width: 991px) {
    .navbar-collapse .nav-link[data-bs-target="#cartModal"] {
        background: linear-gradient(270deg, rgb(0, 255, 98), #07ddc1) !important;
        background-size: 400% 400% !important;
        animation: gradientMove 10s ease infinite !important;
        border-radius: 20px !important;
        padding: 0.4rem 0.8rem !important;
        margin: 0.25rem auto !important;
        color: white !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
        display: inline-block !important;
        width: auto !important;
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    .navbar-collapse .nav-link[data-bs-target="#cartModal"]:hover {
        background: linear-gradient(270deg, #28a745, #20c997, #28a745) !important;
        background-size: 600% 600% !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.6) !important;
        color: white !important;
    }
}

@media (max-width: 768px) {
    .cart-item .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4,
    .cart-item .col-md-3,
    .cart-item .col-md-2,
    .cart-item .col-md-1 {
        flex: none;
        width: 100%;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        float: left;
        margin-right: 1rem;
    }
    
    .cart-item-info {
        overflow: hidden;
    }
    
    .quantity-controls {
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .whatsapp-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .unit-selector {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .unit-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .cart-modal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .cart-item {
        padding: 0.75rem 0;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .cart-total {
        font-size: 1.25rem;
    }
}

/* Animaciones suaves */
.cart-item {
    animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mejoras para la cotización */
.quote-preview {
    font-size: 0.9rem;
    line-height: 1.4;
}

.quote-items table {
    font-size: 0.85rem;
}

.quote-items th {
    background: #007bff;
    color: white;
}

.quote-header h3 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Loading state para el botón de descarga */
.downloading {
    position: relative;
    color: transparent !important;
}

.downloading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Efectos hover mejorados para el navbar */
.nav-cart-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive - mantener efectos en móvil pero más suaves */
@media (max-width: 768px) {
    .nav-cart-button::before {
        animation-duration: 4s; /* Más lento en móvil */
        filter: blur(2px); /* Menos difuminado */
    }
}

@keyframes cart-has-items {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    50% { 
        box-shadow: 0 2px 15px rgba(40, 167, 69, 0.6);
    }
}

/* Espaciado del navbar */
.navbar .container > div:last-child {
    gap: 1rem;
}
.navbar .d-lg-flex > * {
    position: relative; /* Asegurar contexto de apilamiento */
}
.navbar .d-lg-flex {
    align-items: center;
    overflow: visible !important; /* Permitir overflow */
}

/* Efecto hover sutil para administrar */
.nav-link-large:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}
.cart-container {
    position: relative;
    display: inline-block;
}
/* Alineación perfecta en desktop */
@media (min-width: 992px) {
    .navbar .d-lg-flex {
        margin-left: auto;
    }
}

/* Mejora para el responsive */
@media (max-width: 1200px) {
    .navbar-brand span {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .navbar-brand span {
        font-size: 0.9rem;
    }
}






/* Selectores de unidad compactos (stack vertical) */
.unit-selector-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.unit-option-compact {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* ← ESTADO INACTIVO */
    border: 2px solid #e9ecef;    /* Borde inactivo */
    background: rgba(0, 123, 255, 0.1);
    color: #6c757d;              /* Texto inactivo */
}


.unit-option-compact.active {
    border-color: 2px solid #e9ecef00; 
    background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
    color: #ffffff !important;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); 
    
}

.unit-option-compact:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    
}

.unit-option-compact.active:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    
}

.btn-details {
    width: 60px; /* ← AUMENTADO de 45px a 60px */
    height: 68px; /* Altura total para ocupar el mismo espacio que los dos selectores */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
    border: 2px solid #00000000;    /* Color del borde */
    color: #495057;  
}

.btn-details:hover {
    transform: scale(1.05);
    background: #e9ecef;          /* Color de fondo al hover */
    border-color: #495057;        /* Color del borde al hover */
    color: #212529;   
}

.btn-details .fas.fa-eye {
    color: #ffffff !important;   /* Amarillo dorado */
}

.btn-details:hover .fas.fa-eye {
    color: #ffffff !important;   /* Gris oscuro al hover */
}
.btn-details i {
    font-size: 1.4rem !important;  /* Hace el ojo más grande */
}

/* Controles de cantidad en línea */
.quantity-controls-inline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.quantity-controls-inline .quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(0, 0, 0, 0);
    background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
    color: #007bff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quantity-controls-inline .quantity-btn:hover {
    background: #00000048;
    color: white;
    transform: scale(1.1);
}

.quantity-controls-inline .quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 6px;
    color: rgb(0, 0, 0);
    padding: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .unit-option-compact {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        height: 28px; /* ← ALTURA FIJA para móvil */
    }
    
    .btn-details {
        width: 50px; /* ← AUMENTADO de 40px a 50px */
        height: 60px;
        font-size: 1rem;
    }
    
    .quantity-controls-inline .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .quantity-controls-inline .quantity-input {
        width: 45px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .unit-option-compact {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
        height: 25px; /* ← ALTURA FIJA para móvil pequeño */
    }
    
    .btn-details {
        width: 45px; /* ← AUMENTADO de 35px a 45px */
        height: 54px;
        font-size: 0.9rem;
    }
    
    .quantity-controls-inline .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .quantity-controls-inline .quantity-input {
        width: 40px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        height: 28px;
    }
    
    .add-to-cart-btn i {
        font-size: 0.7rem;
    }
}







.add-to-cart-btn {
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 35px;
    white-space: nowrap;
    
    /* ← ESTADO NORMAL - CAMBIA ESTOS COLORES */
    background: linear-gradient(45deg, #5a6fd8, #6a4c93) !important;
    color: white;                                           /* Color del texto */
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);         /* Sombra */
}

.add-to-cart-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    color: white;
    
    /* ← ESTADO HOVER - CAMBIA ESTOS COLORES */
    background: linear-gradient(135deg, #1e7e34, #17a2b8);  /* Fondo al hover */
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);         /* Sombra al hover */
}

.add-to-cart-btn:hover:before {
    left: 100%;
}



/* Estructura del renglón de información */
.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Columna izquierda: Precios */
.pricing-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

/* Columna derecha: Meta info */
.meta-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

/* Estilos de los precios (columna izquierda) */
.unit-price,
.box-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.unit-price {
    color: #28a745;
}

.box-price {
    color: #007bff;
}

.unit-price small,
.box-price small {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.75rem;
}

.unit-price i,
.box-price i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Estilos de categoría y referencia (columna derecha) */
.category-tag {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    align-self: flex-end;
}

.reference-tag {
    color: #6c757d;
    font-size: 0.65rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reference-tag i {
    font-size: 0.6rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .product-info-row {
        gap: 0.5rem;
    }
    
    .unit-price,
    .box-price {
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .unit-price small,
    .box-price small {
        font-size: 0.7rem;
    }
    
    .category-tag {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .reference-tag {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .product-info-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-column {
        align-items: flex-start;
        text-align: left;
    }
    
    .category-tag {
        align-self: flex-start;
    }
}

.product-info-row {
    margin-bottom: 0.15rem !important; /* ← El !important fuerza el cambio */
}

.action-button {
    margin-top: 0 !important; /* ← Elimina margen superior de los botones */
}











/* ESTILOS PARA DESCARGA - VERSIÓN CORREGIDA */
#quoteForDownload {
    background: white !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    font-family: 'Arial', sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #000 !important;
    position: relative !important;
    overflow: visible !important;
    min-width: 750px !important;
}

#quoteForDownload .quote-header {
    text-align: center !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

#quoteForDownload .quote-logo {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 0.5rem !important;
    border-radius: 8px !important;
    display: block !important;
}

#quoteForDownload .quote-title {
    color: #007bff !important;
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

#quoteForDownload .quote-subtitle {
    color: #6c757d !important;
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

#quoteForDownload .quote-date {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
}

#quoteForDownload .quote-items {
    margin: 1rem 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

#quoteForDownload .quote-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.85rem !important;
    background: white !important;
    table-layout: fixed !important;
    min-width: 780px !important;
}

#quoteForDownload .quote-table th {
    background: #007bff !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    padding: 0.6rem 0.4rem !important;
    border: 1px solid #0056b3 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

#quoteForDownload .quote-table td {
    padding: 0.6rem 0.4rem !important;
    border: 1px solid #dee2e6 !important;
    vertical-align: top !important;
    color: #000 !important;
    background: #ffffff !important;
}

#quoteForDownload .quote-table th:nth-child(1),
#quoteForDownload .quote-table td:nth-child(1) {
    width: 45% !important;
}

#quoteForDownload .quote-table th:nth-child(2),
#quoteForDownload .quote-table td:nth-child(2) {
    width: 15% !important;
}

#quoteForDownload .quote-table th:nth-child(3),
#quoteForDownload .quote-table td:nth-child(3) {
    width: 15% !important;
}

#quoteForDownload .quote-table th:nth-child(4),
#quoteForDownload .quote-table td:nth-child(4) {
    width: 12% !important;
}

#quoteForDownload .quote-table th:nth-child(5),
#quoteForDownload .quote-table td:nth-child(5) {
    width: 13% !important;
}

#quoteForDownload .product-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

#quoteForDownload .product-name-text {
    font-weight: bold !important;
    font-size: 0.85em !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 0.2rem !important;
    color: #000000 !important;
}

#quoteForDownload .product-type-info {
    font-size: 0.7em !important;
    color: #666 !important;
    font-style: italic !important;
}

#quoteForDownload .product-ref {
    text-align: center !important;
    font-size: 0.8em !important;
    white-space: nowrap !important;
}

#quoteForDownload .product-quantity {
    text-align: center !important;
}

#quoteForDownload .quantity-main {
    font-weight: bold !important;
    font-size: 0.85em !important;
}

#quoteForDownload .quantity-detail {
    font-size: 0.7em !important;
    color: #666 !important;
    margin-top: 0.2rem !important;
}

#quoteForDownload .product-price {
    text-align: right !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

#quoteForDownload .product-total {
    text-align: right !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

#quoteForDownload .total-row {
    background: #f8f9fa !important;
    border-top: 2px solid #007bff !important;
}

#quoteForDownload .total-label {
    text-align: right !important;
    font-weight: bold !important;
    color: #000 !important;
    padding: 0.8rem 0.4rem !important;
}

#quoteForDownload .total-amount {
    color: #28a745 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    text-align: right !important;
    padding: 0.8rem 0.4rem !important;
}

#quoteForDownload .quote-footer {
    border-top: 2px solid #007bff !important;
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
    text-align: center !important;
    page-break-inside: avoid !important;
    display: block !important;
    visibility: visible !important;
}

#quoteForDownload .footer-thanks {
    margin: 0 0 0.5rem 0 !important;
    color: #007bff !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}

#quoteForDownload .footer-slogan {
    margin: 0 !important;
    color: #6c757d !important;
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {
    #quoteForDownload {
        min-width: 580px !important;
        padding: 1rem !important;
    }
    
    #quoteForDownload .quote-table {
        min-width: 560px !important;
    }
    
    #quoteForDownload .quote-table th:nth-child(1),
    #quoteForDownload .quote-table td:nth-child(1) {
        width: 40% !important;
    }

    #quoteForDownload .quote-table th:nth-child(2),
    #quoteForDownload .quote-table td:nth-child(2) {
        width: 18% !important;
    }

    #quoteForDownload .quote-table th:nth-child(3),
    #quoteForDownload .quote-table td:nth-child(3) {
        width: 12% !important;
    }

    #quoteForDownload .quote-table th:nth-child(4),
    #quoteForDownload .quote-table td:nth-child(4) {
        width: 15% !important;
    }

    #quoteForDownload .quote-table th:nth-child(5),
    #quoteForDownload .quote-table td:nth-child(5) {
        width: 15% !important;
    }
}

#quoteForDownload,
#quoteForDownload * {
    -webkit-print-color-adjust: exact !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Contador en menú hamburguesa - reutilizar estilos existentes */
#cartCountMobile2 {
    position: static;
    display: inline-flex;
    margin-left: 0.5rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Contador en menú hamburguesa */
#cartCountMobileMenu {
    position: static !important;
    display: inline-flex !important;
    margin-left: 0.5rem !important;
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    animation: bounce 0.5s ease !important;
}

/* Contador en el botón hamburguesa */
.cart-count-toggler {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    border: 2px solid white !important;
    z-index: 10 !important;
    animation: bounce 0.5s ease !important;
}

.navbar-toggler {
    position: relative !important;
}


/* Imagen de fondo más grande en móvil */
@media (max-width: 768px) {
    body {
        background-size: cover !important;  /* Cubre toda la pantalla */
    }
}

@media (max-width: 480px) {
    body {
        background-size: 90% !important;  /* Aún más grande en móviles pequeños */
    }
}

#quoteForDownload,
#quoteForDownload * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#quoteForDownload .quote-table,
#quoteForDownload .quote-table * {
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

#quoteForDownload,
#quoteForDownload * {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

#quoteForDownload {
    background: #ffffff !important;
    background-image: none !important;
}

#quoteForDownload .quote-table th {
    background: #007bff !important;
    background-image: none !important;
    color: #ffffff !important;
}

#quoteForDownload .quote-table td {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

#quoteForDownload {
    min-width: 750px !important;
    padding-bottom: 2rem !important;
}

#quoteForDownload .quote-table {
    width: 100% !important;
    table-layout: fixed !important;
}

#quoteForDownload .quote-footer {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 2px solid #007bff !important;
    display: block !important;
    visibility: visible !important;
}

@media (min-width: 769px) {
    #quoteForDownload .quote-table th:nth-child(1),
    #quoteForDownload .quote-table td:nth-child(1) {
        width: 48% !important;
    }

    #quoteForDownload .quote-table th:nth-child(2),
    #quoteForDownload .quote-table td:nth-child(2) {
        width: 15% !important;
    }

    #quoteForDownload .quote-table th:nth-child(3),
    #quoteForDownload .quote-table td:nth-child(3) {
        width: 12% !important;
    }

    #quoteForDownload .quote-table th:nth-child(4),
    #quoteForDownload .quote-table td:nth-child(4) {
        width: 12% !important;
    }

    #quoteForDownload .quote-table th:nth-child(5),
    #quoteForDownload .quote-table td:nth-child(5) {
        width: 13% !important;
    }
    
    #quoteForDownload {
        min-width: 800px !important;
    }
    
    #quoteForDownload .quote-table {
        min-width: 780px !important;
    }
}

@media (max-width: 768px) {
    #quoteForDownload .quote-table th:nth-child(1),
    #quoteForDownload .quote-table td:nth-child(1) {
        width: 40% !important;
    }

    #quoteForDownload .quote-table th:nth-child(2),
    #quoteForDownload .quote-table td:nth-child(2) {
        width: 18% !important;
    }

    #quoteForDownload .quote-table th:nth-child(3),
    #quoteForDownload .quote-table td:nth-child(3) {
        width: 12% !important;
    }

    #quoteForDownload .quote-table th:nth-child(4),
    #quoteForDownload .quote-table td:nth-child(4) {
        width: 15% !important;
    }

    #quoteForDownload .quote-table th:nth-child(5),
    #quoteForDownload .quote-table td:nth-child(5) {
        width: 15% !important;
    }
    
    #quoteForDownload {
        min-width: 580px !important;
        padding-bottom: 3rem !important;
    }
    
    #quoteForDownload .quote-table {
        min-width: 560px !important;
    }
}












/* ESTILOS EXCLUSIVOS PARA MOSTRAR EN MODAL - NO AFECTA DESCARGA */
.quote-preview-display {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Arial', sans-serif;
    color: #000;
    font-size: 0.7rem;
    max-width: 100%;
    overflow: visible;
}

.quote-header-display {
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.quote-logo-display {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.3rem;
    border-radius: 6px;
    display: block;
}

.quote-title-display {
    color: #007bff;
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    font-weight: bold;
}

.quote-subtitle-display {
    color: #6c757d;
    margin: 0 0 0.2rem 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.quote-date-display {
    margin: 0;
    font-size: 0.7rem;
    color: #495057;
}

.quote-items-display {
    margin: 0.5rem 0;
    width: 100%;
}

.quote-table-display {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
    background: white;
    table-layout: fixed;
}

.quote-table-display th {
    background: #007bff;
    color: white;
    font-weight: 600;
    font-size: 0.6rem;
    text-align: center;
    padding: 0.4rem 0.2rem;
    border: 1px solid #0056b3;
    vertical-align: middle;
    word-wrap: break-word;
}

.quote-table-display td {
    padding: 0.4rem 0.2rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
    color: #000;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-table-display th:nth-child(1),
.quote-table-display td:nth-child(1) {
    width: 45%;
}

.quote-table-display th:nth-child(2),
.quote-table-display td:nth-child(2) {
    width: 15%;
}

.quote-table-display th:nth-child(3),
.quote-table-display td:nth-child(3) {
    width: 15%;
}

.quote-table-display th:nth-child(4),
.quote-table-display td:nth-child(4) {
    width: 12%;
}

.quote-table-display th:nth-child(5),
.quote-table-display td:nth-child(5) {
    width: 13%;
}

.product-name-display {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-name-text-display {
    font-weight: bold;
    font-size: 0.6rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 0.1rem;
}

.product-type-info-display {
    font-size: 0.5rem;
    color: #666;
    font-style: italic;
    line-height: 1.1;
}

.product-ref-display {
    text-align: center;
    font-size: 0.6rem;
    word-wrap: break-word;
}

.product-quantity-display {
    text-align: center;
}

.quantity-main-display {
    font-weight: bold;
    font-size: 0.6rem;
    line-height: 1.1;
}

.quantity-detail-display {
    font-size: 0.5rem;
    color: #666;
    margin-top: 0.05rem;
    line-height: 1.1;
}

.product-price-display {
    text-align: right;
    font-weight: 600;
    font-size: 0.6rem;
    word-wrap: break-word;
}

.product-total-display {
    text-align: right;
    font-weight: bold;
    font-size: 0.6rem;
    word-wrap: break-word;
}

.total-row-display {
    background: #f8f9fa;
    border-top: 2px solid #007bff;
}

.total-label-display {
    text-align: right;
    font-weight: bold;
    color: #000;
    padding: 0.5rem 0.2rem;
    font-size: 0.65rem;
}

.total-amount-display {
    color: #28a745;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: right;
    padding: 0.5rem 0.2rem;
}

.quote-footer-display {
    border-top: 2px solid #007bff;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
    text-align: center;
}

.quote-footer-display .footer-thanks-display {
    margin: 0 0 0.2rem 0;
    color: #007bff;
    font-weight: bold;
    font-size: 0.7rem;
}

.quote-footer-display .footer-slogan-display {
    margin: 0;
    color: #6c757d;
    font-size: 0.65rem;
}

/* RESPONSIVE PARA PREVISUALIZACIÓN */
@media (max-width: 768px) {
    .quote-preview-display {
        padding: 0.75rem;
        font-size: 0.65rem;
    }
    
    .quote-logo-display {
        width: 35px;
        height: 35px;
    }
    
    .quote-title-display {
        font-size: 0.9rem;
    }
    
    .quote-subtitle-display {
        font-size: 0.75rem;
    }
    
    .quote-table-display {
        font-size: 0.55rem;
    }
    
    .quote-table-display th {
        font-size: 0.5rem;
        padding: 0.3rem 0.15rem;
    }
    
    .quote-table-display td {
        padding: 0.3rem 0.15rem;
    }
    
    .product-name-text-display {
        font-size: 0.5rem;
        line-height: 1.0;
    }
    
    .product-type-info-display {
        font-size: 0.45rem;
    }
    
    .product-ref-display,
    .quantity-main-display,
    .product-price-display,
    .product-total-display {
        font-size: 0.5rem;
    }
    
    .quantity-detail-display {
        font-size: 0.4rem;
    }
    
    .total-label-display {
        font-size: 0.55rem;
    }
    
    .total-amount-display {
        font-size: 0.6rem;
    }
    
    .footer-thanks-display {
        font-size: 0.6rem;
    }
    
    .footer-slogan-display {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .quote-preview-display {
        padding: 0.5rem;
        font-size: 0.6rem;
    }
    
    .quote-table-display {
        font-size: 0.5rem;
    }
    
    .quote-table-display th {
        font-size: 0.45rem;
        padding: 0.25rem 0.1rem;
    }
    
    .quote-table-display td {
        padding: 0.25rem 0.1rem;
    }
    
    .product-name-text-display {
        font-size: 0.45rem;
        line-height: 0.9;
    }
    
    .product-type-info-display {
        font-size: 0.4rem;
    }
    
    .product-ref-display,
    .quantity-main-display,
    .product-price-display,
    .product-total-display {
        font-size: 0.45rem;
    }
    
    .quantity-detail-display {
        font-size: 0.35rem;
    }
}
















/* ========================================
   ESTILOS EXCLUSIVOS PARA VISUALIZACIÓN PREVIA 
   (NO AFECTA LA DESCARGA)
   ======================================== */

.quote-preview-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    height: auto !important; /* Altura automática */
    min-height: auto !important; /* Sin altura mínima forzada */
}

.quote-preview-display {
    height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quote-footer-display {
    margin-top: 1rem !important; /* Reducir margen superior */
    padding-top: 0.75rem !important;
}


.quote-logo-display {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
    border-radius: 8px;
    display: block;
}

.quote-title-display {
    color: #007bff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.quote-subtitle-display {
    color: #6c757d;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.quote-date-display {
    margin: 0;
    font-size: 0.85rem;
    color: #495057;
}

.quote-items-display {
    margin: 1rem 0;
    width: 100%;
}

.quote-table-display {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    table-layout: fixed;
}

.quote-table-display th {
    background: #007bff;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.6rem 0.3rem;
    border: 1px solid #0056b3;
    vertical-align: middle;
    word-wrap: break-word;
}

.quote-table-display td {
    padding: 0.6rem 0.3rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
    color: #000;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Distribución fija de columnas */
.quote-table-display th:nth-child(1),
.quote-table-display td:nth-child(1) {
    width: 45%;
}

.quote-table-display th:nth-child(2),
.quote-table-display td:nth-child(2) {
    width: 15%;
}

.quote-table-display th:nth-child(3),
.quote-table-display td:nth-child(3) {
    width: 15%;
}

.quote-table-display th:nth-child(4),
.quote-table-display td:nth-child(4) {
    width: 12%;
}

.quote-table-display th:nth-child(5),
.quote-table-display td:nth-child(5) {
    width: 13%;
}

.product-name-display {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-name-text-display {
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.3rem;
}

.product-type-info-display {
    font-size: 0.65rem;
    color: #666;
    font-style: italic;
    line-height: 1.1;
}

.product-ref-display {
    text-align: center;
    font-size: 0.7rem;
    word-wrap: break-word;
}

.product-quantity-display {
    text-align: center;
}

.quantity-main-display {
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1.1;
}

.quantity-detail-display {
    font-size: 0.6rem;
    color: #666;
    margin-top: 0.2rem;
    line-height: 1.1;
}

.product-price-display {
    text-align: right;
    font-weight: 600;
    font-size: 0.7rem;
    word-wrap: break-word;
}

.product-total-display {
    text-align: right;
    font-weight: bold;
    font-size: 0.7rem;
    word-wrap: break-word;
}

.total-row-display {
    background: #f8f9fa;
    border-top: 2px solid #007bff;
}

.total-label-display {
    text-align: right;
    font-weight: bold;
    color: #000;
    padding: 0.8rem 0.3rem;
    font-size: 0.75rem;
}

.total-amount-display {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: right;
    padding: 0.8rem 0.3rem;
}

.quote-footer-display {
    border-top: 2px solid #007bff;
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.footer-thanks-display {
    margin: 0 0 0.5rem 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1rem;
}

.footer-slogan-display {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* RESPONSIVE PARA MÓVILES - Hacer todo más pequeño pero visible */
@media (max-width: 768px) {
    .quote-preview-container {
        padding: 0.25rem;
        max-height: 65vh;
    }
    
    .quote-footer-display {
        margin-top: 0.75rem !important;
        padding-top: 0.5rem !important;
    }
    
    .quote-table-display {
        font-size: 0.55rem;
    }
    
    .quote-table-display th {
        font-size: 0.5rem;
        padding: 0.4rem 0.2rem;
    }
    
    .quote-table-display td {
        padding: 0.4rem 0.2rem;
    }
    
    .product-name-text-display {
        font-size: 0.55rem;
        line-height: 1.1;
    }
    
    .product-type-info-display {
        font-size: 0.45rem;
    }
    
    .product-ref-display {
        font-size: 0.5rem;
    }
    
    .quantity-main-display {
        font-size: 0.55rem;
    }
    
    .quantity-detail-display {
        font-size: 0.45rem;
    }
    
    .product-price-display,
    .product-total-display {
        font-size: 0.5rem;
    }
    
    .total-label-display {
        font-size: 0.55rem;
        padding: 0.6rem 0.2rem;
    }
    
    .total-amount-display {
        font-size: 0.7rem;
        padding: 0.6rem 0.2rem;
    }
    
    .quote-logo-display {
        width: 35px;
        height: 35px;
    }
    
    .quote-title-display {
        font-size: 0.9rem;
    }
    
    .quote-subtitle-display {
        font-size: 0.75rem;
    }
    
    .quote-date-display {
        font-size: 0.65rem;
    }
    
    .footer-thanks-display {
        font-size: 0.75rem;
    }
    
    .footer-slogan-display {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .quote-preview-container {
        padding: 0.1rem;
        max-height: 60vh;
    }
    
    .quote-preview-display {
        padding: 0.3rem;
        font-size: 0.55rem;
    }
    
    .quote-table-display {
        font-size: 0.5rem;
    }
    
    .quote-table-display th {
        font-size: 0.45rem;
        padding: 0.3rem 0.15rem;
    }
    
    .quote-table-display td {
        padding: 0.3rem 0.15rem;
    }
    
    .product-name-text-display {
        font-size: 0.5rem;
        line-height: 1.0;
    }
    
    .product-type-info-display {
        font-size: 0.4rem;
    }
    
    .product-ref-display,
    .quantity-main-display,
    .product-price-display,
    .product-total-display {
        font-size: 0.45rem;
    }
    
    .quantity-detail-display {
        font-size: 0.35rem;
    }
    
    .total-label-display {
        font-size: 0.5rem;
        padding: 0.5rem 0.15rem;
    }
    
    .total-amount-display {
        font-size: 0.6rem;
        padding: 0.5rem 0.15rem;
    }
    
    .quote-logo-display {
        width: 30px;
        height: 30px;
    }
    
    .quote-title-display {
        font-size: 0.8rem;
    }
    
    .quote-subtitle-display {
        font-size: 0.65rem;
    }
    
    .quote-date-display {
        font-size: 0.55rem;
    }
    
    .footer-thanks-display {
        font-size: 0.65rem;
    }
    
    .footer-slogan-display {
        font-size: 0.55rem;
    }
}





/* Solo arreglar el espacio en blanco del modal de previsualización */
#quotePreviewModal .modal-body {
    padding: 0.5rem !important;
}

.quote-preview-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.quote-preview-display {
    flex: 1;
    min-height: 0;
}