/**
 * Home — hero/footer 100vw + ritmo visual por secciones
 * Solo index.html (.page-home)
 */

/* ─── Contenedor home: sin padding lateral (lo gestionan las secciones) ─── */
.page-home #main {
  overflow-x: clip;
}

.page-home #main > .inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: visible;
}

/* ─── Cascarón de contenido centrado dentro de bandas ─── */
.page-home .section-band > header.major,
.page-home .section-band > ul:not(.actions),
.page-home .section-band > p,
.page-home .section-band > div,
.page-home .section-band > .comparison-grid,
.page-home .section-band > .checklist,
.page-home .section-band > .origin-story {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* ─── Utilidad full-bleed (100% viewport) ─── */
.page-home .full-bleed,
.page-home #banner.hero-premium,
.page-home .section-band,
.page-home #main > .inner > section:has(.story-intro) {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.page-home #main > .inner > section {
  position: relative;
}

/* ─── Hero: imagen edge-to-edge + contenido debajo ─── */
.page-home #banner.hero-premium {
  display: block !important;
  padding: 0 !important;
  background: var(--premium-white);
  border-bottom: none;
  overflow: hidden;
}

.page-home #banner.hero-premium .hero-premium__cover {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  min-height: clamp(300px, 58vh, 640px);
  max-height: clamp(300px, 58vh, 640px);
  overflow: hidden;
  background-color: var(--brand-900);
  background-image: url("../images/hero-home-2026.webp");
  background-size: cover;
  background-position: center 40%;
}

.page-home #banner.hero-premium .hero-premium__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.08) 0%,
    rgba(10, 22, 40, 0.42) 100%
  );
  pointer-events: none;
}

.page-home #banner.hero-premium .hero-premium__cover picture,
.page-home #banner.hero-premium .hero-premium__cover img {
  display: block;
  width: 100%;
  height: clamp(300px, 58vh, 640px);
  object-fit: cover;
  object-position: center 40%;
}

.page-home #banner.hero-premium .hero-premium__body {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 4vw, 2.75rem) var(--gutter-inline) clamp(2.5rem, 5vw, 3.5rem);
  box-sizing: border-box;
  background: var(--premium-white);
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.08);
}

.page-home #banner.hero-premium .content {
  width: 100% !important;
  max-width: var(--content-max);
  flex: none !important;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) !important;
  background: var(--premium-white);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  border-top: 3px solid var(--brand-700);
  border-radius: var(--premium-radius);
  box-shadow: 0 12px 40px rgba(var(--brand-rgb), 0.12);
  box-sizing: border-box;
}

.page-home #banner.hero-premium .content > header .badge {
  background: var(--brand-700) !important;
  color: #fff !important;
  border: none !important;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem !important;
}

.page-home #banner.hero-premium h1 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 100%;
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}

.page-home #banner.hero-premium .content > header p {
  font-size: 1.0625rem;
  color: var(--premium-text-muted);
  max-width: 42rem;
  line-height: 1.65;
}

.page-home #banner.hero-premium .content > p:not(.note) {
  color: var(--premium-text-muted);
  font-size: 1rem;
  max-width: 42rem;
  line-height: 1.7;
}

.page-home #banner.hero-premium .actions {
  margin-top: var(--space-5);
}

.page-home #banner.hero-premium .actions .button.primary {
  box-shadow: 0 4px 18px rgba(var(--brand-rgb), 0.28) !important;
}

.page-home #banner.hero-premium .note {
  margin-top: var(--space-5);
  margin-bottom: 0;
  padding: var(--space-4) var(--space-5);
  background: rgba(var(--brand-rgb), 0.05);
  border-left: 3px solid var(--brand-700);
  border-radius: 0 var(--premium-radius-sm) var(--premium-radius-sm) 0;
  font-size: 0.8125rem;
  color: var(--premium-text-muted);
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 736px) {
  .page-home #banner.hero-premium .hero-premium__cover,
  .page-home #banner.hero-premium .hero-premium__cover img {
    height: clamp(220px, 45vh, 320px);
    min-height: clamp(220px, 45vh, 320px);
    max-height: none;
  }

  .page-home #banner.hero-premium h1 {
    max-width: none;
  }

  .page-home #banner.hero-premium .content {
    padding: var(--space-5) !important;
  }
}

/* ─── Cabeceras de sección — caja blanca unificada ─── */
.page-home .section-band > header.major,
.page-home #main > .inner > section:has(.story-intro) header.major {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background: var(--premium-white);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  border-left: 3px solid var(--brand-700);
  margin-bottom: var(--space-6);
  box-sizing: border-box;
}

.page-home .story-intro header.major {
  margin-bottom: var(--space-5);
}

.page-home #why-born header.major {
  box-shadow: none;
  border: none;
  border-left: 3px solid var(--brand-700);
  background: transparent;
  padding: 0;
  margin-bottom: var(--space-5);
}

