/* Banner de Promociones (SpaceHost). Colores y tipografía del tema Tienda Vinilos. */
.sh-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: #050505;
}
.sh-hero__slides,
.sh-hero__slide {
  position: absolute;
  inset: 0;
}
.sh-hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.sh-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}
/* El hero del tema ya mide una pantalla; dentro del carrusel ocupa la diapositiva. */
.sh-hero__slide > section {
  height: 100%;
  min-height: 0;
}

.sh-promo {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}
.sh-hero--uno .sh-promo {
  min-height: inherit;
}
.sh-promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sh-promo__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 5 5 / calc(var(--sh-oscurecer, 0.45) + 0.3)) 0%, rgb(5 5 5 / var(--sh-oscurecer, 0.45)) 45%, rgb(5 5 5 / calc(var(--sh-oscurecer, 0.45) * 0.4)) 100%),
    linear-gradient(0deg, #050505 0%, transparent 25%);
}
.sh-promo--centro .sh-promo__velo {
  background:
    radial-gradient(ellipse at center, rgb(5 5 5 / calc(var(--sh-oscurecer, 0.45) + 0.2)), rgb(5 5 5 / var(--sh-oscurecer, 0.45)) 70%),
    linear-gradient(0deg, #050505 0%, transparent 25%);
}
.sh-promo__contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1rem 4rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .sh-promo__contenido { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .sh-promo__contenido { padding-inline: 2rem; }
}
/* Con flechas a los costados (escritorio), el texto no se mete debajo de ellas. */
@media (min-width: 768px) {
  .sh-hero .sh-promo__contenido { padding-inline: 5.5rem; }
}
.sh-promo--centro .sh-promo__contenido {
  text-align: center;
}
.sh-promo__etiqueta {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: #dc2626;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sh-promo__titulo {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.sh-promo--centro .sh-promo__titulo,
.sh-promo--centro .sh-promo__texto {
  margin-inline: auto;
}
.sh-promo__texto {
  max-width: 38rem;
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: #d4d4d8;
}
.sh-promo__boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.sh-promo__boton:hover,
.sh-promo__boton:focus-visible {
  background: #b91c1c;
  box-shadow: 0 0 30px rgb(220 38 38 / 0.4);
}
.sh-promo__link-total {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sh-promo--solo-imagen .sh-promo__img {
  object-fit: cover;
}

/* Controles */
.sh-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: -1.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 9999px;
  background: rgb(5 5 5 / 0.4);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
  touch-action: manipulation;
}
.sh-hero__nav:hover {
  background: #dc2626;
  border-color: #dc2626;
}
.sh-hero__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sh-hero__nav--prev { left: 1rem; }
.sh-hero__nav--next { right: 1rem; }
.sh-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 5;
  display: flex;
  gap: 0.25rem;
  transform: translateX(-50%);
}
.sh-hero__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.sh-hero__dot span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.4);
  transition: width 0.3s, background-color 0.3s;
}
.sh-hero__dot.is-active span {
  width: 1.75rem;
  background: #dc2626;
}
/* El indicador "Scroll" de la portada choca con los puntos. */
.sh-hero .scroll-bounce {
  display: none;
}

