/* ============================================================
   Fondo global solo para la página HOME
   ============================================================ */
body.home-page {
    background-color: #000;
}

/* =======================================================================================
   HERO – EFECTO DESVANECER / SCALE AL HACER SCROLL
   =======================================================================================*/
.hero-ls {
  width: 100%;
  height: 100vh;
  background-image: url("../assets/liam_hero.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4rem;

  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s ease;
}

/* Degradado superior sobre el hero */
.hero-ls::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
    pointer-events: none;
}


/* Cuando desaparece al hacer scroll */
.hero-ls.hide {
  opacity: 0;
  transform: translateY(-60px) scale(.96);
}

/* Contenido */
.hero-ls__content {
  text-align: center;
  z-index: 10;
}

/* Botón hero */
.btn-hero {
  padding: 14px 34px;
  background: #d6bd76 !important;
  color: #111;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1rem;

  border: none;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease;
}

.btn-hero:hover {
  background: #e6cb8c !important;
  transform: translateY(-2px);
}

/* =======================================================================================
   CATEGORÍAS – ANIMACIÓN + EFECTO GLOW PREMIUM
   =======================================================================================*/
.ls-categorias {
  background: #FFF;
  padding: 6rem 0 5rem;
  text-align: center;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

/* cuando aparece */
.ls-categorias.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== TÍTULO MEJORADO ===== */
.ls-title {
  font-size: 2.6rem;
  font-weight: 300;
  color: #000;
  letter-spacing: 1px;
  margin-bottom: 3.5rem;

  position: relative;
  display: inline-block;
}

/* Línea dorada debajo */
.ls-title::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, #d6bd76, transparent);
}

/* ===== GRID ===== */
.categorias-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 0 2rem;
}

/* =======================================================================================
   CARD DE CATEGORÍA – PREMIUM
   =======================================================================================*/
.categoria-item {
  background: #FFFFFF;
  border: 1.5px solid #eaeaea;
  border-radius: 18px;

  width: 165px;
  height: 165px;
  padding: 1.2rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: .35s ease;
  position: relative;

  box-shadow: 0 6px 25px rgba(0,0,0,0.06);

  opacity: 0;
  transform: translateY(25px);
}

/* Animación en cascada */
.categoria-item:nth-child(n) {
  transition-delay: calc(var(--i) * 0.07s);
}

.ls-categorias.show .categoria-item {
  opacity: 1;
  transform: translateY(0);
}

/* Icono más grande */
.categoria-item img {
  width: 48px;
  opacity: .85;
  filter: brightness(0) invert(25%);
  transition: .3s;
}

/* Texto */
.categoria-item span {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: .3s ease;
}

/* Hover premium */
.categoria-item:hover {
  transform: translateY(-10px) scale(1.06);
  border-color: #d6bd76;
  box-shadow: 0 12px 34px rgba(214,189,118,0.35);
}

/* Halo dorado */
.categoria-item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(214,189,118,0.22), transparent 70%);
  opacity: 0;
  transition: .35s;
  z-index: -1;
}

.categoria-item:hover::before {
  opacity: 1;
}

/* Icono dorado al hover */
.categoria-item:hover img {
  filter: brightness(1) sepia(1) hue-rotate(10deg) saturate(500%) brightness(1.2);
}

.categoria-item:hover span {
  color: #000;
}

/* Seleccionada */
.categoria-item.active {
  border-color: #d6bd76;
  background: #fff9ea;
  box-shadow: 0 14px 34px rgba(214,189,118,0.35);
}

.categoria-item.active img {
  filter: brightness(1) sepia(1) hue-rotate(10deg) saturate(500%) brightness(1.2);
}

.categoria-item.active span {
  color: #000;
}


/* RESPONSIVE */
@media (max-width: 480px) {
  .categoria-item {
    width: 115px;
    height: 120px;
  }
  .categoria-item img {
    width: 36px;
  }
  .categoria-item span {
    font-size: .8rem;
  }
}

/* ======================================================================
   PRODUCTOS DESTACADOS + PARALLAX PREMIUM
   ====================================================================== */

