/* INDICADORES DEL CARRUSEL */
.yape-indicators {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.yape-dot {
    position: relative;
    height: 8px;
    border-radius: 50px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: width 0.45s cubic-bezier(.4,0,.2,1);
    width: 8px;
    flex-shrink: 0;
}

.yape-dot-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: #ffffff;
    border-radius: 50px;
    width: 0px;
}

/* ========================= */
/* FLECHAS PRINCIPAL (PORTADA) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  transform: scale(1.9);
}

/* Flechas personalizadas de portada */
.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: white;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.custom-arrow:hover {
  opacity: 1;
}

#prevBtn { left: 50px; }
#nextBtn { right: 50px; }

/* ========================= */
/* TITULOS */
.titulo1, .titulo2, .titulo3 {
  position: relative;
  text-align: center;
  margin: 50px 0;
}

.titulo1 span, .titulo2 span, .titulo3 span {
  background: #fff;
  padding: 0 15px;
  color: #000;
  font-weight: bold;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  font-family: "Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
}

.titulo1::before, .titulo2::before, .titulo3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  z-index: 0;
}



/* ========================= */
/* PRODUCTOS */
.product-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 600px; /* 🔥 altura fija (ajústala si quieres más largo) */
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 mantiene proporción sin deformar */
  transition: all 0.3s ease;
}

/* Imagen principal */
.img-main {
  position: relative;
  z-index: 1;
}

/* Imagen hover */
.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* 🔥 EFECTO ROME */
.product-card:hover .img-hover {
  opacity: 1;
  transform: scale(1.09);
}

.product-card:hover .img-main {
  opacity: 0;
  transform: scale(1.09);
}
.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  color: inherit;
}


.product-desc {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
  font-family:"Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
}

.product-price {
  font-family: "Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #000;
}
.carousel-control-prev,
.carousel-control-next {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#productCarousel .carousel-item .row,
#productCarousel2 .carousel-item .row {
  max-width: 1500px;
  margin: 0 auto;
}

#productCarousel .carousel-control-prev-icon,
#productCarousel .carousel-control-next-icon,
#productCarousel2 .carousel-control-prev-icon,
#productCarousel2 .carousel-control-next-icon  {
  transform: scale(1.9);
  filter: invert(1);
  width: 8px;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next,
#productCarousel2 .carousel-control-prev,
#productCarousel2 .carousel-control-next  {
  width: 35px;
  height: 35px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #cfcfcf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

#productCarousel,
#productCarousel2 {
  position: relative;
  overflow: visible;
}

#productCarousel .carousel-control-prev,
#productCarousel2 .carousel-control-prev {
  left: 90px;
}

#productCarousel .carousel-control-next,
#productCarousel2 .carousel-control-next {
  right: 90px;
}

#productCarousel:hover .carousel-control-prev,
#productCarousel:hover .carousel-control-next,
#productCarousel2:hover .carousel-control-prev,
#productCarousel2:hover .carousel-control-next {
  opacity: 1;
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover,
#productCarousel2 .carousel-control-prev:hover,
#productCarousel2 .carousel-control-next:hover {
  background-color: #888;
}



/* Tarjeta "Ver más" */
.product-card.ver-mas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 250px;
  padding: 40px;
  text-align: center;
}

.ver-mas-title {
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 2rem;
  font-family:'Roboto', sans-serif;
}

.ver-mas-link {
  position: relative;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  padding-right: 25px;
  font-family:'Roboto', sans-serif;
}

.ver-mas-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.ver-mas-link::before {
  content: "→";
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.ver-mas-link:hover::after { width: 100%; }
.ver-mas-link:hover::before { opacity: 1; transform: translateX(5px); }


/* ========================= */
/* BOTON VER MÁS COLECCION */
.btn-ver {
  margin-top: 60px;
  margin-left: 410px;
  width: 180px;
  height: 50px;
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-ver:hover {
  background-color: #000;
  color: #fff;
}

/* ========================= */
/* PRODUCT CAROUSEL 3 - CATEGORIAS */
#productCarousel3 {
  margin-top: -30px;
}

#productCarousel3 .carousel-item .row {
  max-width: 1700px;
  margin: 0 auto;
}

#productCarousel3 .category-img {
  width: 400px;
  height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1px auto;
}

#productCarousel3 .carousel-control-prev-icon,
#productCarousel3 .carousel-control-next-icon {
  transform: scale(1.9);
  filter: invert(1);
  width: 8px;
}

#productCarousel3 .carousel-control-prev,
#productCarousel3 .carousel-control-next {
  width: 35px;
  height: 35px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background-color: #cfcfcf;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

#productCarousel3:hover .carousel-control-prev,
#productCarousel3:hover .carousel-control-next { opacity: 1; }

#productCarousel3 .carousel-control-prev:hover,
#productCarousel3 .carousel-control-next:hover { background-color: #888; }

#productCarousel3 .carousel-control-prev { left: 130px; }
#productCarousel3 .carousel-control-next { right: 130px; }

/* ========================= */
/* CATEGORIAS */
/* Mantener estilos existentes de categoría */
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  transition: 0.3s ease;
}

.category-overlay span {
  font-family: "Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: white;
  text-transform: uppercase;
  position: relative;
  font-weight: bold;
}

.category-overlay span::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: white;
  margin: 5px auto 0;
}

