﻿/* SASVAL REPUESTOS - ESTILOS OPTIMIZADOS */

/* Z-INDEX HIERARCHY - Jerarquía de capas */
/* 
  1000 = Botones flotantes
  3000 = Navbar sticky
  9998 = Modal backdrop
  9999 = Modal content
*/

/* Modales globales - Por encima del navbar */
.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

body {
  background: #f5f7fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background: #212529;
  position: sticky;
  top: 0;
  z-index: 3000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.navbar-brand {
  font-weight: bold;
  color: #00aaff !important;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  padding: 0.7rem 1.1rem;
  margin-right: 10px;
  border-radius: 2rem;
  transition: background 0.15s, color 0.15s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #00aaff !important;
  background: rgba(13, 110, 253, 0.13);
}

.top-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0 10px 0;
}

.banner-carousel-col {
  min-height: 600px;
}

.banner-carousel-col .carousel,
.banner-carousel-col .carousel-inner,
.banner-carousel-col .carousel-item {
  height: 100%;
  min-height: 600px;
  will-change: transform;
  transform: translateZ(0);
}

.banner-carousel-col .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.banner-search-col {
  min-height: 600px;
}

/* Mejoras de diseño para formulario de búsqueda */
.form-select:focus,
.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Carousel mejorado */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.8s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.2);
}

.carousel-indicators button {
  transition: all 0.3s ease;
}

.carousel-indicators button:hover {
  transform: scale(1.3);
}

@media (min-width: 1200px) {
  .banner-carousel-col,
  .banner-search-col {
    min-height: 650px;
  }
  
  .banner-carousel-col .carousel,
  .banner-carousel-col .carousel-inner,
  .banner-carousel-col .carousel-item {
    min-height: 650px;
  }
}

@media (min-width: 1400px) {
  .banner-carousel-col,
  .banner-search-col {
    min-height: 700px;
  }
  
  .banner-carousel-col .carousel,
  .banner-carousel-col .carousel-inner,
  .banner-carousel-col .carousel-item {
    min-height: 700px;
  }
}

.banner-carousel .carousel-control-prev.position-static,
.banner-carousel .carousel-control-next.position-static {
  background: rgba(220, 220, 220, 0.85);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.banner-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

/* Sección de imagen full width - borde a borde */
.image-section-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.image-section-full img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (min-width: 768px) {
  .image-section-full img {
    height: 400px;
  }
}

@media (min-width: 1200px) {
  .image-section-full img {
    height: 450px;
  }
}

@media (min-width: 1400px) {
  .image-section-full img {
    height: 500px;
  }
}

.banner-full img,
.image-section img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.catalogo, .marcas, .sucursales, .ofertas {
  background: transparent;
  padding: 30px 0 0 0;
}

.catalogo h2, .marcas h2, .sucursales h2 {
  color: #007bff;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.ofertas h2 {
  color: #dc3545 !important;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

/* Mejoras para cards de productos */
.producto-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.2) !important;
}

