/* Composition exclusive to Inicio. Shared pages retain their own styles. */
.home-page .main-content {
  --home-width: 1160px;
  --home-gutter: clamp(20px, 4vw, 48px);
}

.home-page .main-content > section {
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  margin-inline: auto;
  padding: 64px 0;
}

.home-page .main-content > .hero--home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  min-height: 0;
  padding-block: 64px 48px;
  background: none;
}

.home-page .hero--home .hero__content { max-width: none; padding: 0; }
.home-page .hero__title {
  max-width: none;
  margin: 18px 0 24px;
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.home-page .hero__title span { color: var(--color-gray-700); }
.home-page .home-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.11em;
  flex-wrap: wrap;
}
.home-page .hero__subtitle {
  max-width: 44ch;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.75;
}
.home-page .hero__actions { gap: 10px; }
.home-page .hero__actions .btn { padding: 14px 22px; font-size: 14px; }
.home-page .home-hero__visual { max-width: none; margin: 0; }
.home-page .home-hero__canvas {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  height: clamp(320px, 34vw, 440px);
  min-height: 0;
  aspect-ratio: auto;
}
.home-page .home-hero__photo {
  position: static;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 24px;
  transform: none;
  box-shadow: none;
}
.home-page .home-hero__photo img { object-position: center; }
.home-page .home-hero__caption { padding-top: 14px; font-size: 12px; }

.home-page .main-content > .business-lines { padding-block: 16px 56px; }
.home-page .home-routes-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-500);
}
.home-page .business-lines__grid { gap: 16px; }
.home-page .business-line {
  min-height: 0;
  padding: 25px 28px;
  border: 1px solid var(--color-gray-200);
  border-radius: 24px;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: none;
}
.home-page .business-line:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-xs);
  transform: translateY(-2px);
}
.home-page .business-line__index { color: #8f6e31; font-size: 10px; letter-spacing: 0.1em; }
.home-page .business-line__arrow {
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-color: var(--color-gray-200);
  opacity: 1;
}
.home-page .business-line h3 {
  margin: 14px 0 10px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.home-page .business-line p {
  max-width: 48ch;
  margin-bottom: 18px;
  color: var(--color-gray-500);
  font-size: 14px;
  line-height: 1.6;
}
.home-page .business-line__link { font-size: 13px; }

.home-page .main-content > .products,
.home-page .main-content > .home-portfolio {
  padding-block: 48px 56px;
  border-top: 1px solid var(--color-gray-200);
}
.home-page .products__header,
.home-page .home-section-heading {
  max-width: none;
  margin: 0 0 28px;
  text-align: left;
}
.home-page .home-section-heading__eyebrow {
  justify-content: flex-start;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.home-page .section-title {
  max-width: 26ch;
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.14;
  text-wrap: balance;
}
.home-page .section-subtitle { margin: 0; font-size: 14px; }
.home-page .text-link { font-size: 13px; }
.home-page #featured-products-grid { margin: 0; gap: 16px; padding: 4px 2px 12px; }
.home-page #featured-products-grid .shop-card { box-shadow: var(--shadow-xs); }
.home-page #featured-products-grid .shop-card__media { height: auto; aspect-ratio: 1.15; }
.home-page .home-portfolio__grid { gap: 16px; }
.home-page .home-portfolio__card { border-radius: 20px; box-shadow: var(--shadow-xs); }
.home-page .home-portfolio__media {
  display: block;
  aspect-ratio: 1.35;
  width: 100%;
}
.home-page .home-portfolio__title {
  min-height: 4.8em;
  padding: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.home-page .home-portfolio__category { font-size: 10px; }

.home-page .main-content > .services {
  max-width: var(--home-width);
  margin-block: 16px 64px;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--gradient-dark);
  box-shadow: none;
}
.home-page .services__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  max-width: none;
  text-align: left;
}
.home-page .services__content > :not(.services__actions) { grid-column: 1; }
.home-page .services__text { margin: 0; font-size: 14px; }
.home-page .services__actions {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  flex-direction: column;
}
.home-page .services__actions .btn { padding: 12px 24px; font-size: 13px; }

@media (min-width: 1024px) {
  .home-page #featured-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page #featured-products-grid > * { width: auto; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .home-page #featured-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page #featured-products-grid > * { width: auto; }
  .home-page .products__scroll-hint { display: none; }
}
@media (max-width: 850px) {
  .home-page .main-content > .hero--home { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; }
  .home-page .hero__title { font-size: clamp(42px, 7vw, 58px); }
  .home-page .hero__subtitle { max-width: 56ch; }
  .home-page .home-hero__canvas { height: 320px; grid-template-columns: 1fr 1fr; }
  .home-page .services__content { display: block; }
  .home-page .services__actions { flex-direction: row; justify-content: flex-start; margin-top: 24px; }
}
@media (max-width: 639px) {
  .home-page .main-content > section { padding-block: 36px; }
  .home-page .hero__actions { flex-direction: row; align-items: stretch; }
  .home-page .hero__actions .btn { flex: 1 1 145px; width: auto; padding: 13px 14px; font-size: 12px; }
  .home-page .home-hero__canvas { height: 240px; gap: 10px; }
  .home-page .home-hero__photo { border-radius: 18px; }
  .home-page .home-hero__caption { flex-direction: row; gap: 8px; font-size: 10px; }
  .home-page .business-lines__grid { grid-template-columns: 1fr; gap: 12px; }
  .home-page .business-line { padding: 22px; border-radius: 20px; }
  .home-page .business-line h3 { font-size: 23px; }
  .home-page .main-content > .business-lines { padding-bottom: 36px; }
  .home-page .main-content > .products,
  .home-page .main-content > .home-portfolio { padding-block: 36px; }
  .home-page .home-section-heading--split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .home-page #featured-products-grid > * { flex: 0 0 80%; }
  .home-page .home-portfolio__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 3px 2px 12px;
  }
  .home-page .home-portfolio__card { scroll-snap-align: start; }
  .home-page .home-portfolio__card:last-child:nth-child(odd) { grid-column: auto; }
  .home-page .home-portfolio__card:last-child:nth-child(odd) .home-portfolio__media { aspect-ratio: 1.35; }
  .home-page .main-content > .services { margin-block: 0 36px; padding: 28px 24px; border-radius: 22px; }
  .home-page .services__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .business-line,
  .home-page .home-portfolio__card,
  .home-page .home-portfolio__media img { transition: none; transform: none; }
}
