/* ==========================================================================
   NovaShop — Home
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */

.ns-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--ns-stone-50), rgba(236, 253, 245, 0.3), var(--ns-stone-50));
}

/* Trama de puntos del fondo */
.ns-hero__dots {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.ns-hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 3rem;
}

@media (min-width: 1024px) {
  .ns-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 6rem;
  }
}

.ns-hero__text { order: 2; text-align: center; }
.ns-hero__media { order: 1; position: relative; }

@media (min-width: 1024px) {
  .ns-hero__text { order: 1; text-align: left; }
  .ns-hero__media { order: 2; }
}

.ns-hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--ns-radius-pill);
  background: var(--ns-emerald-100);
  color: var(--ns-emerald-700);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.ns-hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.ns-hero__title-accent {
  display: block;
  color: var(--ns-emerald-600);
  margin-top: 0.5rem;
}

.ns-hero__desc {
  margin-top: 1.5rem;
  color: var(--ns-stone-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .ns-hero__desc { font-size: 1.125rem; margin-inline: 0; }
}

.ns-hero__desc p:last-child { margin-bottom: 0; }

.ns-hero .ns-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .ns-hero .ns-rating { justify-content: flex-start; }
}

.ns-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}

.ns-hero__actions .ns-add-form { display: contents; }

@media (min-width: 640px) {
  .ns-hero__actions { flex-direction: row; justify-content: center; }
  .ns-hero__actions .ns-btn { width: auto; }
}

@media (min-width: 1024px) {
  .ns-hero__actions { justify-content: flex-start; }
}

.ns-hero__price {
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 1.875rem;
}

.ns-hero__price .ns-price__compare { font-size: 1.125rem; }

@media (min-width: 1024px) {
  .ns-hero__price { justify-content: flex-start; }
}

/* Imagen del hero */
.ns-hero__glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to top right, rgba(167, 243, 208, 0.4), transparent);
  border-radius: var(--ns-radius-xl);
  filter: blur(40px);
}

.ns-hero__image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--ns-radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ns-shadow-2xl);
}

.ns-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ns-hero__chip {
  position: absolute;
  bottom: -1rem;
  left: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow-xl);
  padding: 1rem;
}

@media (min-width: 640px) {
  .ns-hero__chip { left: -1.5rem; }
}

.ns-hero__chip-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ns-emerald-100);
  color: var(--ns-emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ns-hero__chip strong { display: block; font-size: 0.75rem; color: var(--ns-stone-900); }
.ns-hero__chip small { display: block; font-size: 0.625rem; color: var(--ns-stone-500); }

/* Barra de confianza ------------------------------------------------------- */

.ns-trust {
  background: #fff;
  border-block: 1px solid var(--ns-border);
}

.ns-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 1.5rem;
}

@media (min-width: 1024px) {
  .ns-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ns-trust__item { display: flex; align-items: center; gap: 0.75rem; }

.ns-trust__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ns-emerald-50);
  color: var(--ns-emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ns-trust__item strong { display: block; font-size: 0.875rem; color: var(--ns-stone-900); }
.ns-trust__item small { display: block; font-size: 0.75rem; color: var(--ns-stone-500); }

/* Destacados --------------------------------------------------------------- */

.ns-featured {
  padding-block: 4rem;
  background: rgba(250, 250, 249, 0.5);
}

@media (min-width: 1024px) {
  .ns-featured { padding-block: 6rem; }
}

.ns-featured__cta { text-align: center; margin-top: 3rem; }

/* Testimonio --------------------------------------------------------------- */

.ns-testimonial {
  padding-block: 4rem;
  background: #fff;
  text-align: center;
}

@media (min-width: 1024px) {
  .ns-testimonial { padding-block: 6rem; }
}

.ns-testimonial .ns-stars { justify-content: center; margin-bottom: 1.5rem; }
.ns-testimonial .ns-stars .ns-icon { width: 1.5rem; height: 1.5rem; }

.ns-testimonial blockquote {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 500;
  color: var(--ns-stone-800);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: 0;
}

.ns-testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.ns-testimonial__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #34d399, var(--ns-emerald-600));
  flex-shrink: 0;
}

.ns-testimonial__author strong { display: block; font-size: 0.875rem; color: var(--ns-stone-900); }
.ns-testimonial__author small { display: block; font-size: 0.75rem; color: var(--ns-stone-500); }

/* Contenido libre de la página --------------------------------------------- */

.ns-page-content { padding-block: 3rem; }