.producto-img-wrapper {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.producto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.producto-card:hover .producto-img {
  transform: scale(1.1);
}

.producto-badge {
  z-index: 1;
}

.producto-nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-precio {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

.precio-actual {
  font-size: 1.75rem !important;
  color: #667eea !important;
}

.producto-categoria {
  line-height: 1.8;
}

.shadow-hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Paginación moderna */
.pagination-modern .page-link {
  border: none;
  border-radius: 8px;
  margin: 0 4px;
  font-weight: 600;
  color: #667eea;
  transition: all 0.3s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-modern .page-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-modern .page-item.active .page-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-modern .page-item.disabled .page-link {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Botones de producto mejorados */
.btn-ver-detalle {
  border: 2px solid #667eea;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ver-detalle:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-agregar-carrito {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-agregar-carrito:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Estilos para ofertas */
.oferta-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
}

.oferta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(220, 53, 69, 0.25) !important;
  border-color: #dc3545;
}

.oferta-img-wrapper {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
}

.oferta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.oferta-card:hover .oferta-img {
  transform: scale(1.1);
}

.oferta-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.badge-descuento {
  background: linear-gradient(135deg, #ff0844 0%, #ff6b6b 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 8, 68, 0.4);
  display: inline-block;
  animation: pulse-scale 2s infinite;
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.oferta-nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oferta-precio-wrapper {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 12px;
  padding: 15px;
  border: 2px dashed #dc3545;
}

.precio-anterior {
  font-size: 0.9rem;
}

.precio-actual-oferta {
  font-size: 2rem !important;
  color: #dc3545 !important;
  text-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.ahorro-badge .badge {
  font-size: 0.85rem;
  padding: 6px 12px;
  font-weight: 600;
}

.oferta-categoria {
  line-height: 1.8;
}

/* Botones de oferta */
.btn-ver-detalle-oferta {
  border: 2px solid #dc3545;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #dc3545;
}

.btn-ver-detalle-oferta:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: #dc3545;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-agregar-carrito-oferta {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-agregar-carrito-oferta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Paginación de ofertas con tema rojo */
.pagination-ofertas .page-link {
  color: #dc3545;
}

.pagination-ofertas .page-link:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.pagination-ofertas .page-item.active .page-link {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.producto {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 18px 12px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
  margin-bottom: 24px;
}

.producto:hover {
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.13);
}

.producto img {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: block;
}

.producto .mb-1.text-success.fw-bold,
.producto .mb-1.text-danger.fw-bold {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  letter-spacing: 0.5px;
  display: block;
}

.producto .mb-1.text-success.fw-bold {
  color: #198754 !important;
}

.producto .mb-1.text-danger.fw-bold {
  color: #dc3545 !important;
}

.ofertas .card.oferta {
  border: 2px solid #dc3545;
  box-shadow: 0 2px 12px 0 rgba(220,53,69,0.08);
  overflow: hidden;
}

.oferta-strip {
  height: 36px;
  background: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px 0 rgba(220,53,69,0.10);
}

/* ===================================
   SECCIÓN DE MARCAS - DISEÑO MODERNO
   =================================== */

.brands-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.brands-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

/* Badge de Marcas */
.badge-marcas {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Wrapper del Carousel */
.brand-carousel-wrapper {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Card de Marca */
.brand-card {
  height: 100%;
  perspective: 1000px;
}

.brand-card-inner {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.brand-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-card-inner:hover::before {
  opacity: 1;
}

.brand-card-inner:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #667eea;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

/* Logo de Marca */
.brand-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%) contrast(95%);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.brand-card-inner:hover .brand-logo {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.1);
}

/* Overlay con nombre de marca */
.brand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(102, 126, 234, 0.95), transparent);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 3;
}

.brand-card-inner:hover .brand-overlay {
  opacity: 1;
  transform: translateY(0);
}

.brand-name {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  text-align: center;
}

/* Controles del Carousel */
.brand-carousel-control {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.brand-carousel-control:hover {
  opacity: 1;
}

.brand-carousel-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.brand-carousel-control:hover .brand-carousel-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.brand-carousel-icon i {
  color: white;
  font-size: 1.2rem;
}

/* Indicadores del Carousel */
.brand-indicators {
  position: relative;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.brand-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
  opacity: 1;
}

.brand-indicators button.active {
  width: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animación de gradiente */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .brand-carousel-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .brand-card-inner {
    height: 120px;
    padding: 1rem;
  }
  
  .brand-logo {
    max-height: 60px;
  }
  
  .brand-carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .brand-carousel-icon {
    width: 40px;
    height: 40px;
  }
  
  .brand-carousel-icon i {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .brand-card-inner {
    height: 100px;
    padding: 0.8rem;
  }
  
  .brand-logo {
    max-height: 50px;
  }
}

/* Viejos estilos - mantener por compatibilidad */
.brand-section-bg {
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  padding: 1rem 0;
}

#brandCarousel .carousel-control-prev,
#brandCarousel .carousel-control-next {
  width: 42px;
  height: 42px;
  background: rgba(224, 224, 224, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===================================
   SECCIÓN DE SUCURSALES - DISEÑO MODERNO
   =================================== */

.branches-section {
  position: relative;
  background: #ffffff;
}

.branches-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

/* Badge de Sucursales */
.badge-sucursales {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Card de Sucursal */
.sucursal-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.sucursal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
}

/* Header de la Sucursal */
.sucursal-header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sucursal-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.sucursal-icon i {
  font-size: 1.5rem;
  color: white;
}

.sucursal-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Body de la Sucursal */
.sucursal-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sucursal-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sucursal-nombre::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-radius: 2px;
}

/* Información de la Sucursal */
.sucursal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-danger-soft {
  background: rgba(220, 53, 69, 0.1);
}

.bg-success-soft {
  background: rgba(40, 167, 69, 0.1);
}

.bg-info-soft {
  background: rgba(23, 162, 184, 0.1);
}

.bg-warning-soft {
  background: rgba(255, 193, 7, 0.1);
}

.info-icon i {
  font-size: 0.95rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.85rem;
  color: #2c3e50;
  line-height: 1.4;
}

.info-link {
  color: #dc3545;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.info-link:hover {
  color: #c82333;
  text-decoration: underline;
}

/* Acciones de la Sucursal */
.sucursal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-sucursal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-maps {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-maps:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
  color: white;
}

.btn-whatsapp {
  background: white;
  color: #25d366;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Mapa en Footer */
.sucursal-map {
  border-top: 2px solid #f8f9fa;
  overflow: hidden;
}

.sucursal-map iframe {
  display: block;
  transition: all 0.3s ease;
}

.sucursal-card:hover .sucursal-map iframe {
  transform: scale(1.05);
}

/* Footer informativo */
.branches-footer {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.1) 100%);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  font-size: 0.9rem;
  font-weight: 600;
}

.branches-footer i {
  font-size: 1.1rem;
}

/* Responsive para Sucursales */
@media (max-width: 1200px) {
  .row-cols-xl-4 > * {
    width: 33.333333%;
  }
}

@media (max-width: 992px) {
  .row-cols-lg-3 > * {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .sucursal-header {
    padding: 1.2rem;
  }
  
  .sucursal-body {
    padding: 1.2rem;
  }
  
  .sucursal-nombre {
    font-size: 1rem;
  }
  
  .info-value {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .row-cols-sm-2 > * {
    width: 100%;
  }
  
  .sucursal-icon {
    width: 40px;
    height: 40px;
  }
  
  .sucursal-icon i {
    font-size: 1.2rem;
  }
  
  .sucursal-actions {
    flex-direction: column;
  }
}
#brandCarousel .carousel-control-prev:hover,
#brandCarousel .carousel-control-next:hover {
  background: #bdbdbd;
}

.sucursales .row {
  justify-content: center;
  display: flex;
}

.subscribete-section {
  background: #f8f9fa;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
}

.subscribete-section h2 {
  font-size: 2rem;
  font-weight: 600;
}

.subscribete-section .form-control {
  border-radius: 2rem;
  font-size: 1.1rem;
}

.subscribete-section .btn {
  border-radius: 2rem;
  font-size: 1.1rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.social-float {
  position: fixed;
  top: 70%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 1050;
}

.social-float .social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0.95;
}

.social-float .social-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 1;
}

.offcanvas.offcanvas-start {
  max-width: 420px;
  width: 95vw;
}

/* ===================================
   MODAL POPUP INICIAL - DISEÑO RESPONSIVE
   =================================== */

#welcomeModal .modal-dialog {
  max-width: 900px;
  width: 90vw;
  margin: 1.75rem auto;
}

#welcomeModal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#welcomeModal .modal-header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
}

#welcomeModal .btn-close {
  background: white;
  opacity: 0.9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#welcomeModal .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#welcomeModal .modal-body {
  padding: 0;
  background: #000;
}

/* Carousel del Popup */
#promoCarousel {
  position: relative;
  width: 100%;
}

#promoCarousel .carousel-inner {
  border-radius: 20px;
  overflow: hidden;
}

#promoCarousel .carousel-item {
  position: relative;
  width: 100%;
  /* Proporción 16:9 ideal para la mayoría de pantallas */
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

#promoCarousel .carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Indicadores mejorados */
#promoCarousel .carousel-indicators {
  margin-bottom: 1.5rem;
  z-index: 5;
}

#promoCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid white;
  opacity: 0.7;
  transition: all 0.3s ease;
}

#promoCarousel .carousel-indicators button.active {
  width: 40px;
  border-radius: 6px;
  background: white;
  opacity: 1;
}

/* Controles mejorados */
#promoCarousel .carousel-control-prev,
#promoCarousel .carousel-control-next {
  width: 50px;
  opacity: 0;
  transition: all 0.3s ease;
}

#promoCarousel:hover .carousel-control-prev,
#promoCarousel:hover .carousel-control-next {
  opacity: 0.9;
}

#promoCarousel .carousel-control-prev:hover,
#promoCarousel .carousel-control-next:hover {
  opacity: 1;
}

#promoCarousel .carousel-control-prev-icon,
#promoCarousel .carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#promoCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#promoCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(102, 126, 234, 0.9);
  transform: scale(1.1);
}

/* Responsive adaptativo */
@media (max-width: 1200px) {
  #welcomeModal .modal-dialog {
    max-width: 800px;
    width: 90vw;
  }
  
  #promoCarousel .carousel-item {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 992px) {
  #welcomeModal .modal-dialog {
    max-width: 700px;
    width: 92vw;
  }
  
  #promoCarousel .carousel-item {
    aspect-ratio: 16/10;
  }
  
  #promoCarousel .carousel-control-prev-icon,
  #promoCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  #welcomeModal .modal-dialog {
    width: 95vw;
    margin: 1rem auto;
  }
  
  #welcomeModal .modal-content {
    border-radius: 15px;
  }
  
  #promoCarousel .carousel-item {
    aspect-ratio: 4/3;
  }
  
  #welcomeModal .btn-close {
    width: 35px;
    height: 35px;
  }
  
  #promoCarousel .carousel-indicators {
    margin-bottom: 1rem;
  }
  
  #promoCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
  
  #promoCarousel .carousel-indicators button.active {
    width: 30px;
  }
}

