:root {
  --gris: #f2f2f2;
  --negro: #222222;
  --azul: #4b6f9c;
  --blanco: #ffffff;
  --gris-texto: #777777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gris);
  color: var(--negro);
  overflow-x: hidden;
}

.navbar {
  background: rgba(242, 242, 242, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 0;
  z-index: 1000;
}

.logo-img-box {
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  overflow: hidden;
 
 
}

.logo-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.navbar-brand {
  font-weight: 700;
  color: var(--negro);
  letter-spacing: 1px;
  font-size: 1.35rem;
}

.nav-link {
  color: var(--negro);
  font-weight: 500;
  margin: 0 8px;
  position: relative;
}

.nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--azul);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--azul);
}

.hero-carousel {
  width: 100%;
  height: 80vh;
  margin-top: 84px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 34, 34, 0.86),
    rgba(34, 34, 34, 0.48),
    rgba(34, 34, 34, 0.08)
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--blanco);
  max-width: 580px;
  margin-left: 8%;
}

.hero-content span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  margin: 22px 0 14px;
  line-height: 1;
}

.hero-content p {
  font-size: 1rem;
  color: #e8e8e8;
  margin-bottom: 22px;
}

.hero-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blanco);
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--azul);
  color: var(--blanco);
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn:hover {
  background: var(--blanco);
  color: var(--negro);
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--negro);
  font-size: 1.1rem;
  transition: 0.3s;
}

.hero-arrow:hover {
  background: var(--azul);
  color: white;
}

.hero-arrow.left {
  left: 24px;
}

.hero-arrow.right {
  right: 24px;
}

section {
  padding: 70px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--negro);
}

.section-subtitle {
  color: var(--gris-texto);
  margin-bottom: 35px;
}

.search-section {
  padding-bottom: 25px;
}

.search-box {
  background: var(--blanco);
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-box i {
  color: var(--azul);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
}

#categorias {
  padding-top: 45px;
  padding-bottom: 35px;
  overflow: visible;
}

.category-pill-slider {
  width: 100%;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 14px 6px 26px;
  white-space: nowrap;
  opacity: 1 !important;
  filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background: transparent !important;
}

.category-pill-slider::before,
.category-pill-slider::after {
  display: none !important;
  content: none !important;
}

.category-pill-slider::-webkit-scrollbar {
  height: 6px;
}

.category-pill-slider::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 20px;
}

.category-pill-slider::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 20px;
}

.category-pill {
  border: none;
  flex: 0 0 auto;
  padding: 13px 26px;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
  transition: 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.category-pill:hover,
.category-pill.active {
  background: #222222;
  color: #ffffff;
  transform: translateY(-3px);
  opacity: 1 !important;
}

.category-product-section {
  margin-bottom: 75px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}

.slider-header h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.slider-header p {
  color: var(--gris-texto);
  margin: 0;
}

.featured-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.featured-slider::-webkit-scrollbar {
  height: 6px;
}

.featured-slider::-webkit-scrollbar-track {
  background: #e4e4e4;
  border-radius: 20px;
}

.featured-slider::-webkit-scrollbar-thumb {
  background: var(--negro);
  border-radius: 20px;
}

.featured-product-card {
  min-width: 330px;
  max-width: 500px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.featured-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.featured-controls button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--negro);
  color: white;
  transition: 0.3s;
}

.featured-controls button:hover {
  background: var(--azul);
  transform: translateY(-3px);
}

.product-card {
  background: transparent;
  border: none;
  margin-bottom: 34px;
  position: relative;
  transition: 0.3s;
}

.product-img-box {
  background: #ffffff;
  height: 360px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  transition: 0.45s;
}

.product-img-box.perfume-card {
  background: #ffffff;
}

.product-img-box.perfume-card img {
  padding: 4px;
  background: #ffffff;
}

.product-card:hover img {
  transform: scale(1.06);
}

.heart {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--negro);
  z-index: 3;
  transition: 0.3s;
}

.heart:hover {
  color: #d62828;
  transform: scale(1.1);
}

.product-info {
  padding: 13px 4px 0;
}

.product-price {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-name {
  font-size: 0.93rem;
  font-weight: 400;
  margin-bottom: 5px;
  color: var(--negro);
}

.product-category {
  color: var(--gris-texto);
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.product-status {
  font-size: 0.86rem;
  color: var(--negro);
}

.tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--negro);
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  z-index: 3;
}

.catalog-hidden {
  display: none;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-btn {
  border: none;
  background: var(--blanco);
  color: var(--negro);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--negro);
  color: var(--blanco);
}

.empty-message {
  display: none;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 24px;
  color: var(--gris-texto);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

footer {
  background: var(--negro);
  color: var(--blanco);
  padding: 60px 0 25px;
}

footer h4,
footer h5 {
  font-weight: 700;
}

footer p,
footer a {
  color: #cfcfcf;
  font-size: 0.92rem;
  text-decoration: none;
}

footer a:hover {
  color: var(--blanco);
}

.footer-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: 0.3s;
}

.footer-icon:hover {
  background: var(--azul);
  transform: translateY(-4px);
}

.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  color: white;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .hero-carousel,
  .hero-slide {
    height: min(calc(100vw * 16 / 9), calc(100svh - 74px));
    min-height: 560px;
    max-height: 760px;
  }

  .hero-carousel {
    margin-top: 74px;
    isolation: isolate;
  }

  .hero-slide {
    background-size: cover;
    background-position: center;
    background-color: var(--negro);
    align-items: flex-end;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  .hero-slide::before {
    background: linear-gradient(
      180deg,
      rgba(34, 34, 34, 0.08) 0%,
      rgba(34, 34, 34, 0.42) 48%,
      rgba(34, 34, 34, 0.92) 100%
    );
  }

  .hero-content {
    margin-left: 6%;
    margin-right: 6%;
    max-width: 88%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.04;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .hero-price {
    font-size: 1.45rem;
  }

  .hero-btn {
    margin-top: 14px;
    padding: 10px 22px;
  }

  .hero-arrow {
    display: none;
  }

  .product-img-box {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .product-img-box img {
    padding: 12px;
  }

  .product-card:hover img {
    transform: none;
  }

  .featured-slider {
    gap: 14px;
    padding-inline: 2px 22px;
  }

  .featured-product-card {
    min-width: min(82vw, 320px);
    max-width: min(82vw, 320px);
  }

  .featured-controls {
    display: none;
  }

  .slider-header {
    align-items: flex-start;
  }

  section {
    padding: 50px 0;
  }
}


@media (max-width: 480px) {
  .hero-carousel,
  .hero-slide {
    height: min(calc(100vw * 16 / 9), calc(100svh - 68px));
    min-height: 540px;
    max-height: 720px;
  }

  .hero-carousel {
    margin-top: 68px;
  }

  .hero-slide {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .hero-content span {
    font-size: 0.78rem;
    padding: 7px 13px;
  }

  .hero-content h1 {
    margin: 16px 0 10px;
  }

  .category-pill-slider,
  .filter-bar,
  .featured-slider {
    scrollbar-width: none;
  }

  .category-pill-slider::-webkit-scrollbar,
  .filter-bar::-webkit-scrollbar,
  .featured-slider::-webkit-scrollbar {
    display: none;
  }
}
