:root {
  --color-primary: #aa0404;
  --color-secondary: #590504;
  --color-accent: #aa0404;
  --color-background: #f8fafc;
  --color-text: #000000;
  --color-light: #ffffff;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background-color: var(--color-light);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(26, 86, 219, 0.1);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(26, 86, 219, 0.1);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #aa0404;
  border-color: #aa0404;
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: white;
}

.badge-primary {
  background-color: var(--color-primary);
}

.search-form {
  position: relative;
}

.search-form .form-control {
  border-radius: 50px;
  padding-left: 20px;
  padding-right: 45px;
  border: 1px solid #e5e7eb;
}

.search-form .btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item:hover {
  background-color: rgba(26, 86, 219, 0.1);
  color: var(--color-primary);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .nav-item {
    margin: 0.2rem 0;
  }

  .search-form {
    margin: 1rem 0;
  }
}

/** MODAL PARA EL PRIEMR CAR DE PRODUCTOS VENDIDOS */
.products-section {
  padding: 2.5rem 0;
  background: var(--color-background);
}

.section-title {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 2rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
  gap: 1.5rem;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.product-cardV {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.product-cardV:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
}
.badge-new {
  background: var(--color-accent);
}
.badge-sale {
  background: var(--color-secondary);
}

.product-image {
  height: 220px; /* imagen más grande */
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  transition: transform 0.4s;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}
.product-cardV:hover .product-image img {
  transform: scale(1.08);
}
.product-info {
  padding: 1.2rem;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.current-price {
  color: var(--color-primary);
  font-weight: 700;
}
.original-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}
.discount-percent {
  margin-left: auto;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-add-cart,
.btn-details {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-add-cart {
  background: var(--color-primary);
  color: #fff;
}
.btn-add-cart:hover {
  background: #aa0404;
}
.btn-add-cartD {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-add-cartD {
  background: var(--color-primary);
  color: #fff;
}
.btn-add-cartD:hover {
  background: #aa0404;
}
.btn-details {
  background: #f3f4f6;
  color: var(--color-text);
}
.btn-details:hover {
  background: #e5e7eb;
}

/* CAROUSEL CONTROLS */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(25%) sepia(82%) saturate(2582%) hue-rotate(215deg)
    brightness(93%) contrast(87%);
}

/* RESPONSIVE MÓVIL - 2 columnas, horizontal scroll */
@media (max-width: 576px) {
  .products-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .products-grid::-webkit-scrollbar {
    display: none; /* Oculta scrollbar */
  }

  .product-card {
    flex: 0 0 calc(50% - 0.5rem); /* 2 columnas visibles */
    scroll-snap-align: start;
  }
.product-cardV {
    flex: 0 0 calc(50% - 0.5rem); /* 2 columnas visibles */
    scroll-snap-align: start;
  }
  .product-image {
    height: 180px;
  }
}

/** STILO PARA EL CAROUSEL DE CATEGORIAS */
.categories-section {
  padding: 1.5rem 0;
  background-color: var(--color-background);
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

.categories-container {
  position: relative;
  padding: 0 2.5rem;
}

.category-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.category-slider::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.category-card {
  flex: 0 0 auto;
  width: 110px;
  background: white;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 86, 219, 0.1);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.category-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.slider-control:hover {
  background-color: var(--color-primary);
  color: white;
}

.slider-control.prev {
  left: 0;
}

.slider-control.next {
  right: 0;
}

.slider-control.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (min-width: 576px) {
  .category-card {
    width: 130px;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .category-card {
    width: 150px;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 400px) {
  .category-card {
    width: 100px;
  }

  .category-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .category-name {
    font-size: 0.75rem;
  }
}

/**ETILO PARA LA GRILLA DE PODUCTOS COPMARO SECCION 3 */
/* GRILLA DE PRODUCTOS */
.product-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .product-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .product-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TARJETA DE PRODUCTO */
.product-card-custom {
  background: var(--color-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-secondary);
  color: var(--color-light);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
}

.product-image-custom {
  width: 100%;
  padding-top: 100%;
  /* ratio cuadrado */
  position: relative;
  overflow: hidden;
}

.product-image-custom img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-custom {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-custom {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
}

.product-price-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.current-price-custom {
  color: black;
  font-weight: bold;
  font-size: 20px;
}

.original-price-custom {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
}

.discount-percent-custom {
  background: var(--color-secondary);
  color: var(--color-light);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-actions-custom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.product-actions-custom button {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.product-actions-custom button:hover {
  background: var(--color-accent);
}

/* BOTON VER MAS */
.btn-ver-mas-custom {
  display: block;
  margin: 30px auto 0;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ver-mas-custom:hover {
  background: var(--color-accent);
}

/* SECCION DE VIDEOS */
#video-highlight-section {
  overflow-x: auto;
  display: flex;
  gap: 20px;
  padding-bottom: 15px;
  scroll-behavior: smooth;
}

#video-highlight-section::-webkit-scrollbar {
  height: 8px;
}

#video-highlight-section::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

/* CARD MODERNA */
.video-card-highlight {
  flex: 0 0 auto;
  width: 220px;
  background: linear-gradient(145deg, var(--color-light), #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.video-card-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* VIDEO */
.video-thumb-highlight {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s;
  border-bottom: 2px solid var(--color-primary);
}

.video-card-highlight:hover .video-thumb-highlight {
  transform: scale(1.05);
}

/* BADGE */
.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-secondary);
  color: var(--color-light);
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 2;
}

/* INFO */
.video-info-highlight {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-title-highlight {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-primary);
  line-height: 1.2em;
  transition: color 0.2s;
}

.video-card-highlight:hover .video-title-highlight {
  color: var(--color-accent);
}

.video-description-highlight {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px; /* espacio antes del botón */
  line-height: 1.3em;
  flex: 1; /* hace que la descripción ocupe espacio y empuje el botón hacia abajo */
}

/* BOTON */
.btn-video-highlight {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s, transform 0.2s;
  align-self: center; /* centra el botón horizontalmente */
  margin-top: auto; /* asegura que siempre quede abajo */
}

.btn-video-highlight:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* MÓVIL */
@media (max-width: 768px) {
  .video-card-highlight {
    width: 160px;
  }

  .video-thumb-highlight {
    height: 120px; /* un poco más alto para que el botón no se sobreponga */
  }

  .video-info-highlight {
    padding: 8px;
  }

  .video-title-highlight {
    font-size: 14px;
  }

  .video-description-highlight {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .btn-video-highlight {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/*etilo para la notificacinoes de todo tipo de mensajes*/
.login-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 250px;
  max-width: 350px;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  display: none;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
}

/* Loader */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.login-notification.success {
  background-color: #aa0404;
}
.login-notification.error {
  background-color: #ff6b35;
}
/*estilo para el login*/
/* Modal base */
.auth-modal {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.4s ease;
}

/* Imagen lateral */
.auth-image {
  background: url("") center/cover no-repeat;
  position: relative;
}
.auth-image .overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #000000;
}
.auth-image .overlay-text span {
  color: var(--color-secondary);
}

/* Tabs */
#authTabs .nav-link {
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 500;
  color: var(--color-primary);
}
#authTabs .nav-link.active {
  background: var(--color-primary);
  color: #fff;
}

/* Inputs */
.auth-modal .form-control {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  transition: border-color 0.3s;
}
.auth-modal .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(26, 86, 219, 0.3);
}

/* Botón principal */
.auth-btn {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: 0.3s;
}
.auth-btn:hover {
  background: var(--color-accent);
}

/* Botones sociales */
.social-btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 6px 14px;
  transition: 0.3s;
}
.google-btn {
  background: #db4437;
  color: #fff;
}
.facebook-btn {
  background: #1877f2;
  color: #fff;
}
.social-btn:hover {
  opacity: 0.9;
}

/* Enlaces */
.auth-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* Animación */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/*estilo para hero llmarivo primero lo que se ve*/
.hero-section {
  padding: 4rem 0; /* espacio arriba y abajo */
  background: linear-gradient(135deg, #aa0404, #aa0404);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.btn-hero {
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.btn-hero:hover {
  transform: scale(1.05);
  background: #ff5020;
}
.hero-product {
  max-width: 100%;
  border-radius: 12px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-product {
    width: 80%;
    margin-top: 2rem;
  }
}
/*secciont comentario lista*/
.chat-comments-section {
  padding: 3rem 0;
  background: var(--color-background);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Estilo de mensaje */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: fadeInUp 0.5s ease forwards;
}
.chat-message.right {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 70%;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chat-message.right .chat-bubble {
  background: var(--color-primary);
  color: #fff;
}

.chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.chat-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.chat-message.right .chat-name {
  color: #fff;
}

.chat-text {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Animación de entrada */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón Ver más */
.btn-view-more {
  padding: 0.7rem 1.5rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-view-more:hover {
  background: #ff5020;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-bubble {
    max-width: 85%;
  }
}
/*footer pied de pagina*/
:root {
  --color-primary: #aa0404;
  --color-secondary: #ff6b35;
  --color-accent: #aa0404;
  --color-background: #f8fafc;
  --color-text: #1f2937;
  --color-light: #ffffff;
}

.footer-modern {
  background: var(--color-primary);
  color: var(--color-light);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.footer-modern a {
  color: var(--color-light);
  font-size: 1.2rem;
}

.footer-modern a:hover {
  color: var(--color-secondary);
}

.footer-brand img {
  max-width: 300px;
  margin-bottom: 0.5rem;
}

.footer-brand h4 {
  margin: 0.3rem 0 0.7rem 0;
  font-weight: 600;
}

.footer-info {
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-socials a {
  transition: transform 0.2s;
}

.footer-socials a:hover {
  transform: scale(1.2);
}

.footer-credit {
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-modern .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-socials {
    justify-content: center;
  }
}

/*stilo para los productos mas recomendados*/
.recommended-section {
  padding: 2rem 0;
  background: var(--color-background);
}

.recommended-section .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
}
.recommended-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.recommended-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.recommended-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.recommended-card .product-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9fafb;
}
.recommended-card .product-image img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.4s;
}
.recommended-card:hover .product-image img {
  transform: scale(1.05);
}

.likes {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.product-info {
  padding: 0.8rem;
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0rem;
  color: var(--color-text);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.current-price {
  color: var(--color-primary);
  font-weight: 700;
}
.original-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.85rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-add-cart,
.btn-details {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-add-cart {
  background: var(--color-primary);
  color: #fff;
}
.btn-add-cart:hover {
  background: #aa0404;
}
.btn-details {
  background: #f3f4f6;
  color: var(--color-text);
}
.btn-details:hover {
  background: #e5e7eb;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .recommended-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .recommended-grid::-webkit-scrollbar {
    display: none;
  }
  .recommended-card {
    min-width: 220px;
    scroll-snap-align: start;
  }
}
/*whatsapp modal boton floatente*/

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1050;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
/*selector para elegir sucurales*/
/* Sección compacta */
.sucursal-section-compact {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.sucursal-title-compact {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.sucursal-dropdown-compact .btn {
  background-color: #fff;
  color: var(--color-primary);
  font-weight: 500;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sucursal-dropdown-compact .btn:hover {
  background-color: var(--color-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sucursal-dropdown-compact .dropdown-menu {
  border-radius: 10px;
  overflow: hidden;
}

.sucursal-dropdown-compact .dropdown-item {
  font-weight: 500;
  transition: all 0.2s ease;
}

.sucursal-dropdown-compact .dropdown-item:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Ajustes para móviles */
@media (max-width: 576px) {
  .sucursal-section-compact {
    padding: 0.5rem 0.5rem;
  }
  .sucursal-title-compact {
    font-size: 1rem;
  }
  .sucursal-dropdown-compact .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}
/* Reducir padding de la sección principal */
.products-section {
  padding-top: 0.5rem; /* Antes podía ser 2rem */
  padding-bottom: 0.5rem;
}
/*carrito para mostrar el modal del boton menu carrito*/
#cartDropdownMenu {
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info p {
  margin: 0;
  font-size: 0.85rem;
}

.cart-item-actions {
  text-align: right;
  font-size: 0.85rem;
}
.cart-item:hover {
  background-color: #f8f9fa;
  transition: 0.2s;
}
.cart-footer button {
  font-weight: bold;
  padding: 6px 12px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-product {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
}
.product-code-label {
    position: absolute;
    bottom: -4px;
    left: 0;
    background: #e9ecef;   /* Gris Bootstrap */
    color: #333;
    font-size: 0.75rem;    /* Pequeño pero legible */
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.product-code-labelP {
    position: absolute;
    bottom: -0px;
    left: 0;
    background: #e9ecef;   /* Gris Bootstrap */
    color: #333;
    font-size: 0.75rem;    /* Pequeño pero legible */
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.suggestion-item {
  font-size: 0.85rem; /* tamaño más pequeño */
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f1f1f1;
}

.suggestion-highlight {
    background-color: yellow;
    font-weight: bold;
}


     :root {
            --primary-color: #aa0404;
            --secondary-color: #590504;
            --accent-color: #aa0404;
            --dark-color: #2c3e50;
            --light-color: #f8f9fa;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
            --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f8fafc;
        }
        
        .app-download-section {
            padding: 4rem 0;
            position: relative;
            overflow: hidden;
        }
        
        .app-download-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1551650975-87deedd944c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
            opacity: 0.05;
            z-index: 0;
        }
        
        .app-container {
            position: relative;
            z-index: 1;
        }
        
        .app-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
        }
        
        .app-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
        }
        
        .app-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .app-header h2 {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 0.5rem;
        }
        
        .app-header p {
            font-size: 1.1rem;
            color: #6c757d;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .app-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }
        
        .app-info {
            flex: 1;
        }
        
        .app-features {
            margin-bottom: 2rem;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-bg);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
        }
        
        .feature-text {
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .download-btn {
            background: var(--gradient-bg);
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(58, 123, 213, 0.4);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            animation: pulse 2s infinite;
        }
        
        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(58, 123, 213, 0.6);
            color: white;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 10px 20px rgba(58, 123, 213, 0.4);
            }
            50% {
                box-shadow: 0 10px 30px rgba(58, 123, 213, 0.7);
            }
            100% {
                box-shadow: 0 10px 20px rgba(58, 123, 213, 0.4);
            }
        }
        
        .app-preview {
            flex: 1;
            display: flex;
            justify-content: center;
            gap: 20px;
            position: relative;
        }
        
        .phone-mockup {
            width: 180px;
            height: 360px;
            background: #1a1a1a;
            border-radius: 30px;
            padding: 15px;
            position: relative;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }
        
        .phone-screen {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }
        
        .phone-screen img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .phone-notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 20px;
            background: #1a1a1a;
            border-radius: 0 0 10px 10px;
            z-index: 2;
        }
        
        .mockup-1 {
            animation: float 6s ease-in-out infinite;
        }
        
        .mockup-2 {
            animation: float 6s ease-in-out infinite 2s;
        }
        
        .mockup-3 {
            animation: float 6s ease-in-out infinite 4s;
        }
        
        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-15px);
            }
            100% {
                transform: translateY(0px);
            }
        }
        
        .app-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            display: block;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #6c757d;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .app-content {
                flex-direction: column;
                text-align: center;
            }
            
            .app-preview {
                order: -1;
                margin-bottom: 2rem;
            }
            
            .phone-mockup {
                width: 150px;
                height: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .app-download-section {
                padding: 3rem 0;
            }
            
            .app-card {
                padding: 2rem 1.5rem;
            }
            
            .app-header h2 {
                font-size: 1.8rem;
            }
            
            .app-preview {
                gap: 10px;
            }
            
            .phone-mockup {
                width: 120px;
                height: 240px;
            }
            
            .app-stats {
                gap: 1rem;
            }
            
            .stat-item {
                padding: 0.8rem 1rem;
            }
            
            .stat-number {
                font-size: 1.5rem;
            }
        }
        
        /* Efectos adicionales */
        .floating-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            background: var(--danger-color);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        .qr-code {
            background: white;
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-top: 1rem;
            display: inline-block;
        }
        
        .qr-code img {
            width: 120px;
            height: 120px;
        }