@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --yh-primary: #5C3D80;
  --yh-secondary: #B79FD6;
  --yh-cream: #F3E9E6;
  --yh-ink: #2E1F3A;
  --yh-ink-soft: #6b6b76;

  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-section: 96px;
}

@media (max-width: 768px) {
  :root {
    --sp-lg: 24px;
    --sp-xl: 40px;
    --sp-section: 56px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* El renderer del modo integrado inyecta este contenido como hijo directo
   de .ast-container, que en este tema tiene display:flex — sin este ancho
   explícito, cada sección se vuelve una columna angosta en vez de apilarse. */
.yh-page {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

/* .ast-container centra el contenido con max-width + padding, por lo que
   los fondos de cada sección no llegaban al borde real del viewport.
   Este truco de "full-bleed" hace que cada sección ocupe el 100% del
   ancho de pantalla sin importar el contenedor padre; el .container
   interno sigue centrando y limitando el contenido a 1200px. */
.yh-page > section {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.yh-hero,
.yh-categorias,
.yh-destacados,
.yh-beneficios,
.yh-cta-final {
  font-family: 'Poppins', sans-serif;
  color: var(--yh-ink);
}

.yh-hero h1,
.yh-categorias h2,
.yh-destacados h2,
.yh-cta-final h2 {
  font-family: 'Playfair Display', serif;
}

/* ── Botones ── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--yh-primary), var(--yh-secondary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(92, 61, 128, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(92, 61, 128, 0.35);
}

.btn-primary--light {
  background: #fff;
  color: var(--yh-secondary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--yh-ink);
  border: 1.5px solid rgba(43, 43, 51, 0.2);
}

.btn-secondary:hover {
  border-color: var(--yh-primary);
  color: var(--yh-primary);
}

/* ── HERO ── */
.yh-hero {
  padding: var(--sp-section) 0 var(--sp-xl);
  background: radial-gradient(circle at 85% 15%, rgba(183, 159, 214, 0.10), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(92, 61, 128, 0.12), transparent 55%),
              var(--yh-cream);
  overflow: hidden;
}

.yh-hero__flex {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.yh-hero__texto {
  flex: 1 1 480px;
}

.yh-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(183, 159, 214, 0.1);
  color: var(--yh-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-sm);
}

.yh-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 var(--sp-sm);
  color: var(--yh-ink);
}

.yh-hero__sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--yh-ink-soft);
  max-width: 480px;
  margin: 0 0 var(--sp-lg);
}

.yh-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.yh-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--yh-ink-soft);
}

.yh-hero__trust li {
  position: relative;
  padding-left: 18px;
}

.yh-hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yh-primary);
}

.yh-hero__imagen {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
}

.yh-hero__imagen picture {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(43, 43, 51, 0.18);
}

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

@media (max-width: 900px) {
  .yh-hero__flex {
    flex-direction: column;
    text-align: center;
  }
  .yh-hero__sub {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .yh-hero__cta,
  .yh-hero__trust {
    justify-content: center;
  }
}

/* ── Encabezado de sección reutilizable ── */
.yh-section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--sp-xl);
}

.yh-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 var(--sp-xs);
  color: var(--yh-ink);
}

.yh-section-head p {
  color: var(--yh-ink-soft);
  margin: 0;
  font-size: 1rem;
}

/* ── CATEGORÍAS ── */
.yh-categorias {
  padding: var(--sp-section) 0;
  background: #fff;
}

.yh-categorias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.yh-cat-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 5;
  box-shadow: 0 12px 30px rgba(43, 43, 51, 0.1);
}

.yh-cat-card picture {
  position: absolute;
  inset: 0;
}

.yh-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yh-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 25, 0.65) 0%, rgba(20, 20, 25, 0.05) 55%);
}

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

.yh-cat-card__label {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: var(--sp-md);
  align-self: flex-end;
}

.yh-cat-card {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .yh-categorias__grid {
    grid-template-columns: 1fr;
  }
}

/* ── PRODUCTOS DESTACADOS ── */
.yh-destacados {
  padding: var(--sp-section) 0;
  background: var(--yh-cream);
}

.yh-destacados__grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.yh-destacados__grid ul.products li.product {
  background: #fff;
  border-radius: 16px;
  padding: var(--sp-sm);
  box-shadow: 0 10px 24px rgba(43, 43, 51, 0.06);
}

.yh-destacados__cta {
  text-align: center;
  margin-top: var(--sp-xl);
}

@media (max-width: 900px) {
  .yh-destacados__grid ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .yh-destacados__grid ul.products {
    grid-template-columns: 1fr;
  }
}

/* ── BENEFICIOS ── */
.yh-beneficios {
  padding: var(--sp-xl) 0;
  background: #fff;
}

.yh-beneficios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

.yh-beneficio {
  text-align: center;
}

.yh-beneficio svg {
  color: var(--yh-primary);
  margin-bottom: var(--sp-sm);
}

.yh-beneficio h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--yh-ink);
}

.yh-beneficio p {
  font-size: 13.5px;
  color: var(--yh-ink-soft);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .yh-beneficios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── CTA FINAL ── */
.yh-cta-final {
  padding: var(--sp-section) 0;
  background: linear-gradient(135deg, var(--yh-primary), var(--yh-secondary));
}

.yh-cta-final__inner {
  text-align: center;
  color: #fff;
}

.yh-cta-final h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 var(--sp-sm);
}

.yh-cta-final p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0 0 var(--sp-lg);
}
