/**
 * Home page (scoped to .home-page)
 * Tokens: bundles/iimprimime/css/tokens.css (:root)
 */

.home-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.home-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: var(--color-text);
  margin: 0 0 0.35rem;
  text-transform: none;
  letter-spacing: -0.02em;
}

.home-section__subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1rem;
  margin: 0 0 1.75rem;
  font-weight: 400;
  text-transform: none;
}

/* Hero / slider */
.home-page #home-head {
  margin: 0 -15px;
}

@media (min-width: 768px) {
  .home-page #home-head {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
}

.home-page #home-slider-container .bx-wrapper {
  margin-bottom: 0;
  box-shadow: var(--shadow-card);
}

/* Custom print strip */
.home-custom-strip {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-custom-strip:hover,
.home-custom-strip:focus {
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.home-custom-strip__img {
  width: 100%;
  display: block;
}

/* Feature cards */
.home-features {
  background: var(--color-bg-subtle);
  margin-left: -15px;
  margin-right: -15px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .home-features {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-md);
  }
}

.home-features__grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  align-items: stretch;
}

.home-features__grid>[class*="col-"] {
  display: flex;
  padding: 0 10px;
  margin-bottom: 20px;
}

.home-feature-card {
  flex: 1;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size-base);
}

.home-feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.home-feature-card__icon .fa {
  line-height: 1;
}

.home-feature-card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 0.5rem;
  text-transform: none;
  line-height: 1.3;
}

.home-feature-card__text {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.home-feature-card__link {
  color: var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-top: auto;
}

.home-feature-card__link:hover {
  color: var(--color-primary-dark);
}

.home-feature-card--newsletter .home-feature-card__icon {
  margin-bottom: 0.75rem;
}

/* Compact newsletter on home */
.home-page .home-feature-card #mailing-subscribe-form {
  width: 100%;
  margin-top: 0;
}

/* Newsletter: inputs/botón en components.css; solo layout en la card */
.home-page .home-feature-card #mailing-subscribe-form .btn,
.home-page .home-feature-card #mailing-subscribe-form .btn2,
.home-page .home-feature-card #mailing-subscribe-form button {
  width: 100%;
}

/* Promotions — CSS Grid + cards */
.home-page #promociones {
  margin: 0;
  overflow: visible;
}

.home-page #promociones .home-section__title {
  margin-bottom: 0.25rem;
}

.home-page #promociones .home-section__subtitle {
  margin-bottom: 2rem;
}

.home-page #promociones .home-promos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.home-page #promociones .home-promos__item {
  display: flex;
  min-width: 0;
}

.home-page #promociones .home-promos__item .product-card {
  flex: 1;
  width: 100%;
  margin-bottom: 0;
  padding: 1.125rem;
}

.home-page #promociones .product-card__media {
  background: var(--color-surface);
}

.home-page #promociones .product-card__price .price-from .price {
  font-size: 1.625rem;
}

@media (min-width: 992px) {
  .home-page #promociones .home-promos__grid {
    gap: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .home-page #promociones .home-promos__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Catalog */
.home-page #products-home {
  margin-top: 0;
  background: transparent;
}

.home-page #products-home .home-section__title {
  margin-bottom: 1.5rem;
}

.home-page #products-home ul.col3 {
  width: 33.333%;
}

.home-page #products-home ul.col3 div.category h2,
.home-page #products-home ul.col3 div.category h2 a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--font-size-catalog-title);
}

.home-page .home-catalog-mobile {
  margin-bottom: 1rem;
}

.home-page .home-catalog-mobile .panel {
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.home-page .home-catalog-mobile .panel-heading {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.home-page .home-catalog-mobile .panel-title a {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.home-page .home-catalog-mobile .panel-body {
  font-size: 14px;
}

.home-page .home-catalog-mobile .panel-body a {
  color: var(--color-text);
}

.home-page .home-instalments-note {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.5;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: 1rem;
}

/* Portfolio CTA */
.home-portfolio {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.home-portfolio__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: none;
}

.home-portfolio__link:hover,
.home-portfolio__link:focus {
  background: var(--color-primary);
  color: var(--color-surface);
  text-decoration: none;
}