.destacados-section {
  background: #fff;
  padding: 5rem 1rem;
  position: relative;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}


/* Animación cuando entra al viewport */
.destacados-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* TITLE */
.section-title {
  font-size: 2.4rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000 !important;
  margin-bottom: 3rem;
}

/* Línea dorada debajo */
.section-title::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, #d6bd76, transparent);
}

/* Sombra negra arriba */
.parallax-transition::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    z-index: 2;
    pointer-events: none;
}

/* Sombra negra abajo */
.parallax-transition::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    z-index: 2;
    pointer-events: none;
}


/* ============================== */
/*          CARD PRODUCT          */
/* ============================== */

.card-product {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  transition: .35s ease;
  cursor: pointer;

  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.card-product:hover {
  transform: translateY(-8px);
  border-color: #d6bd76;
  box-shadow: 0 12px 32px rgba(214,189,118,0.35);
}

/* Imagen con efecto PARALLAX */
.card-product .product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;

  transition: transform .6s ease, filter .3s ease;
  will-change: transform;
  position: relative;
}

.card-product:hover .product-img {
  filter: brightness(1.15);
}


/* Parallax dinámico */
.card-product.parallax-active .product-img {
  transform: translateY(var(--parallax, 0px));
}

/* ============================== */
/*     TÍTULO / PRECIO UX-SEO     */
/* ============================== */

.product-title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0F0F0F;
  min-height: 45px;
}

.product-price {
  color: #d6bd76;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================== */
/*       BOTÓN AGREGAR PREMIUM    */
/* ============================== */

.btn-add {
  border: 1.8px solid #d6bd76;
  color: #d6bd76;
  padding: .55rem 1.3rem;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;

  transition: .3s ease;
}

.btn-add:hover {
  background: #d6bd76;
  color: #111;
}

.btn-add i {
  margin-left: 4px;
}

/* BASE DEL PARALLAX*/
.parallax-transition {
  width: 100%;
  height: 45vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  position: relative;
    overflow: hidden;
}

/* Cuando aparece */
.parallax-transition.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Imagen 1 (entre HERO y CATEGORÍAS) === */
.parallax-uno {
  background-image: url("../assets/banner1.png"); /* CAMBIA A LA QUE QUIERAS */
}

/* === Imagen 2 (entre CATEGORÍAS y DESTACADOS) === */
.parallax-dos {
  background-image: url("../assets/banner2.jpg"); /* TU SEGUNDA IMAGEN */
}

/* ===== MODAL PROMOCIÓN ===== */
.promo-modal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.modal-backdrop.show {
  opacity: 0.85;
  background: radial-gradient(circle, #111 0%, #000 70%);
}


.promo-modal .modal-body {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

/* Imagen / video */
.promo-img,
.promo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.promo-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #d4af37; /* dorado Liam */
  border: 1px solid rgba(212,175,55,0.4);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all .25s ease;
}

.promo-close:hover {
  background: #d4af37;
  color: #000;
  transform: scale(1.08);
}

/* ===========================
   VIDEO PROMO RESPONSIVE
=========================== */

.promo-video {
  max-height: 90vh;
  object-fit: cover;
  border-radius: 18px;
  background: #000;
}

/* Desktop */
@media (min-width: 768px) {
  .promo-video-desktop {
    display: block;
  }
  .promo-video-mobile {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .promo-video-desktop {
    display: none;
  }
  .promo-video-mobile {
    display: block;
    height: 85vh;
  }
  .promo-dialog {
    max-width: 100vw;
    margin: 0;
  }

  .promo-modal .modal-content {
    border-radius: 0;
  }

  .promo-modal .modal-body {
    overflow: hidden;
    touch-action: pan-y;
  }
}


@media (max-width: 767px) {
  .promo-video {
    height: 85vh;
    object-fit: cover;
  }
}

/* ===========================
   HINT UX MOBILE
=========================== */

.promo-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #d6bd76;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .03em;
  animation: pulseHint 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.precio-descuento {
  color: #d6bd76;
  font-size: 1.25rem;
  font-weight: 700;
}

.precio-original {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-top: -6px;
}