@media (max-width: 576px) {
  #welcomeModal .modal-dialog {
    width: 98vw;
    margin: 0.5rem auto;
  }
  
  #welcomeModal .modal-content {
    border-radius: 12px;
  }
  
  #promoCarousel .carousel-item {
    aspect-ratio: 1/1;
  }
  
  #welcomeModal .btn-close {
    width: 32px;
    height: 32px;
  }
  
  #promoCarousel .carousel-control-prev,
  #promoCarousel .carousel-control-next {
    width: 40px;
  }
  
  #promoCarousel .carousel-control-prev-icon,
  #promoCarousel .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }
  
  #promoCarousel .carousel-indicators {
    margin-bottom: 0.75rem;
  }
}

/* Estilos antiguos del popup - mantener compatibilidad */
#popupCarrusel .modal-dialog {
  max-width: 700px;
  width: 95vw;
}

#popupCarrusel .modal-content {
  border-radius: 1.2rem;
  overflow: hidden;
}

.footer {
  background: #212529;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

@media (max-width: 991.98px) {
  .banner-search-col, .banner-carousel-col {
    border-radius: 1.5rem;
    min-height: 0;
    margin-bottom: 1.5rem;
  }
  .navbar-nav .nav-link {
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.2rem;
  }
}

@media (max-width: 600px) {
  .catalogo h2, .marcas h2, .sucursales h2, .ofertas h2 {
    font-size: 1.3rem;
  }
  .brand-logo {
    max-width: 140px;
    max-height: 80px;
    margin: 0 12px 20px 12px;
    padding: 0.6rem 1.2rem;
  }
  .social-float {
    right: 8px;
    bottom: 80px;
    transform: none;
  }
}

/* ===================================
   SECCIÓN DE NEWSLETTER - DISEÑO PREMIUM
   =================================== */

.newsletter-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.newsletter-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columna de Información */
.newsletter-info {
  color: white;
  padding: 2rem;
}

.newsletter-icon-box {
  position: relative;
  margin-bottom: 2rem;
  width: fit-content;
}

.newsletter-icon-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.newsletter-sparkles {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  gap: 5px;
}

.newsletter-sparkles i {
  font-size: 1rem;
  color: #ffd700;
  animation: sparkle 1.5s ease-in-out infinite;
}

.newsletter-sparkles i:nth-child(2) {
  animation-delay: 0.3s;
}

.newsletter-sparkles i:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.newsletter-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.newsletter-description {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Beneficios */
.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.benefit-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.benefit-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.benefit-text span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Estadísticas */
.newsletter-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* Formulario */
.newsletter-form-container {
  position: relative;
}

.newsletter-form-card {
  background: white;
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.form-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.input-wrapper-modern {
  position: relative;
}

.form-control-modern {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control-modern:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-icon-modern {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
}

.form-checkbox-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-modern {
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: #6c757d;
  cursor: pointer;
  user-select: none;
}

.btn-subscribe-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-subscribe-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-subscribe-modern:active {
  transform: translateY(0);
}

.btn-spinner {
  margin-left: 0.5rem;
}

.subscription-feedback {
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.subscription-feedback.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.subscription-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f8f9fa;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  color: #28a745;
}

/* Decoración */
.newsletter-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.decoration-circle-1 {
  width: 150px;
  height: 150px;
  top: -50px;
  right: -50px;
  animation: float-circle 4s ease-in-out infinite;
}

.decoration-circle-2 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  left: -30px;
  animation: float-circle 5s ease-in-out infinite;
  animation-delay: 1s;
}

.decoration-circle-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  right: -20px;
  animation: float-circle 3s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float-circle {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 10px);
  }
}

/* Responsive Newsletter */
@media (max-width: 992px) {
  .newsletter-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-info {
    padding: 1rem;
  }
  
  .newsletter-title {
    font-size: 2rem;
  }
  
  .newsletter-form-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: 3rem 0;
  }
  
  .newsletter-title {
    font-size: 1.7rem;
  }
  
  .newsletter-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-divider {
    width: 100%;
    height: 2px;
  }
  
  .newsletter-form-card {
    padding: 1.5rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .newsletter-icon-circle {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .newsletter-benefits {
    gap: 1rem;
  }
  
  .benefit-item {
    padding: 0.8rem;
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ========================================
   BANNER CAROUSEL - RESPONSIVE
   ======================================== */

/* Desktop grande */
#bannerCarousel {
  height: 350px !important;
}

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  #bannerCarousel {
    height: 300px !important;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  #bannerCarousel {
    height: 250px !important;
  }
  
  .carousel-caption h3 {
    font-size: 1.2rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
}

/* Móviles */
@media (max-width: 576px) {
  #bannerCarousel {
    height: 200px !important;
  }
  
  .carousel-caption {
    padding: 10px 15px !important;
  }
  
  .carousel-caption h3 {
    font-size: 1rem;
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
  }
}

/* Pantallas muy grandes */
@media (min-width: 1400px) {
  #bannerCarousel {
    height: 400px !important;
  }
}

