/* Productos */
.productos-destacados {
  background: #990406;
  padding: 4rem 2rem;
  text-align: center;
}
.productos-header h2,
.productos-header p {
  color: #fff;
}
.productos-header h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.productos-header p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.productos-grid-nueva {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}
.producto-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.producto-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.producto-img {
  position: relative;
  overflow: hidden;
}
.producto-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}
.producto-box:hover img {
  transform: scale(1.05);
}
.descripcion-hover {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.9rem;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.producto-box:hover .descripcion-hover {
  transform: translateY(0);
}
.producto-info { padding: 1rem; }
.producto-info h3 { font-size: 1.3rem; color: #333; }
.ver-todo-btn { margin-top: 3rem; }
.btn-catalogo {
  display: inline-block;
  padding: 12px 30px;
  background: #ffc107;
  color: #222;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-catalogo:hover {
  background: #e0a800;
  color: #fff;
}

/* Carrusel de marcas */
.marcas-carousel {
  background: #990406;
  padding: 2rem 1rem;
  text-align: center;
}
.marcas-carousel h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 0.5rem 1rem;
  max-width: 90vw;
  height: 100px;
  scrollbar-width: none;
  animation: scroll 30s linear infinite;
}
.carousel-track::-webkit-scrollbar { display: none; }
.logo-item {
  flex: 0 0 auto;
  width: 130px; height: 80px;
  background: #2222223e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.logo-item img {
  max-width: 90%;
  max-height: 70%;
  object-fit: contain;
}
.logo-item:hover { transform: scale(1.05); }
.contact-footer {
  background: #000;
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
  font-size: 0.9rem;
}

/* Sección productos */
.productos-filtrables {
  padding: 1rem;
  text-align: center;
  background: #2222223e;
}
.productos-filtrables h2 {
  font-size: 2.5rem;
  color: #ffc107;
  margin-bottom: 2rem;
}
.filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filtros .filtro {
  background: #eee;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}
.filtros .filtro.active,
.filtros .filtro:hover {
  background: #ffc107;
  color: #000;
}
.grid-productos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
@media (max-width: 1200px) {
  .grid-productos { grid-template-columns: repeat(4,1fr);}
}
@media (max-width:1024px) {
  .grid-productos { grid-template-columns: repeat(3,1fr);}
}
@media (max-width:768px) {
  .grid-productos { grid-template-columns: repeat(2,1fr);}
  .productos-filtrables h2 { font-size: 2rem; }
  .btn-ver-todos { font-size: 0.95rem; padding: 0.7rem 1.2rem; }
}
@media (max-width:600px) {
  .grid-productos { grid-template-columns: 1fr; }
  .producto-card, .producto-box { max-width: 98vw; }
  .productos-filtrables { padding: 0.5rem; }
  .descripcion-categoria { padding: 0.5rem; }
}
@media (max-width:400px) {
  .producto-card img, .producto-box img { height: 110px; }
  .btn-ver-todos { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
}

/* Filtros responsivos */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .filtros { gap: 0.5rem; }
  .filtros .filtro { padding: 0.5rem 0.8rem; font-size: 0.95rem; }
}

.grid-productos.mostrar-todos .producto-card { display: block; }
.producto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s;
  padding: 1rem;
  display: none;
  width: 100%;
  max-width: 250px;
}
.producto-card.mostrar {
  display: block;
  opacity: 1;
  transform: scale(1);
}
.producto-card:hover { transform: translateY(-5px); }
.producto-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.producto-card h3 {
  margin-top: 0.8rem;
  color: #990406;
}
.producto-card p {
  font-size: 0.95rem;
  color: #444;
}
.descripcion-categoria {
  margin: 2rem auto 1rem;
  max-width: 900px;
  text-align: center;
  padding: 1rem;
  background: #2222223e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.descripcion-categoria.visible {
  opacity: 1;
  transform: translateY(0);
}
.descripcion-categoria h3 {
  color: #fff;
  margin-bottom: 1rem;
}
.descripcion-categoria .items-destacados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.descripcion-categoria .item {
  flex: 1 1 200px;
  font-size: 0.95rem;
  background: #2222223e;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.btn-ver-todos {
  display: none;
  margin: 1.5rem auto 0 auto;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  background: #990406;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
}
.btn-ver-todos:hover, .btn-ver-todos:focus {
  background: #b00a0a;
  color: #ffc107;
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* Banner de categoría estético */
.categoria-banner {
  border-radius: 0 0 22px 22px;
  margin: 0 auto 2rem auto;
  max-width: 1100px;
  min-height: 120px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  transition: background 0.4s;
  position: relative;
  opacity: 1;
  animation: fadeInBanner 0.7s;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  /* Asegura que el contenido ocupe todo el ancho y alto */
  display: flex;
  align-items: stretch;
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  position: relative;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  /* Ocupa todo el alto disponible del banner */
  min-height: 100%;
}
.banner-icon {
  font-size: 2.2rem;
  color: #fff;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
  margin-right: 1.2rem;
  margin-left: 0;
}
.banner-text {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.banner-text h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.banner-text p {
  font-size: 1.08rem;
  color: #fff;
  opacity: 0.93;
  font-weight: 500;
  margin: 0;
}
.banner-img {
  margin-left: auto;
  flex-shrink: 0;
  width: 150px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  background: #fff;
}

/* RESPONSIVE AJUSTES */
@media (max-width: 1200px) {
  .productos-hero, .categoria-banner {
    max-width: 99vw;
  }
  .banner-content {
    gap: 1.2rem;
    padding: 1.2rem 1rem;
  }
  .banner-img {
    width: 120px;
    height: 70px;
  }
}
@media (max-width: 900px) {
  .productos-hero, .categoria-banner {
    max-width: 99vw;
    border-radius: 16px 16px 0 0;
  }
  .productos-hero-content {
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
  }
  .banner-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1rem;
    text-align: center;
    margin-top: 0;
    width: 100%;
    min-height: 100%;
  }
  .banner-img {
    width: 100%;
    height: 80px;
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }
  .banner-text {
    align-items: center;
    text-align: center;
  }
  .banner-text h3 { font-size: 1.2rem; }
  .banner-text p { font-size: 0.98rem; }
  .productos-hero-icons {
    gap: 0.7rem;
    flex-wrap: nowrap; /* Mantiene una sola fila en tablets */
    overflow-x: auto;
    max-width: 100vw;
    min-height: 90px;
  }
  .categoria-banner { border-radius: 0 0 16px 16px; }
}
@media (max-width: 700px) {
  .productos-hero, .categoria-banner {
    max-width: 100vw;
    border-radius: 0;
  }
  .productos-hero-content {
    padding: 0.7rem 0.2rem 0.3rem 0.2rem;
  }
  .banner-content {
    padding: 0.7rem 0.2rem;
    gap: 0.7rem;
    margin-top: 0;
    width: 100%;
    min-height: 100%;
  }
  .banner-img {
    height: 50px;
    width: 90px;
  }
  .productos-hero-icons {
    gap: 0.3rem;
    flex-wrap: nowrap; /* Mantiene una sola fila en móviles */
    overflow-x: auto;
    max-width: 100vw;
    padding: 0.3rem 0 0.1rem 0;
    min-height: 110px;
  }
}
@media (max-width: 480px) {
  .productos-hero, .categoria-banner {
    max-width: 100vw;
    border-radius: 0;
  }
  .productos-hero-content {
    padding: 0.4rem 0.1rem 0.2rem 0.1rem;
  }
  .banner-content {
    padding: 0.4rem 0.1rem;
    gap: 0.5rem;
    margin-top: 0;
    width: 100%;
    min-height: 100%;
  }
  .banner-img {
    height: 36px;
    width: 60px;
  }
  .banner-text h3 { font-size: 1rem; }
  .banner-text p { font-size: 0.85rem; }
  .productos-hero-icons {
    gap: 0.15rem;
    flex-wrap: nowrap; /* Mantiene una sola fila en móviles chicos */
    overflow-x: auto;
    padding: 0.1rem 0 0.05rem 0;
    min-height: 120px;
  }
}

/* HERO ESTÉTICO PARA PRODUCTOS */
.productos-hero {
  /* Unir visualmente el banner de iconos y el de información */
  position: relative;
  margin: 0 auto 0 auto;
  max-width: 1100px;
  min-height: 120px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 2;
  background: linear-gradient(120deg, #990406 60%, #ffc107 100%);
  animation: fadeInBanner 1s;
  padding-bottom: 0;
}

.productos-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding: 2rem 2.5rem 1rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.productos-hero-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.1rem;
  justify-content: center;
  margin: 0 auto 0 auto;
  overflow-x: auto;
  padding: 0.5rem 0 0.2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
  border-radius: 0;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  min-height: 70px;
}
.productos-hero-icons span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  opacity: 0.93;
  min-width: 60px;
  transition: color 0.3s, transform 0.3s;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.13));
  padding: 0;
  border-radius: 0;
  background: none;
  margin-bottom: 0;
  white-space: nowrap;
}
.productos-hero-icons span.active,
.productos-hero-icons span:focus {
  background: none;
  color: #ffc107;
}
.productos-hero-icons i {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: #ffc107;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.13));
  transition: color 0.3s;
}
.productos-hero-icons span.active i,
.productos-hero-icons span:focus i {
  color: #ffc107;
}
.productos-hero-icons span:hover i {
  color: #fff;
  transform: scale(1.12);
}
.productos-hero-icons span:hover {
  color: #ffc107;
  background: none;
  transform: translateY(-2px) scale(1.04);
}

