/* Portada ConstruShopping basada en la composicion comercial de Emporio.
   ----------------------------------------------------------------
   Esta hoja se encola SOLO en la portada (functions.php). Por eso NO puede
   contener nada de chrome compartido: el header, el ancho de columna, el
   amarillo de marca y el fondo de página viven en style.css, que sí se carga
   en todo el sitio. Aquí queda únicamente la composición de la portada.
   Antes el header oscuro estaba acá, bajo body.home, y ese era exactamente
   el motivo de que las internas salieran con el header claro. */

.cs-e-home { background: var(--cs-page-bg); color: #171717; overflow: hidden; }
.cs-e-hero,
.cs-e-hero .cs-hero-carousel,
.cs-e-hero .cs-hero-slides { min-height: 0; }
.cs-e-hero .cs-hero-slide {
  min-height: 0; height: min(30vw, 600px); aspect-ratio: 10 / 3; background: #161616;
}
.cs-e-hero .cs-hero-slide > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.cs-e-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .43) 40%, rgba(0, 0, 0, .04) 72%);
}
.cs-e-hero-content { position: relative; z-index: 1; color: #fff; padding-block: 36px; }
.cs-e-eyebrow {
  display: block; color: var(--cs-accent); font-size: 12px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 12px;
}
.cs-e-hero-content h1 {
  max-width: 650px; margin: 0; color: #fff; font-size: clamp(28px, 3.1vw, 54px);
  line-height: 1.03; font-weight: 700; letter-spacing: 0;
}
.cs-e-hero-content p {
  max-width: 570px; margin: 16px 0 24px; color: rgba(255, 255, 255, .9);
  font-size: 15px; line-height: 1.55;
}
/* .cs-e-button se define en style.css junto al resto de los botones */
.cs-e-hero .cs-hero-nav {
  width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 0; background: rgba(0, 0, 0, .22); color: #fff;
}
.cs-e-hero .cs-hero-prev { left: 20px; }
.cs-e-hero .cs-hero-next { right: 20px; }
.cs-e-hero .cs-hero-dots { bottom: 16px; }
.cs-e-hero .cs-hero-dot,
.cs-e-hero .cs-hero-dot.active {
  width: 32px; height: 3px; border-radius: 0; background: rgba(255, 255, 255, .45);
}
.cs-e-hero .cs-hero-dot.active { background: var(--cs-accent); }

.cs-e-promos {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-block: 32px 48px;
}
.cs-e-promo {
  position: relative; min-height: 230px; overflow: hidden; color: #fff; text-decoration: none;
}
.cs-e-promo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.cs-e-promo:hover img,
.cs-e-bottom-banners a:hover img { transform: scale(1.025); }
.cs-e-promo-shade {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .08));
}
.cs-e-promo-copy { position: absolute; inset: auto 24px 24px; z-index: 1; display: block; }
.cs-e-promo-copy small,
.cs-e-bottom-banners small {
  display: block; margin-bottom: 7px; color: var(--cs-accent); font-size: 10px; font-weight: 700;
}
.cs-e-promo-copy strong {
  display: block; max-width: 390px; font-size: clamp(18px, 1.55vw, 27px); line-height: 1.12;
}
.cs-e-promo-copy > span {
  display: inline-block; margin-top: 14px; padding-bottom: 3px;
  border-bottom: 1px solid var(--cs-accent); font-size: 12px; font-weight: 600;
}

.cs-e-section { margin-bottom: 54px; }
/* Las cabeceras de sección, las tarjetas de producto y los botones ya no se
   redefinen acá: su estilo es el del sitio entero y vive en style.css. */
.cs-e-notice {
  margin-bottom: 42px; padding: 15px 24px; background: var(--cs-ink); color: #fff;
  text-align: center; font-size: 16px; font-weight: 600;
}