/* ========================================
   BUSCADOR HORIZONTAL - RESPONSIVE
   ======================================== */

#card-busqueda {
  transition: all 0.3s ease;
}

#body-busqueda {
  transition: max-height 0.3s ease;
}

#btn-toggle-busqueda {
  transition: transform 0.3s ease;
}

#btn-toggle-busqueda:hover {
  transform: scale(1.1);
}

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  #body-busqueda .row {
    flex-direction: column;
  }
  
  #body-busqueda .col-md-3,
  #body-busqueda .col-md-4,
  #body-busqueda .col-md-2 {
    width: 100%;
    max-width: 100%;
  }
  
  #body-busqueda .d-grid {
    display: flex !important;
    gap: 0.5rem;
  }
  
  #body-busqueda .d-grid button {
    flex: 1;
  }
}

/* Móviles */
@media (max-width: 576px) {
  #card-busqueda .card-header h5 {
    font-size: 1rem;
  }
  
  #card-busqueda .card-header small {
    font-size: 0.75rem;
  }
  
  #body-busqueda {
    padding: 1rem !important;
  }
  
  #body-busqueda label {
    font-size: 0.9rem;
  }
}

/* ========================================
   MEJORAS RESPONSIVE PARA TODAS LAS PANTALLAS
   ======================================== */