@media (max-width: 767px) {
  .sh-hero__nav { display: none; }
  .sh-promo { align-items: flex-end; }
  .sh-promo__contenido { padding-bottom: 5.5rem; }
  .sh-promo__velo {
    background:
      linear-gradient(0deg, rgb(5 5 5 / calc(var(--sh-oscurecer, 0.45) + 0.45)) 0%, rgb(5 5 5 / var(--sh-oscurecer, 0.45)) 55%, rgb(5 5 5 / calc(var(--sh-oscurecer, 0.45) * 0.3)) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hero__slide,
  .sh-hero__slide.is-active {
    transition: none;
  }
}

/* ---------- Destacados de la home ---------- */
.sh-dest {
  background: #050505;
  padding: 3rem 0 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}
.sh-dest__grid {
  display: grid;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .sh-dest__grid { padding: 0 1.5rem; }
}
@media (min-width: 768px) {
  .sh-dest__grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .sh-dest__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sh-dest__grid--3 .sh-dest__media { width: 8rem; margin-right: 1.25rem; }
}
@media (min-width: 1024px) {
  .sh-dest__grid { padding: 0 2rem; gap: 1.5rem; }
}
/* Más de 3: filas de hasta 4 (2 en tablet); la última fila se estira para
   no dejar huecos (7 → 4 + 3). Con 4 por fila el disco va arriba del texto. */
.sh-dest__grid--muchos {
  display: flex;
  flex-wrap: wrap;
}
.sh-dest__grid--muchos .sh-dest__card { flex: 1 1 100%; }
@media (min-width: 768px) {
  .sh-dest__grid--muchos .sh-dest__card { flex-basis: calc(50% - 1rem); }
}
@media (min-width: 1180px) {
  .sh-dest__grid--muchos .sh-dest__card {
    flex-basis: calc(25% - 1.5rem);
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .sh-dest__grid--muchos .sh-dest__media { width: 7rem; }
  .sh-dest__grid--muchos .sh-dest__texto { width: 100%; }
}
.sh-dest__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 13rem;
  padding: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: rgb(17 24 39 / 0.6);
}
.sh-dest__card {
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.sh-dest__card:hover {
  border-color: rgb(239 68 68 / 0.6);
  background: rgb(31 41 55 / 0.8);
  box-shadow: 0 0 28px rgb(220 38 38 / 0.28);
}
@media (prefers-reduced-motion: no-preference) {
  .sh-dest__card:hover { transform: translateY(-2px); }
}
.sh-dest__card--rojo {
  background: #dc2626;
  border-color: #dc2626;
}
.sh-dest__card--rojo:hover {
  border-color: #f87171;
  background: #ef4444;
  box-shadow: 0 0 36px rgb(239 68 68 / 0.55);
}
.sh-dest__card--borde { background: transparent; }
.sh-dest__card--borde:hover { background: rgb(255 255 255 / 0.04); }

.sh-dest__texto {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.sh-dest__etiqueta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}
.sh-dest__card--rojo .sh-dest__etiqueta { color: #fee2e2; }
.sh-dest__titulo {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.sh-dest__titulo a {
  color: inherit;
  text-decoration: none;
}
/* Toda la tarjeta es clickeable a través del enlace del título. */
.sh-dest__titulo a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.sh-dest__titulo a:focus-visible { outline: none; }
.sh-dest__card:has(a:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sh-dest__enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.sh-dest__enlace svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}
.sh-dest__card:hover .sh-dest__enlace svg { transform: translateX(4px); }
.sh-dest__card:not(.sh-dest__card--rojo):hover .sh-dest__enlace { color: #f87171; }

.sh-dest__media {
  position: relative;
  flex: 0 0 auto;
  width: 9.5rem;
  margin-right: 1rem;
}
.sh-dest__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.5s;
}
.sh-dest__media--disco .sh-dest__img {
  object-fit: cover;
  border-radius: 0.25rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
}
/* El vinilo asoma detrás de la carátula y sale un poco al pasar el mouse. */
.sh-dest__media--disco::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -22%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background:
    radial-gradient(circle, #dc2626 0 14%, #111 15% 17%, transparent 18%),
    repeating-radial-gradient(circle, #0a0a0a 0 2px, #1c1c1c 3px 4px);
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.5);
  transition: transform 0.5s;
}
.sh-dest__card:hover .sh-dest__media--disco::before { transform: translateX(14%) rotate(40deg); }
.sh-dest__card:hover .sh-dest__media--disco .sh-dest__img { transform: rotate(-3deg); }
.sh-dest__card:hover .sh-dest__media:not(.sh-dest__media--disco) .sh-dest__img { transform: scale(1.06); }

@media (max-width: 400px) {
  .sh-dest__media { width: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-dest__img,
  .sh-dest__media--disco::before,
  .sh-dest__enlace svg { transition: none; }
}