/* SOLO EN DISPOSITIVOS: 2 filas de iconos bien distribuidos, sin scroll horizontal */
@media (max-width: 900px) {
  .productos-hero-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    flex-wrap: unset;
    gap: 0.7rem 1.2rem;
    max-width: 100vw;
    padding: 0.3rem 0 0.1rem 0;
    justify-items: center;
    align-items: stretch;
    overflow-x: visible;
    min-height: 110px;
  }
  .productos-hero-icons span {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    font-size: 0.85rem;
    margin-bottom: 0;
    flex: unset;
    padding: 0.5rem 0.2rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
  }
  .productos-hero-icons i {
    font-size: 1.1rem;
  }
  /* Mantener hover y active amarillo */
  .productos-hero-icons span.active,
  .productos-hero-icons span:focus {
    color: #ffc107;
  }
  .productos-hero-icons span.active i,
  .productos-hero-icons span:focus i {
    color: #ffc107;
  }
  .productos-hero-icons span:hover i {
    color: #fff;
    transform: scale(1.12);
  }
  .productos-hero-icons span:hover {
    color: #ffc107;
    background: none;
    transform: translateY(-2px) scale(1.04);
  }
}
@media (max-width: 700px) {
  .productos-hero-icons {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem 0.7rem;
    min-height: 120px;
    padding: 0.2rem 0 0.1rem 0;
  }
  .productos-hero-icons span {
    font-size: 0.75rem;
    padding: 0.7rem 0.1rem;
  }
  .productos-hero-icons i {
    font-size: 1rem;
  }
  .productos-hero-icons span.active,
  .productos-hero-icons span:focus {
    color: #ffc107;
  }
  .productos-hero-icons span.active i,
  .productos-hero-icons span:focus i {
    color: #ffc107;
  }
  .productos-hero-icons span:hover i {
    color: #fff;
    transform: scale(1.12);
  }
  .productos-hero-icons span:hover {
    color: #ffc107;
    background: none;
    transform: translateY(-2px) scale(1.04);
  }
}
@media (max-width: 480px) {
  .productos-hero-icons {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.18rem 0.4rem;
    min-height: 130px;
    padding: 0.1rem 0 0.05rem 0;
  }
  .productos-hero-icons span {
    font-size: 0.62rem;
    padding: 0.8rem 0.05rem;
  }
  .productos-hero-icons i {
    font-size: 0.75rem;
  }
  .productos-hero-icons span.active,
  .productos-hero-icons span:focus {
    color: #ffc107;
  }
  .productos-hero-icons span.active i,
  .productos-hero-icons span:focus i {
    color: #ffc107;
  }
  .productos-hero-icons span:hover i {
    color: #fff;
    transform: scale(1.12);
  }
  .productos-hero-icons span:hover {
    color: #ffc107;
    background: none;
    transform: translateY(-2px) scale(1.04);
  }
}

