/* HERO DESKTOP */
.hero-home {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

/* SLIDER */
section.hero-home > .hero-home-slider {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

/* SLIDES */
section.hero-home > .hero-home-slider > .hero-home-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

/* CONTENIDO */
.hero-home-slide a,
.hero-home-slide picture,
.hero-home-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-home-slide img {
  object-fit: cover;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* DOTS */
.hero-home-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

.hero-home-dots span {
  width: 30px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-home-dots span.active {
  background: #fff;
  width: 36px;
}



.cat-block,
.cat-block span {
  text-decoration: none;
  color: inherit;
}



.categorias-linea {
  display: flex;
  gap: 40px;          
  justify-content: center;
  margin-bottom: 50px;
}

.bloque-categoria {
  position: relative;
  flex: 0 0 550px;
  margin: 0;
  height: 180px;
}

.fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease; 
}

.fondo:hover {
  transform: scale(1.03);
}

.fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.texto-superior {
  position: absolute;
  top: 30px;
  left: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.texto-superior strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  margin-top: 4px;
}

.circulo {
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  background: #fff;
  transition: transform 0.3s ease;
}

.circulo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid red;   
  border-left: 6px solid transparent;
  border-radius: 50%;
  transform: rotate(180deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.circulo:hover {
  transform: scale(1.05);
}

.circulo:hover::after {
  opacity: 1; 
}

.circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.categorias-linea-tres {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.bloque-categoria-tres {
  position: relative;
  flex: 0 0 30%;     
  max-width: 380px;
  height: 300px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.fondo-tres {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease;
}
.fondo-tres:hover {
  transform: scale(1.03);
}
.fondo-tres img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.texto-superior-tres {
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.texto-superior-tres strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  margin-top: 4px;
}

.circulo-tres {
  position: absolute;
  right: 30%;
  top: 10px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  background: #fff;
  transition: transform 0.3s ease;
}

.circulo-tres::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid red;   
  border-left: 6px solid transparent;
  border-radius: 50%;
  transform: rotate(180deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.circulo-tres:hover {
  transform: scale(1.05); 
}

.circulo-tres:hover::after {
  opacity: 1; 
}

.circulo-tres img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero.hero-mobile {
  display: none;
}

.banner {
  display: block;
  width: 80%;
  margin: 20px auto 40px auto;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.banner picture,
.banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.banner img {
  object-fit: cover;
}


.categorias-titulo {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 35px;
  color: #360073;
}

.categorias-titulo-brillan {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #360073;
}

.cat-line {
  display: flex;
  justify-content: flex-start;
  gap: 30px;     
  margin: 10px auto 40px auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cat-block {
  text-align: center;
}

.cat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
}

.cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  border: 3px solid rgba(54, 0, 115, 0.4); 
}

.cat-block span {
  display: block;
  margin-top: 0;
  font-weight: 600;
  font-size: 16px;
  color: #360073;

}

.categorias-wrapper {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.categorias-wrapper-brillan {
  position: relative;
  max-width: 90%;
  margin: 10px auto;
}

.cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: rgba(54, 0, 115, 0.3); 
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.cat-arrow:hover {
  color: rgba(54, 0, 115, 0.7);
}

.cat-arrow.left {
  left: 10px;
}

.cat-arrow.right {
  right: 10px;
}

.productos-linea {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;   
}

.producto {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  transition: box-shadow 0.3s ease;
}

.producto:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.producto-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
}

.producto-info {
  text-align: center;
}

.producto-img a,
.producto-desc a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.producto {
  position: relative;
}

.cat-badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;

  padding: 3px 3px;
  font-size: 11px;
  font-weight: 400;
  border-radius: 4px;
  color: #fff;
  z-index: 2;

  max-width: 90px;    
  text-align: center;      
  white-space: normal;      
  word-break: break-word;    
  line-height: 1.2;
}

.cat-badge-custom {
  display: -webkit-box;
  -webkit-line-clamp: 2;    
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mayorista-msg {
  font-size: 11px;
  margin-top: 1px;
  margin-bottom: 10px;
  color: #8b0000;
  font-weight: 500;
  text-decoration: none;
  display: block;   /* 👈 importante */
}

.mayorista-msg:hover {
  text-decoration: underline;
}


.mayorista-msg.no-click {
  color: #8b0000;
  cursor: default;
  text-decoration: none;
}

.mayorista-msg.no-click:hover {
  text-decoration: none;
}

.badge-liquidacion-home {
  display: inline-block;
  background: #e00000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  margin-bottom: 0;
  margin-top: 12px;
}

.precio-normal-liquidacion {
  text-decoration: line-through;
  opacity: .6;
  margin-right: 6px;
  font-size: 13px;
}

.precio-liquidacion {
  font-size: 18px;
  font-weight: 800;
  color: #e00000;
}

.btn-cart:disabled,
.btn-minus:disabled,
.btn-plus:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.agotado-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e00000;
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 5;
}

.producto-desc {
  font-size: 13px;
  font-weight: 400;
  color: #360073;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;   
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #2e7d32;
}

.toast.warning {
  background: #c62828;
}

.producto-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.producto-rating i {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* estrellas llenas */
.producto-rating .fas.fa-star,
.producto-rating .fas.fa-star-half-alt {
  color: #f5a623;
}

/* estrellas vacías (contorno amarillo) */
.producto-rating .far.fa-star {
  color: #f5a623;
}

.producto-precio {
  margin: 10px 0;
}

.precio-normal {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
  font-size: 13px;
}

.precio-oferta {
  color: #360073;
  font-weight: 550;
  font-size: 17px;
}

.precio-mayorista-text {
  display: block;
  font-size: 12px;
  color: #A8324A;
  margin-top: 6px;
}

.precio-mayorista {
  display: block;
  font-size: 20px;       
  font-weight: 600;
  color: red;       
  margin-top: 2px;
}

.producto-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.producto-actions {
  position: relative;
}

.cantidad-msg {
  position: absolute;
  top: -28px;   
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.btn-minus,
.btn-plus {
  width: 28px;
  height: 26px;
  border: 1px solid #360073;
  background: #fff;
  color: #360073;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 2px;
}

.btn-minus:hover,
.btn-plus:hover {
  background: #360073;
  color: #fff;
}

.cantidad {
  width: 45px;   
  height: 25px;
  font-size: 16px;     
  text-align: center;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cantidad::-webkit-inner-spin-button,
.cantidad::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cantidad[type=number] {
  -moz-appearance: textfield;
}

.btn-cart {
  border: none;
  background: #360073;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-cart:hover {
  background: #4a0099;
}
.cart-ico-item {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.tienda-texto span {
  font-size: 18px;
}

.tienda-texto strong {
  font-size: 32px;
}

.testimonios {
  margin: 40px auto;
  width: 100%;
  overflow: hidden;
  text-align: center;
  color: #360073;
}

.testimonios-linea {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonio {
  flex: 0 0 200px;
  max-width: 200px;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.testimonio-img img {
  width: 120px;
  height: 30px;
  border-radius: 30%;
  margin-bottom: 8px;
}

.testimonio-nombre {
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 5px;
}

.testimonio-texto {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}


/*corazón*/

.producto {
  position: relative;
}

.btn-favorito {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.btn-favorito i {
  font-size: 18px;
  color: #360073;
}

.btn-favorito .fas {
  color: #e53935; 
}



@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tiendas {
  margin: 30px auto;
  text-align: center;
  color: #360073;
}

.tiendas-linea {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; 
  flex-wrap: nowrap; 
}

.tiendas-linea img {
  height: 80px; 
  width: auto;
}


.suscripcion {
  position: relative;
  width: 80%;
  margin: 10px auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  color: #360073;
}

.suscripcion-fondo {
  width: 100%;
  height: auto;
  display: block;
}

.suscripcion-contenido {
  font-family: 'Roboto', sans-serif;
  position: absolute;
  top: 70%;
  left: 10%;
  font-size: 23px;
  transform: translate(-10%, -60%);
  width: 90%;
  max-width: 600px;
  color: #fff;
}

.suscripcion-contenido h2 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.suscripcion-contenido p {
  margin-top: 0;
}

.suscripcion-form {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.suscripcion-form input {
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.suscripcion-botones {
  margin-top: 5px ;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}


.suscripcion-mensaje-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.suscripcion-mensaje {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  max-width: 500px;
  text-align: center;
}

.suscripcion-mensaje.success {
  background: #e6f9ed;
  color: #1e7e34;
  border: 1px solid #b7ebc6;
}

.suscripcion-mensaje.info {
  background: #e8f1ff;
  color: #084298;
  border: 1px solid #b6d4fe;
}

.suscripcion-mensaje.error {
  background: #fdecea;
  color: #842029;
  border: 1px solid #f5c2c7;
}


.btn-principal {
  background: #fff;
  color: #360073;
  padding: 8px 30px;
  border: none;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-principal:hover {
  background: #f2f2f2;     
}

.btn-secundario {
  background: transparent;
  color: #fff;
  padding: 8px 30px;
  border: 2px solid #fff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background: rgba(255,255,255,0.1);
}

.suscripcion { display: block; }
.suscripcion-movil { display: none; }

@media (max-width: 768px) {
  .hero-home {
    height: 200px;
    margin-bottom: 18px;
  }

  .hero-home-slide {
    height: 100%;
  }

  .hero-home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-home-dots {
    bottom: 20px;
    gap: 8px;
    padding: 4px 8px;
  }

  .hero-home-dots span {
    width: 20px;
    height: 3px;
  }

  .hero-home-dots span.active {
    width: 26px;
  }

  .badge-liquidacion-home {
  display: inline-block;
  background: #e00000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 3px;
  border-radius: 3px;
  margin-bottom: 0;
  margin-top: 12px;
}

  .banner {
    width: 95%;
    margin: 1px auto 30px auto;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
  }

  .categorias-scroll > *:first-child,
  .cat-line > *:first-child {
    margin-left: 10px; 
  }

  .categorias-scroll > *:last-child,
  .cat-line > *:last-child {
    margin-right: 10px; 
  }

  .categorias-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    gap: 20px;
  }

  .categorias-linea,
  .categorias-linea-tres {
    display: contents;
  }

  .categorias-linea-tres {
    display: none;
  }

  .bloque-categoria,
  .bloque-categoria-tres {
    flex: 0 0 85%; 
    max-width: 100%;   
    height: 150px;    
    scroll-snap-align: center;
  }

  .categorias-scroll::-webkit-scrollbar {
    display: none;
  }

  .circulo {
    width: 120px;
    height: 120px;
    bottom: 27px;
    right: 10px;
  }

  .circulo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .texto-superior {
    position: absolute;
    top: 90px;
    font-size: 14px;
  }

  .texto-superior strong {
  font-size: 19px;
  font-weight: 600;
  }

  .categorias-titulo {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .categorias-titulo-brillan {
    font-size: 20px;
    margin-top: 20px;
  }

  .cat-line {
    display: flex;
    overflow-x: auto;             
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 0;
    scroll-snap-type: x mandatory;
    width: 100%;
  }

  .cat-block {
    flex: 0 0 25%;                
    scroll-snap-align: center;    
  }

  .cat-circle {
    width: 100px;                
    height: 100px;
  }

  .cat-block span {
    font-size: 14px;   
    font-weight: 600;  
    text-align: center;
    display: block;   
  }
  .categorias-wrapper {
    max-width: 100%;  
    margin: 0;         
  }


  .productos-linea {
    grid-template-columns: repeat(2, 1fr); 
    max-width: 100%;   
    padding: 0 10px;
    margin-bottom: 10px;  
  }

  .testimonio:nth-child(n+5) {
    display: none;
  }

  .testimonios {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .testimonios-linea {
    gap: 10px;
  }

  .testimonio {
    flex: 0 0 160px;
    max-width: 160px;
    padding: 10px;
  }

  .testimonio-img img {
    width: 100px;
    height: 25px;
  }

  .testimonio-nombre {
    font-size: 12px;
  }

  .testimonio-texto {
    font-size: 11px;
  }


  .tiendas h2{
    font-size: 16px;

  }
  .tiendas-linea {
    gap: 20px; 
  }
  .tiendas-linea img {
    height: 40px; 
    width: auto;
  }

.suscripcion-movil {
  position: relative;
  width: 95%;
  margin: 15px auto;
  border-radius: 8px;
  overflow: hidden;
}

.suscripcion-movil-fondo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.suscripcion-movil-contenido {
  position: absolute;
  top: 58%;
  left: 47%;
  transform: translate(-50%, -50%);
  width: 95%;
  text-align: start;
  color: #fff;
  padding-left: 18px;

}

.suscripcion-movil-contenido h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.suscripcion-movil-contenido p {
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 5px;
  margin-top: 5px;
}

/* inputs uno arriba del otro */
.suscripcion-movil-form {
  display: flex;
  flex-direction: column;   
  gap: 12px;
  margin-top: 5px;
}

.suscripcion-movil-input {
  width: 100%;             
  padding: 8px 10px;
  border-radius: 20px;
  border: none;
  box-sizing: border-box;
  font-size: 16px;
}

/* fila de botones */
.suscripcion-movil-botones {
  display: flex;
  flex-direction: row;       
  gap: 10px;
  justify-content: center;
  margin-top: 2px;
}

.btn-movil-principal,
.btn-movil-secundario {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
}

/* estilos de botones */
.btn-movil-principal {
  background: #fff;
  color: #360073;
  border: none;
  font-weight: 600;
}

.btn-movil-secundario {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 600;
  text-decoration: none;
}

  .suscripcion { display: none; }
  .suscripcion-movil { display: block; }

}