.cs-e-strip { position: relative; height: 200px; margin-block: 28px 56px; overflow: hidden; }
.cs-e-strip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-e-strip-shade {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .18));
}
.cs-e-strip-copy {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: center; height: 100%; color: #fff;
}
.cs-e-strip-copy span { color: var(--cs-accent); font-size: 11px; font-weight: 700; }
.cs-e-strip-copy h2 { margin: 7px 0 13px; color: #fff; font-size: 29px; }
.cs-e-strip-copy a {
  width: max-content; color: #fff; font-size: 12px; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--cs-accent);
}

.cs-e-category-showcase {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; margin-bottom: 58px;
}
.cs-e-category-banner {
  position: relative; min-height: 470px; overflow: hidden; background: #f1f1f1;
  color: #fff; text-decoration: none;
}
.cs-e-category-banner > img { width: 100%; height: 100%; object-fit: cover; }
.cs-e-category-banner > span {
  position: absolute; inset: auto 0 0; padding: 30px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .84));
}
.cs-e-category-banner small,
.cs-e-category-banner strong,
.cs-e-category-banner em { display: block; font-style: normal; }
.cs-e-category-banner small { color: var(--cs-accent); font-size: 10px; font-weight: 700; }
.cs-e-category-banner strong { margin-block: 5px 14px; font-size: 30px; }
.cs-e-category-banner em {
  width: max-content; padding-bottom: 3px; border-bottom: 1px solid var(--cs-accent); font-size: 12px;
}
.cs-e-category-products { min-width: 0; }
.cs-e-category-products .cs-shelf-track > .cs3-card { flex-basis: 225px; }

.cs-e-bottom-banners {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 60px;
}
.cs-e-bottom-banners a {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #eee;
  color: #fff; text-decoration: none;
}
.cs-e-bottom-banners img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.cs-e-bottom-banners a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .03));
}
.cs-e-bottom-banners a > span {
  position: absolute; left: 28px; bottom: 25px; z-index: 1; max-width: 330px;
}
.cs-e-bottom-banners strong { display: block; font-size: 22px; line-height: 1.18; }

.cs-e-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cs-e-journal-card { display: grid; grid-template-columns: 42% 1fr; gap: 18px; }
.cs-e-journal-img {
  display: flex; align-items: center; justify-content: center; min-height: 150px;
  overflow: hidden; background: #f3f3f3;
}
.cs-e-journal-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-e-journal-card time { display: block; color: #777; font-size: 10px; text-transform: uppercase; }
.cs-e-journal-card h3 { margin: 8px 0 14px; font-size: 15px; line-height: 1.35; }
.cs-e-journal-card h3 a,
.cs-e-journal-more { color: #161616; text-decoration: none; }
.cs-e-journal-more {
  padding-bottom: 3px; border-bottom: 1px solid var(--cs-accent); font-size: 11px; font-weight: 600;
}

@media (max-width: 1100px) {
  .cs-e-hero .cs-hero-slide { height: 390px; aspect-ratio: auto; }
  .cs-e-promos { grid-template-columns: 1fr 1fr; }
  .cs-e-promo--wide { grid-column: 1 / -1; }
  .cs-e-category-showcase { grid-template-columns: 250px minmax(0, 1fr); }
  .cs-e-journal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cs-e-hero .cs-hero-slide { height: 430px; }
  .cs-e-hero .cs-hero-slide > img { object-position: 62% center; }
  .cs-e-hero-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2)); }
  .cs-e-hero-content { padding-inline: 26px; }
  .cs-e-hero-content h1 { max-width: 390px; }
  .cs-e-hero-content p { max-width: 340px; }
  .cs-e-hero .cs-hero-nav { display: none; }
  .cs-e-promos { grid-template-columns: 1fr; margin-block: 20px 38px; }
  .cs-e-promo--wide { grid-column: auto; }
  .cs-e-promo { min-height: 220px; }
  .cs-e-strip { height: 230px; }
  .cs-e-category-showcase { grid-template-columns: 1fr; }
  .cs-e-category-banner { min-height: 330px; }
  .cs-e-bottom-banners,
  .cs-e-journal-grid { grid-template-columns: 1fr; }
  .cs-e-bottom-banners a { min-height: 250px; aspect-ratio: auto; }
  .cs-e-journal-card { grid-template-columns: 120px 1fr; }
}

@media (max-width: 470px) {
  .cs-e-hero-content { padding-inline: 10px; }
  .cs-e-hero-content h1 { font-size: 31px; }
  .cs-e-promo-copy,
  .cs-e-bottom-banners a > span { left: 20px; right: 20px; bottom: 20px; }
}