/* Tarjeta de producto animada */
.producto-card, .producto-box {
  box-shadow: 0 4px 18px rgba(153,4,6,0.08), 0 1.5px 6px rgba(255,193,7,0.07);
  border: 1.5px solid #ffc10733;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  background: linear-gradient(120deg, #fff 80%, #fffbe6 100%);
}
.producto-card:hover, .producto-box:hover {
  box-shadow: 0 8px 32px rgba(153,4,6,0.13), 0 2px 12px rgba(255,193,7,0.13);
  border: 1.5px solid #ffc107;
  transform: translateY(-7px) scale(1.03);
}

/* Animación de fade-in para productos */
@keyframes fadeInProducto {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}
.producto-card, .producto-box {
  animation: fadeInProducto 0.7s;
}

/* Animación de fade-in para productos */
@keyframes fadeInProducto {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}
.producto-card, .producto-box {
  animation: fadeInProducto 0.7s;
}
@media (max-width: 480px) {
  .productos-hero, .categoria-banner {
    max-width: 100vw;
    border-radius: 0;
  }
  .productos-hero-content {
    padding: 0.4rem 0.1rem 0.2rem 0.1rem;
  }
  .banner-content {
    padding: 0.4rem 0.1rem;
    gap: 0.5rem;
  }
  .banner-img {
    height: 36px;
    width: 60px;
  }
  .banner-text h3 { font-size: 1rem; }
  .banner-text p { font-size: 0.85rem; }
  .productos-hero-icons {
    gap: 0.15rem;
    flex-wrap: nowrap; /* Mantiene una sola fila en móviles chicos */
    overflow-x: auto;
    padding: 0.1rem 0 0.05rem 0;
    min-height: 120px;
  }
}

/* Tarjeta de producto animada */
.producto-card, .producto-box {
  box-shadow: 0 4px 18px rgba(153,4,6,0.08), 0 1.5px 6px rgba(255,193,7,0.07);
  border: 1.5px solid #ffc10733;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  background: linear-gradient(120deg, #fff 80%, #fffbe6 100%);
}
.producto-card:hover, .producto-box:hover {
  box-shadow: 0 8px 32px rgba(153,4,6,0.13), 0 2px 12px rgba(255,193,7,0.13);
  border: 1.5px solid #ffc107;
  transform: translateY(-7px) scale(1.03);
}

/* Animación de fade-in para productos */
@keyframes fadeInProducto {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}
.producto-card, .producto-box {
  animation: fadeInProducto 0.7s;
}

/* Animación de fade-in para productos */
@keyframes fadeInProducto {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}
.producto-card, .producto-box {
  animation: fadeInProducto 0.7s;
}
