/* ===============================================
   DROPSTATION · HOME / PUBLIC CSS
   Hero, product cards, brand cards, categorías
   =============================================== */

/* ─── LAYOUT ─── */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}
.section__title .grad {
  background: linear-gradient(90deg, #fff, var(--purple-light), #fff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
  0%   { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.section__subtitle {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 500px;
  margin-top: 10px;
}

.section__link {
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.section__link:hover { color: var(--purple); }

/* ─── NAVBAR ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.nav__search input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 42px;
  color: var(--text);
  font-size: 14px;
  transition: all .2s;
}
.nav__search input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
}
.nav__search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-mute);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.nav__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .2s;
  position: relative;
  cursor: pointer;
}
.nav__btn:hover { border-color: var(--purple); color: var(--purple-light); }
.nav__btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--purple);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

@media (max-width: 720px) {
  .nav__search { display: none; }
}

/* ─── HERO CAROUSEL ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(10,10,10,.5) 50%, rgba(10,10,10,.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.4);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-light);
  width: fit-content;
  margin-bottom: 20px;
}
.hero__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hero__title .outline {
  -webkit-text-stroke: 1.5px var(--purple-light);
  color: transparent;
}

.hero__desc {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 0 32px;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__cta .btn {
  padding: 14px 28px;
  font-size: 15px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  transition: all .25s;
  opacity: 0;
}
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-50%) scale(1.1); }
.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero__dot {
  width: 32px;
  height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.hero__dot.is-active { background: rgba(255,255,255,.5); width: 56px; }
.hero__dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--purple-light);
  transform-origin: left;
  animation: heroProgress 6s linear;
}
@keyframes heroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero__content { padding: 100px 20px 120px; }
  .hero__arrow { display: none; }
}

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}
.product-card__img,
.product-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.product-card__video {
  opacity: 0;
  pointer-events: none;
}
.product-card:hover .product-card__video {
  opacity: 1;
}
.product-card:hover .product-card__img {
  opacity: 0;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  z-index: 2;
}

.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all .2s;
  cursor: pointer;
  z-index: 2;
}
.product-card__fav:hover { background: rgba(239,68,68,.8); }
.product-card__fav.is-active {
  color: var(--red);
  background: rgba(10,10,10,.8);
}
.product-card__fav.is-active svg { fill: var(--red); }

.product-card__info {
  padding: 16px;
}
.product-card__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--text);
  /* 2 líneas máx */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card__price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.product-card__add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all .2s;
  cursor: pointer;
}
.product-card__add:hover {
  background: var(--purple-dark);
  transform: scale(1.1);
}

/* ─── BRAND CARDS ─── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
}
.brand-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
}
.brand-card__logo span { display: block; }
.brand-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.brand-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin: 0;
  text-transform: uppercase;
}
.brand-card__stats {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0;
}

/* ─── CATEGORY CARDS ─── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease;
}
.category-card:hover { transform: scale(1.02); }
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
}
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.category-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* ─── FOOTER ─── */
.footer {
  margin-top: 80px;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