/* Hover efecto imagen y overlay */
.category-card-link:hover .category-card .category-img {
  transform: scale(1.1);
}

.category-card-link:hover .category-card .category-overlay {
  background: rgba(0,0,0,0.75);
}

.category-card-link:hover .category-overlay span {
  transform: scale(1.1);
}

/* Estilo Ver más → afuera de la imagen */
.category-ver-mas {
  display: flex;
  margin-top: 15px;
  margin-left: 15px; 
  font-weight: bold;
  font-family: 'Urban', sans-serif;
  font-size: 18px;
  color: #363636;
  text-decoration: underline;
  transition: all 0.3s ease;
  padding-bottom: 40px;
}

/* Hover sincronizado: imagen + Ver más */
.category-card-link:hover .category-ver-mas {
  transform: translateX(5px);
  color: black;
}

/* ========================= */
/* PORTADA CARRUSEL (LOGOS) */

#carruselExample {
  height: 850px; /* 🔥 aquí lo haces más grande */
  position: relative;
  margin-top: 100px;
  overflow: hidden;
}

#carruselExample .carousel-inner,
#carruselExample .carousel-item {
  height: 100%;
}

#carruselExample img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clave para que no se deformen */
}

#page-wrapper {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-wrapper.loaded {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* OCULTAR/MOSTRAR SEGÚN DISPOSITIVO */
.categorias-scroll-movil {
    display: none;
}
/*RESPONSIVE*/

@media (max-width: 768px) {

    /* ========================= */
    /* CARRUSEL PORTADA */
    #carruselExample {
        margin-top: 80px;
        height: 21vh;
    }

    .yape-dot {
      width: 5px;
      height: 5px;
    }

    
    .yape-indicators{
      bottom: 10px;
    }

    
    .custom-arrow {
      top: 19% !important;
      transform: translateY(-50%) !important;
      color: whitesmoke;
      font-size: 25px;
      transition: opacity 0.3s ease;
    }

    #prevBtn { left: 10px; }
    #nextBtn { right: 10px; }

    
    /* ========================= */
    /* TITULOS */
    .titulo1, 
    .titulo2,
    .titulo3 {
      margin: 25px 0 35px 0 !important;
        }
    .titulo1 span, .titulo2 span, .titulo3 span {
        font-size: 1.2rem;
        letter-spacing: 1px;
        padding: 0 10px;
    }
    .titulo3 {
        top: 7px;
    }
   /* ========================= */
/* PRODUCTOS MÁS PEQUEÑOS */
.product-img-wrapper {
    height: 300px;
}

.product-desc {
    font-size: 0.65rem;
    margin-top: 4px;
}

.product-price {
    font-size: 0.80rem !important;
}

.ver-mas-title {
  text-align: center;
}
.ver-mas-link {
  text-align: center;
}
/* ========================= */ 
/* SECCION VERANO / BIVIDIS */ 
.verano { 
  flex-direction: column !important; 
  padding-left: 0 !important; 
  align-items: center !important; 
  margin-top: 30px !important; 
  gap: 0 !important; 
} 
.verano img { 
  width: 100% !important; 
  max-width: 300px; 
} 
  .verano div { 
    padding-left: 0 !important; 
    align-items: center !important; 
  } 
  .verano h2 { 
    margin: 20px 0 0 0 !important; 
    padding-left: 0 !important; 
    font-size: 1.2rem; 
    text-align: center; 
  } 
  .verano p { 
    margin: 20px 0 0 0 !important; 
    padding-left: 0 !important; 
    font-size: 12px !important; 
    text-align: center; 
  } 
  .btn-ver { 
    margin: 20px auto 0 auto !important; 
    padding-left: 0 !important; 
    width: 165px;
    height: 35px;
    font-size: 15px;
    background-color: #000;
    color: #fff;
  }


/* ========================= */
/* CATEGORIAS - 2 por slide en columna */
#productCarousel3 .row {
    flex-direction: column !important;
    align-items: center !important;
}

#productCarousel3 .col-6 {
    width: 80% !important;
}

#productCarousel3 .col-6:nth-child(n+3) {
    display: none;
}

#productCarousel3 .category-img {
     height: 45vw; /* 🔥 responsive real */
    max-height: 300px;
}

    /* Ocultar carrusel Bootstrap en móvil */
    #productCarousel3 {
        display: none !important;
    }

    /* Mostrar scroll horizontal en móvil */
    .categorias-scroll-movil {
        display: flex;
        overflow-x: auto;
        margin-top: -20px;
        gap: 12px;
        padding: 20px 16px;
        margin-left: 25px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .categoria-scroll-item {
        flex: 0 0 85vw;
        scroll-snap-align: start;
        text-decoration: none;
        color: inherit;
    }

    .categoria-scroll-item .category-card {
        border-radius: 12px;
        overflow: hidden;
    }

    .categoria-scroll-item .category-img {
        width: 100%;
        height: 60vw;
        max-height: 320px;
        object-fit: cover;
        display: block;
    }

    .categoria-scroll-item .category-overlay span {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .categoria-scroll-item .category-ver-mas {
        font-size: 13px;
        margin-top: 8px;
        margin-left: 4px;
    }
    .category-ver-mas {
      padding-bottom: 10px;
}
}