* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #f8f8f8;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Banner Superior */
.banner-top {
  background-color: #ffffff;
  padding: 12px;
  text-align: center;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  gap: 12px;
}

.truck-icon {
  width: 24px;
  height: 24px;
}

/* Header */
.header {
  background-color: white;
  padding: 16px 0;
  border-bottom: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Estilos para el logo como imagen */
.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 60px;
  width: auto;
}

/* Navegación */
.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #cc0000;
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff0000;
}

/* Banners estáticos sin carrusel */
.banner-section {
  background-color: white;
  padding: 0;
  margin: 0;
}

.banner-static {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Estilos para la sección de 3 banners promocionales navideños */
.promo-banners-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.promo-banners-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.promo-banner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.promo-banner-frame {
  width: 100%;
  padding: 8px;
  background: linear-gradient(145deg, #d4af37, #f4d03f);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -2px 4px
    rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.promo-banner-frame::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: linear-gradient(145deg, #f4d03f, #d4af37);
  border-radius: 12px;
  z-index: 0;
}

.promo-banner-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.4), inset 0 -2px 6px
    rgba(0, 0, 0, 0.3);
}

.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.promo-cta-button {
  display: inline-block;
  padding: 14px 32px;
  /* Botón con fondo blanco y letras rojas */
  background: white;
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 30px;
  /* Sombra ajustada para fondo blanco */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  /* Añadido borde rojo para definir el botón */
  border: 2px solid #ff0000;
}

.promo-cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  /* Efecto hover ajustado para el nuevo diseño */
  background: rgba(255, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.promo-cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.promo-cta-button:hover {
  /* Hover con fondo rojo y texto blanco */
  background: #ff0000;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
  transform: translateY(-3px);
}

.promo-cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Catálogo de productos con imágenes numeradas */
.products-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.underline {
  width: 60px;
  height: 4px;
  background-color: #ff0000;
  margin: 0 auto;
  border-radius: 2px;
}

.products-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.catalog-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.catalog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.15);
}

.catalog-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ff0000;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.catalog-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  margin-top: 80px;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #ff0000;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #ff0000;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

.social-icon:hover {
  background-color: #ff6b6b;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #999;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 968px) {
  .promo-banners-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .promo-banner-card {
    /* Removido max-width para ocupar todo el ancho en móvil */
    max-width: 100%;
    margin: 0 auto;
  }

  /* Los banners ocupan el máximo ancho en móvil */
  .promo-banner-frame {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    gap: 16px;
    font-size: 12px;
  }

  .logo-image {
    height: 50px;
  }

  .products-catalog {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .nav-link {
    font-size: 12px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  /* Asegurando que los banners ocupen todo el ancho en tablets */
  .promo-banner-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 40px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .products-catalog {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .promo-cta-button {
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Eliminando padding lateral para maximizar el ancho de los banners en móvil */
  .promo-banners-section {
    padding: 0 10px;
  }

  /* Banners ocupan el ancho completo en dispositivos móviles */
  .promo-banner-card {
    width: 100%;
  }

  .promo-banner-frame {
    width: 100%;
  }
}
