/* Estilo general */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f6f6f6;
}

/* Barra superior */
.topbar {
  background-color: #e4002b;
  color: white;
  font-size: 0.9em;
  padding: 8px 0;
  text-align: center;
}

.topbar-content span {
  margin: 0 15px;
}

/* Encabezado */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5em;
  color: #c2001b;
}

.logo img{
  object-fit: cover;
  max-width: 150px;
  max-height: 100px;
}

.buscador {
  flex: 1;
  margin: 0 20px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
}

.buscador:focus{
  border: 2px solid #C11007;
}



a{
  display: inline-block; /* permite usar margen */
  margin-right: 20px; /* espacio horizontal */
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}


a i{
font-size: 20px;
color: #7b1fa2;
}

a:hover{
color: #7b1fa2;

}

/* Menú */
.menu {
  background-color: #f8f8f8;
  padding: 10px 0;
  border-bottom: 2px solid #ddd;
}

.menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 0 20px;
  font-weight: 600;
  cursor: pointer;
  color: #444;
  transition: 0.2s;
}

.menu li:hover {
  color: #e4002b;
}


/* Secciones inferiores */
.secciones {
  display: flex;
  justify-content: center;
  padding: 30px 10px;
  gap: 20px;
}

.seccion {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 40px;
  font-size: 1.3em;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: 0.3s;
}

.seccion:hover {
  transform: translateY(-4px);
}

