@import "/public/css/home-global.css";

@import "/public/components/home-components/whatsapp-chat-modal/WhatsAppChatModal.css";
@import "/public/components/home-components/site-header/SiteHeader.css";
@import "/public/components/home-components/site-footer/SiteFooter.css";
@import "/public/components/global-components/paginator/Paginator.css";

@import "/public/components/home-components/featured-products/FeaturedProducts.css";
@import "/public/components/home-components/banner-swiper/BannerSwiper.css";
@import "/public/components/home-components/product-modal/ProductModal.css";
@import "/public/components/home-components/sign-in-modal/SignInModal.css";
@import "/public/components/home-components/contact-form/ContactForm.css";

#site-main > #banner {
  padding: 0;
}

#banner .swiper-slide {
  background: no-repeat no-repeat center center;
  background-size: cover;
}

#banner .slide-1 {
  background-image: url("/public/multimedia/images/foto-slide-1.png");
}

#banner .slide-2 {
  background-image: url("/public/multimedia/images/foto-slide-2.png");
}

#banner .slide-3 {
  background-image: url("/public/multimedia/images/foto-slide-3.png");
}

@media (max-width: 500px) {
  #banner .slide-3 {
    background-image: url("/public/multimedia/images/SLIDE_3.png");
  }
  #banner .slide-2 {
    background-image: url("/public/multimedia/images/SLIDE_2.png");
  }
  #banner .slide-1 {
    background-image: url("/public/multimedia/images/SLIDE_1.png");
  }
}

/*****************************/

#categories {
  background: #232323;
}

#site-main > #categories {
  padding: 0 !important;
}

#categories .category {
  position: relative;
  background: no-repeat no-repeat center center;
  background-size: cover;
  height: 700px;
  transition: transform 0.5s ease;
  overflow: hidden;
}

#categories .category:hover .category-button {
  color: #cca45e;
  border-color: #cca45e;
}

#categories .category-button {
  padding: 0.5rem 0;
  position: absolute;
  text-decoration: none;
  color: #d1c2a8;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  display: flex;
  flex-direction: column;
  border-radius: 5rem;
  background-color: rgba(16, 16, 16, 0.8);
  align-items: center;
  border: solid #d1c2a8 1px;
  font-size: 1.5rem;
  /* From https://css.glass */
  background: #22222257;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid #d1c2a8;
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.category:hover .category-bg {
  transform: scale(1.1);
}

.category-button {
  position: relative;
  z-index: 2;
}

#categories .category-button:hover {
  color: #cca45e;
  border-color: #cca45e;
}

#categories .category-button span {
  position: absolute;
  top: -168px;
  font-size: 160px;
}

#categories .category-watches .category-button {
  top: 10%;
}

#categories .category-devices .category-button {
  top: 50%;
  transform: translate(-50%, -50%);
}

#categories .category-e-cigarettes .category-button {
  bottom: 10%;
}

#categories .category-fragancias .category-button {
  top: 10%;
}

/*****************************/

/* ── Section Header ── */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-header__line {
  display: block;
  width: 60px;
  height: 1px;
  background: #9c6b4b;
  opacity: 0.5;
}

.section-header__diamond {
  color: #9c6b4b;
  font-size: 0.4rem;
  line-height: 1;
  opacity: 0.7;
}

.section-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.section-header__title .text-accent {
  color: #b1907c;
  font-style: italic;
}

.section-header__subtitle {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ── Section Header Animation ── */

.section-header.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header.animate-on-scroll .section-header__ornament,
.section-header.animate-on-scroll .section-header__title,
.section-header.animate-on-scroll .section-header__subtitle {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.animate-on-scroll.visible .section-header__ornament {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.section-header.animate-on-scroll.visible .section-header__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.section-header.animate-on-scroll.visible .section-header__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/*****************************/

#nosotros {
  background: #f8f6f3;
}

#nosotros p:last-child {
  margin-bottom: 0;
}

/*****************************/

#contact .image-wrapper img {
  width: 100%;
}

#contact .info-wrapper {
  padding: 3rem;
}

#contact .info-wrapper h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#contact .info-wrapper p {
  color: var(--secondary);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

#contact .info-wrapper a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

#contact .info-wrapper a:hover {
  opacity: 0.75;
}

.category-50 {
  height: 350px !important;
}

/*** Hero Slideshow ***/

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide--active {
  opacity: 1;
}

@media (min-width: 768px) {
  .slide-fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideFadeInLeft 0.5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;
  }

  .slide-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideFadeInRight 0.5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;
  }

  .fade-in {
    opacity: 0;
    animation: fadeIn 0.1s ease forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;
  }
}

@keyframes slideFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFadeInRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