.page-home header.major h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.page-home header.major h2::after {
  width: 2.5rem;
  height: 3px;
  margin-top: var(--space-3);
  background: var(--brand-700);
}

.page-home header.major p {
  color: var(--premium-text-muted);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* ─── Bandas: alternancia blanco / gris-azul marca (discreto) ─── */
.page-home .section-band {
  padding-left: var(--gutter-inline);
  padding-right: var(--gutter-inline);
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.page-home #main > .inner > section:has(.story-intro),
.page-home #guia.section-band {
  background: var(--premium-white);
  border-top: 1px solid rgba(var(--brand-rgb), 0.06);
}

.page-home .section-band--muted,
.page-home .section-band--brand-soft,
.page-home #destacadas.section-band--brand-soft,
.page-home #comparativas-mas-buscadas.section-band--muted,
.page-home #why-born.section-band--muted {
  background: var(--brand-50);
  border-top: 1px solid rgba(var(--brand-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.08);
}

.page-home #why-born header.major h2,
.page-home #why-born header.major p {
  color: var(--premium-text);
}

.page-home #why-born .origin-story__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  background: var(--premium-white);
  border-radius: var(--premium-radius);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--premium-shadow-md);
  box-sizing: border-box;
}

.page-home #why-born .origin-story__copy > p {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: var(--space-4);
  color: var(--premium-text-muted);
  line-height: 1.7;
}

.page-home #why-born .origin-story__copy > p:last-of-type {
  margin-bottom: var(--space-5);
}

.page-home #why-born .actions .button {
  background: var(--brand-700) !important;
  color: #fff !important;
  border-color: var(--brand-700) !important;
}

.page-home #why-born .origin-story__media {
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  box-shadow: var(--premium-shadow);
}

/* ─── Sección historia — bloque blanco ─── */
.page-home #main > .inner > section:has(.story-intro) {
  padding: var(--section-padding-y) var(--gutter-inline);
}

.page-home .story-intro {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: var(--premium-white) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.1) !important;
  border-left: 3px solid var(--brand-700) !important;
  border-radius: var(--premium-radius) !important;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem) !important;
  box-shadow: var(--premium-shadow) !important;
}

.page-home .story-intro:hover {
  transform: none !important;
  box-shadow: var(--premium-shadow-md) !important;
}

.page-home .story-intro > p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--premium-text-muted);
}

.page-home .story-intro > p:last-child {
  margin-bottom: 0;
}

/* ─── Comparativas: pills + tarjetas en cajas ─── */
.page-home #comparativas-mas-buscadas > ul:not(.actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  padding: var(--space-4) var(--space-5);
  margin: 0 auto var(--space-6);
  max-width: var(--content-max);
  background: var(--premium-white);
  border-radius: var(--premium-radius);
  border: 1px solid rgba(var(--brand-rgb), 0.12);
  box-shadow: var(--premium-shadow);
  box-sizing: border-box;
}

.page-home #comparativas-mas-buscadas > ul:not(.actions) li {
  margin: 0;
  padding: 0;
}

.page-home #comparativas-mas-buscadas > ul:not(.actions) a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color var(--premium-transition),
    color var(--premium-transition),
    box-shadow var(--premium-transition),
    background var(--premium-transition);
}

.page-home #comparativas-mas-buscadas > ul:not(.actions) a:hover,
.page-home #comparativas-mas-buscadas > ul:not(.actions) a:focus-visible {
  border-color: var(--brand-700);
  color: #fff;
  background: var(--brand-700);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.22);
}

.page-home #comparativas-mas-buscadas .comparison-grid {
  background: var(--premium-white);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--premium-radius);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  box-shadow: var(--premium-shadow);
}

.page-home #comparativas-mas-buscadas .product-card {
  border-color: rgba(var(--brand-rgb), 0.12) !important;
  background: var(--premium-white) !important;
  box-shadow: var(--premium-shadow) !important;
  transition: transform var(--premium-transition), box-shadow var(--premium-transition) !important;
}

.page-home #comparativas-mas-buscadas .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--premium-shadow-hover) !important;
}

.page-home #comparativas-mas-buscadas .note {
  padding: var(--space-4) var(--space-5);
  background: var(--premium-white);
  border: 1px solid rgba(var(--brand-rgb), 0.12);
  border-left: 3px solid var(--brand-700);
  border-radius: var(--premium-radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--premium-shadow);
}

/* ─── Top 3 destacado ─── */
.page-home #destacadas .comparison-grid--3 {
  gap: var(--space-6);
  background: var(--premium-white);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--premium-radius);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  box-shadow: var(--premium-shadow);
}

.page-home #destacadas .product-card {
  border-color: rgba(var(--brand-rgb), 0.12) !important;
  background: var(--premium-white) !important;
}

.page-home #destacadas .product-card.featured .badge {
  background: var(--brand-700) !important;
  color: #fff !important;
}

.page-home #destacadas .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--premium-shadow-hover) !important;
}