/* Colores de secciones */
.oferta { background-color: #ffe400; color: #000; }
.novedades { background-color: #ff7ff3; color: #000; }
.tiendas { background-color: #ff3a3a; color: #fff; }

/* Pie de página */
.footer {
  background: linear-gradient(180deg, #b71c1c, #7a0d0d);
  color: #fff;
  font-family: "Poppins", sans-serif;
  padding-top: 40px;
}

.suscripcion {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  margin: 0 auto 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.suscripcion h3 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.form-suscripcion {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-suscripcion input {
  width: 280px;
  padding: 10px 15px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.form-suscripcion button {
  background: #fff;
  color: #b71c1c;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-suscripcion button:hover {
  background: #ffebee;
  transform: scale(1.05);
}

.footer-contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 20px 50px 40px;
  background: #2b2b2b;
}

.columna h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #b71c1c;
  display: inline-block;
  padding-bottom: 4px;
}

.columna ul {
  list-style: none;
  padding: 0;
}

.columna ul li {
  margin: 8px 0;
}

.columna ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.columna ul li a:hover {
  color: #fff;
}

.columna.redes .iconos {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  width: 50px;

}

.iconos a {
  text-align: center;
  color: #fff;
  font-size: 1rem;
  background: #90A1B9;
  padding: 10px 13px;
  border-radius: 50%;
  text-decoration: none !important;
  transition: background 0.3s, transform 0.3s;
}


.iconos i {
  color: #1a1a1a;
}

.iconos a:hover {
  background: #CAD5E2;
  transform: scale(1.1);
}

.footer-copy {
  background: #1a1a1a;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #bbb;
}

/* ESTILO DEL CARRITO */

.btn-carrito {
  position: relative;
  border: none;
  color: #000000;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  
}

.btn-carrito:hover{
color: #90A1B9;

}


.contador {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff3b3b;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 6px;
  line-height: 1;
}

/* ESTILO DE CARRUCEL */

/* ----- CONTENEDOR PRINCIPAL ----- */
.banner {
  width: auto;
  height: 400px; /* ajusta el alto a tu gusto */
  overflow: hidden;
  position: relative;
  margin: 10px;
}

/* ----- CARRUSEL ----- */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ----- SLIDES ----- */
.slide {
  display: flex;
  justify-content: center;
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
 
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* ----- IMÁGENES ----- */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena el contenedor sin deformar */
  display: block;
}

/* ----- BOTONES  CARRUCEL ----- */
.carousel button {
  width: 75px;
  max-height: 70px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2;
}

.carousel button:hover {
  color: #DBD1CE;
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .banner {
    height: 50vh;
  }

  .carousel button {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}


/* TARJETA DE PRODUCTOS */



/* 🛒 Sección de productos con scroll horizontal */
.section-products {
  display: flex; 
  overflow-x: auto; 
  scroll-snap-type: x mandatory; /* hace que el scroll se alinee por tarjeta */
  gap: 25px;
  padding: 30px;
  background-color: #f7f6f9;
  scroll-behavior: smooth;
}

.section-products {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}


/* scrollbar personalizado */
.section-products::-webkit-scrollbar {
  height: 2px;
}

.section-products::-webkit-scrollbar-thumb {
  background: #C11007;
  border-radius: 4px;
}

.section-products::-webkit-scrollbar-track {
  background: #f7f6f9;
}

/* 💳 Tarjeta individual */
.card-products {
  flex: 0 0 auto; /* evita que se encojan, mantiene ancho fijo */
  width: 260px; /* mantiene tamaño visual */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start; /* se ajusta cuando haces scroll */
}

.card-products:hover {
  cursor: pointer;
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* 🖼 Imagen del producto */
.img-product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* 📦 Texto de piezas */
.text-piece {
  margin-top: 10px;
  font-size: 15px;
  color: #6b6b6b;
}

/* 📝 Descripción */
.description-product {
  margin: 10px 0;
  font-weight: 500;
  color: #333;
}

/* 💲 Precio */
.price {
  font-size: 25px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 15px;
}

/* 🔘 Botones */
.buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.buttons button {
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.2s;
}

/* 🎨 Botones con colores */
.btn-add-card {
  background-color: #C11007;
  color: white;
}

.btn-add-card:hover {
  background-color: #a50e06;
  transform: scale(1.05);
}

.btn-similar {
  background-color: #e0d4eb;
  color: #000000;
}

.btn-similar:hover {
  background-color: #d1bee5;
  transform: scale(1.05);
}


/* SELECCION DE LO MEJOR DE LA TEMPORADA */

.CartaOpciones {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cartaOfert1 {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 280px;
  height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cartaOfert1:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cartaOfert1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cartaOfert1:hover img {
  transform: scale(1.05);
}

.secciones h1 {
  font-size: 2rem;
  color: #3b2b20;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
}

.tmp{
flex-direction: column;
}


/* SECCION MATERIALES */

.manualidades {
  text-align: center;
  padding: 60px 20px;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
}

.manualidades h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 40px;
}

.categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.categoria {
  background-color: var(--color);
  border-radius: 16px;
  width: 180px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.categoria:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.imagenH {
  width: 100%;
  height: 80%; /* imagen ocupa el 80% */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.categoria:hover .imagenH img {
  transform: scale(1.08);
}

.categoria p {
  height: 20%; /* texto ocupa el 20% */
  margin: 0;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
  .categoria {
    width: 180px;
    height: 230px;
  }
}

@media (max-width: 700px) {
  .categorias {
    gap: 20px;
  }

  .categoria {
    width: 45%;
    height: 220px;
  }
}

@media (max-width: 500px) {
  .categorias {
    flex-direction: column;
    align-items: center;
  }

  .categoria {
    width: 85%;
    height: 250px;
  }
}

/* SECCION EVIOS  */

.envios {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #fff, #f8f8f8);
  font-family: "Poppins", sans-serif;
}

.envios h2 {
  font-size: 2.2rem;
  color: #1e1e1e;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.envios h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #b71c1c;
  margin: 10px auto 0;
  border-radius: 2px;
}

.envios-contenedor {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.enviosDiv {
  position: relative;
  width: 350px;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color1), var(--color2));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.enviosDiv:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.enviosDiv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.enviosDiv:hover img {
  opacity: 0.7;
  transform: scale(1.05);
}

.envio-texto {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  padding: 0 10px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  transition: opacity 0.4s ease;
}

.envio-texto h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.envio-texto p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Efecto de brillo animado */
.enviosDiv::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(25deg);
  transition: 0.6s;
}

.enviosDiv:hover::before {
  left: 130%;
}