/* Extra Small Devices (< 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Navbar móvil */
  .navbar-brand img {
    height: 35px !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
  }
  
  /* Banner */
  .banner-carousel-col {
    min-height: 250px;
  }
  
  .carousel-item img {
    max-height: 250px;
    object-fit: cover;
  }
  
  /* Cards de productos */
  .product-card {
    margin-bottom: 15px;
  }
  
  .product-card .card-body {
    padding: 0.75rem;
  }
  
  .product-card .card-title {
    font-size: 0.9rem;
  }
  
  .product-card .price {
    font-size: 1.1rem;
  }
  
  /* Botones */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Marcas */
  .brand-logo-wrapper {
    height: 60px !important;
  }
  
  .brand-name-text {
    font-size: 0.85rem !important;
  }
  
  /* Títulos de sección */
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Footer */
  .footer-section {
    padding: 1.5rem 0;
  }
  
  .footer-section h5 {
    font-size: 1rem;
  }
  
  /* Botones flotantes */
  .cart-float-btn,
  .social-float-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  .cart-badge {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.65rem !important;
  }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar-brand img {
    height: 40px !important;
  }
  
  .banner-carousel-col {
    min-height: 350px;
  }
  
  .carousel-item img {
    max-height: 350px;
  }
  
  .product-card .card-title {
    font-size: 0.95rem;
  }
  
  .brand-logo-wrapper {
    height: 70px !important;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Medium Devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand img {
    height: 45px !important;
  }
  
  .banner-carousel-col {
    min-height: 450px;
  }
  
  .carousel-item img {
    max-height: 450px;
  }
  
  .product-card .card-title {
    font-size: 1rem;
  }
  
  .brand-logo-wrapper {
    height: 75px !important;
  }
  
  /* Grid de productos: 2 columnas en tablets */
  .row-cols-md-3 > * {
    width: 50%;
  }
}

/* Large Devices (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand img {
    height: 50px !important;
  }
  
  .banner-carousel-col {
    min-height: 500px;
  }
  
  .carousel-item img {
    max-height: 500px;
  }
  
  .container {
    max-width: 960px;
  }
}

/* Extra Large Devices (≥ 1200px) */
@media (min-width: 1200px) {
  .navbar-brand img {
    height: 55px !important;
  }
  
  .banner-carousel-col {
    min-height: 600px;
  }
  
  .carousel-item img {
    max-height: 600px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Ultra Wide Screens (≥ 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .banner-carousel-col {
    min-height: 650px;
  }
  
  .carousel-item img {
    max-height: 650px;
  }
}

/* Mejoras de rendimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimización para touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card,
  .nav-link {
    -webkit-tap-highlight-color: transparent;
  }
  
  .product-card:hover {
    transform: none;
  }
  
  .brand-card:hover {
    transform: none;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .banner-carousel-col {
    min-height: 300px;
  }
  
  .carousel-item img {
    max-height: 300px;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .top-bar {
    padding: 10px 0 5px 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .cart-float-btn,
  .social-float-btn,
  .banner-carousel-col {
    display: none !important;
  }
  
  .product-card {
    break-inside: avoid;
  }
}