@media screen and (min-width: 981px) {
  .page-home #destacadas .comparison-grid--3 {
    grid-template-columns: 1.12fr 1fr 1fr;
    align-items: stretch;
  }

  .page-home #destacadas .product-card.featured .image {
    min-height: 200px;
  }

  .page-home #destacadas .product-card.featured .image img {
    max-height: 220px;
  }
}

.page-home #destacadas .product-card.featured {
  border: 2px solid var(--brand-700) !important;
  background: var(--premium-white) !important;
  box-shadow: var(--premium-shadow-md) !important;
  position: relative;
}

.page-home #destacadas .product-card.featured::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-700) !important;
  border-radius: var(--premium-radius) var(--premium-radius) 0 0;
}

.page-home .product-card .score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--premium-accent);
  margin: 0 0 var(--space-2);
}

.page-home .product-card .score::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--premium-accent);
}

.page-home .product-card .price-tag {
  font-size: 0.9375rem;
  color: var(--premium-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.page-home .product-card ul.pros {
  list-style: none;
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
  background: var(--brand-50);
  border-radius: var(--premium-radius-sm);
  border: 1px solid rgba(var(--brand-rgb), 0.08);
}

.page-home .product-card ul.pros li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: var(--premium-text-muted);
  line-height: 1.5;
}

.page-home .product-card ul.pros li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--premium-accent);
}

.page-home .product-card .actions.stacked {
  margin-top: auto;
  padding-top: var(--space-4);
  flex-direction: column;
  width: 100%;
}

.page-home .product-card .actions.stacked li {
  width: 100%;
}

.page-home .product-card .button.primary[href*="amazon."] {
  font-weight: 600;
}

.page-home .product-card .cta-urgency {
  font-weight: 500;
  opacity: 0.85;
}

/* ─── Checklist guía — cajas uniformes ─── */
.page-home #guia .checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
  background: var(--premium-white);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--premium-radius);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  box-shadow: var(--premium-shadow);
}

.page-home #guia .check-item {
  padding: var(--space-5) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.1) !important;
  background: var(--premium-white) !important;
  box-shadow: none !important;
  position: relative;
  border-radius: var(--premium-radius-sm) !important;
  border-left: 3px solid var(--brand-700) !important;
  transition: box-shadow var(--premium-transition) !important;
}

.page-home #guia .check-item:hover {
  box-shadow: var(--premium-shadow) !important;
}

.page-home #guia .check-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--premium-text);
}

.page-home #guia .check-item h3::before {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-700);
  margin-top: 0.1rem;
}

.page-home #guia .check-item:nth-child(1) h3::before { content: "1"; }
.page-home #guia .check-item:nth-child(2) h3::before { content: "2"; }
.page-home #guia .check-item:nth-child(3) h3::before { content: "3"; }
.page-home #guia .check-item:nth-child(4) h3::before { content: "4"; }

.page-home #guia .check-item::before {
  display: none;
}

.page-home #guia .check-item p {
  font-size: 0.9375rem;
  color: var(--premium-text-muted);
  margin: 0;
}

/* ─── Origin story (excluye #why-born, que usa banda oscura + grid blanco) ─── */
.page-home .origin-story:not(#why-born) {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: var(--premium-white) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.14) !important;
  border-radius: var(--premium-radius) !important;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2rem) !important;
  box-shadow: var(--premium-shadow-md) !important;
}

.page-home .origin-story--visual .origin-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.page-home .origin-story__media {
  margin: 0;
  border-radius: var(--premium-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  box-shadow: var(--premium-shadow);
}

.page-home .origin-story__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 860px) {
  .page-home .origin-story--visual .origin-story__grid {
    grid-template-columns: 1fr;
  }

  .page-home .origin-story__media {
    order: -1;
    max-height: 240px;
  }

  .page-home .origin-story__media img {
    height: 100%;
    object-fit: cover;
  }
}

.page-home #why-born.origin-story {
  max-width: none;
  margin: 0;
  padding-left: var(--gutter-inline);
  padding-right: var(--gutter-inline);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ─── Footer home: pegado a última sección ─── */
.page-home .site-footer-min {
  margin-top: 0 !important;
}

/* ─── Header home ─── */
.page-home #header .menu > li > a[href="/mejores-sillas-ergonomicas-2026.html"] {
  color: var(--premium-accent);
  font-weight: 600;
}

.page-home #header .site-header__bar {
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.06);
}

.page-home #main > .inner > section#banner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-home #main > .inner > section.section-band {
  padding-top: var(--section-padding-y) !important;
  padding-bottom: var(--section-padding-y) !important;
  padding-left: var(--gutter-inline) !important;
  padding-right: var(--gutter-inline) !important;
}

/* Evitar desbordes de texto en bloques */
.page-home #main > .inner > section,
.page-home #main > .inner > section p,
.page-home #main > .inner > section h1,
.page-home #main > .inner > section h2,
.page-home #main > .inner > section h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
