/* ============================================================
   HOME — Sección de vista previa (galería + música/tienda)
   ============================================================ */

#home-preview {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

#home-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 120, 154, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(184, 126, 192, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

#home-preview .container {
  display: grid;
  grid-template-columns: minmax(0, 390px) auto 1fr;
  gap: 0;
  align-items: start;
}

.hprev-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.3rem;
}

.hprev-gallery-label,
.hprev-music-label {
  margin-bottom: 1.8rem;
}

/* ============================================================
   GALERÍA SPOTLIGHT (Columna Izquierda)
   ============================================================ */
.hprev-gallery {
  padding-right: 2.5rem;
}

.hprev-gallery-layout {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 0.55rem;
  align-items: start;
}

.hprev-main-wrap {
  min-width: 0;
}

.hprev-main-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  background: #1a0a1e;
}

.hprev-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hprev-main-photo:hover img {
  transform: scale(1.03);
}

.hprev-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 3, 10, 0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hprev-main-photo:hover .hprev-main-overlay {
  opacity: 1;
}

.hprev-overlay-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
  text-decoration: none;
  border: 1px solid rgba(242, 179, 204, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  background: rgba(7, 3, 10, 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.hprev-overlay-btn:hover {
  background: rgba(212, 120, 154, 0.2);
  border-color: var(--brand-light);
  color: #fff;
}

.hprev-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Mostrar solo las primeras 4 miniaturas */
.hprev-thumb:nth-child(n + 5) {
  display: none;
}

.hprev-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #1a0a1e;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.45;
}

.hprev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.hprev-thumb:hover {
  opacity: 0.8;
  transform: scale(1.04);
}

.hprev-thumb:hover img {
  transform: scale(1.05);
}

.hprev-thumb-active {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(212, 120, 154, 0.3), 0 4px 12px rgba(212, 120, 154, 0.2);
}

/* ============================================================
   DIVISOR CENTRAL
   ============================================================ */
.hprev-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(212, 120, 154, 0.2) 20%, rgba(212, 120, 154, 0.2) 80%, transparent);
}

/* ============================================================
   MÚSICA + TIENDA (Columna Derecha)
   ============================================================ */
.hprev-music {
  padding-left: 4rem;
}

/* Plataformas de Streaming y Redes */
.hprev-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.hprev-platform-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.hprev-platform-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(212, 120, 154, 0.06);
  transition: width 0.3s ease;
  z-index: 0;
}

.hprev-platform-row:hover::before {
  width: 100%;
}

.hprev-platform-row:hover {
  border-color: rgba(212, 120, 154, 0.28);
  transform: translateY(-1px);
}

.hprev-platform-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hprev-platform-icon svg,
.hprev-platform-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.hprev-spotify   { color: #1DB954; background: rgba(29, 185, 84, 0.12); }
.hprev-apple     { background: rgba(252, 60, 68, 0.12); }
.hprev-instagram { color: #E1306C; background: rgba(225, 48, 108, 0.12); }
.hprev-tiktok    { color: #00F2FE; background: rgba(255, 0, 80, 0.12); }
.hprev-youtube   { color: #FF0000; background: rgba(255, 0, 0, 0.12); }
.hprev-facebook  { color: #1877F2; background: rgba(24, 119, 242, 0.12); }
.hprev-amazon    { background: rgba(35, 153, 215, 0.12); }
.hprev-deezer    { color: #9B59B6; background: rgba(155, 89, 182, 0.12); }

.hprev-platform-name {
  position: relative;
  z-index: 1;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hprev-platform-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--fg-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.hprev-platform-row:hover .hprev-platform-arrow {
  transform: translateX(3px);
  color: var(--brand-light);
}

/* ============================================================
   PRODUCTO DESTACADO (debajo de las plataformas)
   ============================================================ */
.hprev-featured-wrapper {
  padding-top: 0.2rem;
}

.hprev-prod-badge-label {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.65rem;
}

.hprev-featured-product {
  margin-bottom: 0;
}

.hprev-prod-loading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding: 0.5rem 0;
}

/* La tarjeta con imagen de altura completa */
.hprev-prod-card {
  display: flex;
  align-items: stretch;
  background: rgba(16, 6, 20, 0.65);
  border: 1px solid rgba(212, 120, 154, 0.16);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  min-height: 104px;
}

.hprev-prod-card:hover {
  border-color: rgba(212, 120, 154, 0.5);
  box-shadow: 0 12px 35px rgba(212, 120, 154, 0.18), 0 0 20px rgba(212, 120, 154, 0.1);
  transform: translateY(-2px);
}

/* Imagen abarcando toda la altura a la izquierda */
.hprev-prod-img {
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #140818;
}

.hprev-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hprev-prod-card:hover .hprev-prod-img img {
  transform: scale(1.08);
}

.hprev-prod-img-label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(212, 120, 154, 0.7);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
}

/* Cuerpo con información a la izquierda y botón a la derecha */
.hprev-prod-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.4rem 1rem 1.2rem;
}

.hprev-prod-info {
  flex: 1;
  min-width: 0;
}

.hprev-prod-cat {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.hprev-prod-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.hprev-prod-price {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-light);
  margin: 0;
}

.hprev-prod-action {
  flex-shrink: 0;
}

.hprev-prod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(212, 120, 154, 0.08);
  border: 1px solid rgba(212, 120, 154, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.hprev-prod-card:hover .hprev-prod-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 15px rgba(212, 120, 154, 0.35);
  transform: translateX(2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hprev-gallery { padding-right: 3rem; }
  .hprev-music   { padding-left: 3rem; }
}

@media (max-width: 860px) {
  #home-preview .container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hprev-divider {
    width: auto;
    height: 1px;
    align-self: auto;
    background: linear-gradient(to right, transparent, rgba(212, 120, 154, 0.2) 20%, rgba(212, 120, 154, 0.2) 80%, transparent);
  }
  .hprev-gallery { padding-right: 0; }
  .hprev-music   { padding-left: 0; }
  .hprev-gallery-layout { grid-template-columns: 1fr 70px; }
}

@media (max-width: 560px) {
  #home-preview { padding: 5rem 0 4rem; }
  .hprev-gallery-layout { grid-template-columns: 1fr 60px; gap: 0.5rem; }
  .hprev-thumbs  { gap: 0.4rem; }
  .hprev-platform-row { padding: 0.75rem 0.85rem; }
  .hprev-platform-icon { width: 30px; height: 30px; }
  .hprev-platform-icon svg,
  .hprev-platform-icon img { width: 18px; height: 18px; }
  
  .hprev-prod-img {
    width: 90px;
  }
  .hprev-prod-body {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }
  .hprev-prod-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.62rem;
  }
}
