/* The landing has its own editorial rhythm. Scope shared selectors so catalog
   grids, the quote form and the team's workspace retain their tested layouts. */
html[data-catalog-page="home"] {
  --landing-width: 1280px;
  --landing-gutter: clamp(20px, 4vw, 64px);
  --ink: #263d32;
  --green-2: var(--brand-moss);
}
html[data-catalog-page="home"] body { background: var(--brand-paper); }

/* Keep the complete forms mounted for existing controllers, but give the home
   page a short route into them instead of duplicating the complete checkout. */
html[data-catalog-page="home"] :is(#cotizar, #servicios, #proceso, #leyla, #contacto, .brand-partner, .brand-about__contact) { display: none; }
html:not([data-catalog-page="home"]) :is(.landing-catalogs, .landing-quote, .brand-about__learn) { display: none; }
html[data-catalog-page="home"] :is(.section__inner, .hero__inner, .footer__inner, .nav) { width: min(var(--landing-width), calc(100% - 2 * var(--landing-gutter))); }
html[data-catalog-page="home"] .nav { min-height: 86px; }
html[data-catalog-page="home"] .section { padding-block: 76px; }
html[data-catalog-page="home"] .eyebrow { font-size: .72rem; letter-spacing: .12em; }
html[data-catalog-page="home"] .eyebrow::before { background: var(--brand-orange); }
html[data-catalog-page="home"] .btn { border-radius: 8px; }
html[data-catalog-page="home"] :is(.btn--primary, .btn--dark) { background: var(--brand-moss); border-color: var(--brand-moss); color: #fff; box-shadow: none; }
html[data-catalog-page="home"] :is(.btn--primary, .btn--dark):hover { background: var(--brand-moss-deep); border-color: var(--brand-moss-deep); }
html[data-catalog-page="home"] :is(a, button, summary, input, select):focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

/* The existing photographs become an edge-to-edge backdrop, not a second card.
   Product catalogue images remain contained; only these editorial photos crop. */
html[data-catalog-page="home"] .brand-home { background: var(--brand-moss-deep); border-bottom: 2px solid var(--brand-orange); }
html[data-catalog-page="home"] .brand-carousel { width: 100%; max-width: none; padding: 0; }
html[data-catalog-page="home"] .brand-carousel__stage { display: block; position: relative; isolation: isolate; min-height: 600px; padding: 56px max(var(--landing-gutter), calc((100% - var(--landing-width)) / 2)) 108px; }
html[data-catalog-page="home"] .brand-carousel__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(32, 48, 39, .94) 0%, rgba(32, 48, 39, .83) 38%, rgba(32, 48, 39, .32) 76%, rgba(32, 48, 39, .18)), linear-gradient(0deg, rgba(32, 48, 39, .8), transparent 34%); }
html[data-catalog-page="home"] .brand-carousel__copy { position: relative; z-index: 2; max-width: 780px; padding: 0; color: #fffdf4; }
html[data-catalog-page="home"] .brand-carousel__copy .eyebrow { color: #e6c6ae; }
html[data-catalog-page="home"] .brand-carousel__copy h1 { max-width: 780px; font-size: clamp(2.65rem, 5.5vw, 5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin: 24px 0; color: #fffdf4; text-wrap: balance; }
html[data-catalog-page="home"] .brand-carousel__copy h1 span { color: #e6c6ae; }
html[data-catalog-page="home"] .brand-carousel__copy > p { max-width: 520px; color: #e1e9e0; font-size: 1.13rem; margin-bottom: 27px; }
html[data-catalog-page="home"] .brand-home__actions { margin-top: 15px; gap: 2px 28px; }
html[data-catalog-page="home"] .brand-home__quote { color: #fffdf4; font-size: .94rem; border: 0; padding: 0; background: none; font-family: inherit; font-weight: 650; cursor: pointer; }
html[data-catalog-page="home"] .brand-home__quote:hover { color: #fff; text-decoration: underline; }
html[data-catalog-page="home"] .brand-home__quote > span { font-size: 1.18rem; color: #e6c6ae; }
html[data-catalog-page="home"] .brand-carousel :is(a, button, input, select):focus-visible { outline-color: #e6c6ae; }
html[data-catalog-page="home"] .hero-search { max-width: 660px; padding: 20px 0 0; border: 0; border-top: 1px solid #cadbc177; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; margin: 0; }
html[data-catalog-page="home"] .hero-search label { font-size: .92rem; color: #fffdf4; margin: 0 0 11px; }
html[data-catalog-page="home"] .hero-search__controls { grid-template-columns: minmax(0, 1fr) 170px auto; gap: 8px; }
html[data-catalog-page="home"] .hero-search__input { grid-column: auto; min-height: 52px; font-size: .96rem; border-color: #fff; background: #fff; border-radius: 8px; color: var(--ink); }
html[data-catalog-page="home"] .hero-search select { grid-column: auto; min-width: 0; font-size: .9rem; border-radius: 8px; background: var(--brand-mint); border-color: var(--brand-mint); color: var(--ink); }
html[data-catalog-page="home"] .hero-search .btn { grid-column: auto; min-height: 52px; padding-inline: 20px; background: var(--brand-moss); color: #fff; border: 1px solid var(--brand-moss); border-radius: 8px; }
html[data-catalog-page="home"] .hero-search .btn:hover { background: var(--brand-moss-deep); border-color: var(--brand-moss-deep); }
html[data-catalog-page="home"] .catalog-search-summary { color: #fffdf4; }
/* Background frames overlap during the dissolve. JS keeps the outgoing frame
   inert/aria-hidden and loads and decodes the next image before revealing it. */
html[data-catalog-page="home"] .hero-photo-carousel { position: absolute; inset: 0; z-index: auto; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--brand-moss-deep); box-shadow: none; pointer-events: none; }
html[data-catalog-page="home"] .hero-photo-carousel__slides { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; }
html[data-catalog-page="home"] .hero-photo-carousel__slide { opacity: 1; }
html[data-catalog-page="home"] .hero-photo-carousel__slide[data-entering] { opacity: 0; }
html[data-catalog-page="home"] .hero-photo-carousel__slide[data-current] { z-index: 1; transition: opacity 800ms ease; }
html[data-catalog-page="home"] .hero-photo-carousel__slide img { object-fit: cover; object-position: center 52%; }
/* Keep the gallery caption available to assistive technology. The counter and
   all three controls share one surface instead of floating over the photo. */
html[data-catalog-page="home"] .hero-photo-carousel__head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-catalog-page="home"] .hero-photo-carousel__controls { position: absolute; z-index: 3; bottom: 26px; right: max(var(--landing-gutter), calc((100% - var(--landing-width)) / 2)); max-width: calc(100% - 2 * var(--landing-gutter)); padding: 6px 8px; gap: 10px; border: 1px solid #c9d8cb5c; border-radius: 20px; background: #203027eb; box-shadow: 0 6px 20px #101f2530; backdrop-filter: blur(12px); }
html[data-catalog-page="home"] .hero-photo-carousel__status { color: #fffdf4; padding: 7px 12px 7px 6px; border-right: 1px solid #c9d8cb5c; font-size: .78rem; font-weight: 650; letter-spacing: .01em; }
html[data-catalog-page="home"] .hero-photo-carousel__navigation { flex-shrink: 0; gap: 4px; }
html[data-catalog-page="home"] .carousel-control { position: relative; z-index: 3; pointer-events: auto; width: 44px; min-width: 44px; height: 44px; border-radius: 12px; border-color: transparent; background: #ffffff0d; color: #fffdf4; }
html[data-catalog-page="home"] .carousel-control:hover { background: #ffffff1f; border-color: #c9d8cb8c; }
html[data-catalog-page="home"] .carousel-control:active { background: #ffffff30; }
html[data-catalog-page="home"] .carousel-control:focus-visible { outline: 3px solid #e6c6ae; outline-offset: 2px; background: #ffffff1f; }
html[data-catalog-page="home"] .carousel-control--motion { border-color: #c9d8cb5c; }
html[data-catalog-page="home"] .carousel-control:disabled { color: #cad8ce; border-color: #c9d8cb38; background: #ffffff05; }
html[data-catalog-page="home"] .hero-photo-carousel__error { z-index: 3; inset: auto auto 33px var(--landing-gutter); max-width: 48%; display: block; border: 0; border-radius: 0; padding: 0; color: #fffdf4; background: transparent; font-size: .8rem; }
html[data-catalog-page="home"] .hero-photo-carousel noscript { position: absolute; z-index: 3; left: var(--landing-gutter); bottom: 24px; color: #fffdf4; max-width: 45%; }
/* Search results stay on a solid surface below the photographs. */
html[data-catalog-page="home"] .brand-carousel > .catalog-search-results { margin: 0; padding: 30px max(var(--landing-gutter), calc((100% - var(--landing-width)) / 2)); background: var(--brand-mint); border-bottom: 1px solid var(--brand-line); }

.landing-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--green-2); font-size: .96rem; font-weight: 700; text-underline-offset: 5px; }
.landing-text-link:hover { text-decoration: underline; }
.landing-catalogs { padding: 30px 0 38px; border-bottom: 1px solid var(--brand-line); background: var(--brand-mint); }
#catalogos-inicio { scroll-margin-top: var(--header-anchor-offset, 100px); }
.landing-catalogs__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.landing-catalogs__heading h2 { margin: 0; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.landing-catalogs__heading > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green-2); font-weight: 650; font-size: .92rem; }
.landing-catalogs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-catalog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--brand-line); border-top: 3px solid var(--brand-moss); border-radius: 12px; background: var(--brand-paper); color: var(--ink); box-shadow: none; transition: background-color .18s, border-color .18s; }
.landing-catalog:hover { border-color: var(--brand-moss); background: #f5f4ee; }
.landing-catalog__number { display: grid; place-items: center; align-self: start; width: 30px; height: 30px; border-radius: 50%; background: #e8e8de; font-size: .73rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-moss); }
.landing-catalog h3 { font-size: 1.23rem; margin: 0 0 6px; letter-spacing: -.02em; }
.landing-catalog p { color: var(--muted); font-size: .94rem; line-height: 1.4; margin: 0; }
.landing-catalog__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-mint); color: var(--green-2); font-size: 1.6rem; }

html[data-catalog-page="home"] .brand-section-heading { gap: 28px; align-items: flex-end; margin-bottom: 30px; }
html[data-catalog-page="home"] .brand-section-heading > div { flex: 1; }
html[data-catalog-page="home"] .brand-section-heading h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); max-width: 640px; letter-spacing: -.04em; }
html[data-catalog-page="home"] .brand-section-heading > a { flex-shrink: 0; }
html[data-catalog-page="home"] .brand-lines__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html[data-catalog-page="home"] .brand-lines { background: var(--brand-paper); }
/* A definite image track prevents narrow, very tall documentary instruments
   from determining card height. Contain preserves every part of the source. */
html[data-catalog-page="home"] .brand-line { grid-template-rows: 196px 1fr; border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
html[data-catalog-page="home"] .brand-line > img { height: 196px; min-height: 0; padding: 18px; border: 2px solid var(--brand-moss); border-radius: 16px; background: #fff; object-fit: contain; }
html[data-catalog-page="home"] .brand-line > div { padding: 18px 8px 20px; border: 0; }
html[data-catalog-page="home"] .brand-line:hover > img { box-shadow: 0 4px 12px #36574912; }
html[data-catalog-page="home"] .brand-line:hover .brand-line__action { text-decoration: underline; text-underline-offset: 4px; }
html[data-catalog-page="home"] .brand-line > div > span:first-child { font-size: .69rem; letter-spacing: .09em; color: #53655c; }
html[data-catalog-page="home"] .brand-line h3 { font-size: 1.2rem; margin: 7px 0 15px; letter-spacing: -.025em; }
html[data-catalog-page="home"] .brand-line__action { font-size: .9rem; }
html[data-catalog-page="home"] .brand-category-status:empty { display: none; }
.landing-categories { margin-top: 22px; border-bottom: 1px solid var(--line); }
.landing-categories summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; cursor: pointer; color: var(--ink); font-size: .98rem; font-weight: 650; list-style: none; }
.landing-categories summary::-webkit-details-marker { display: none; }
.landing-categories summary > span { color: var(--green-2); font-size: 1.5rem; font-weight: 400; }
.landing-categories[open] summary > span { transform: rotate(45deg); }
.landing-categories .brand-category-links { margin: 8px 0 22px; }
html[data-catalog-page="home"] .brand-category-links a { background: var(--brand-mint); border-color: var(--brand-line); font-size: .89rem; }
html[data-catalog-page="home"] .brand-resource-bar { padding: 25px 28px; margin-top: 30px; background: var(--brand-moss); border: 0; border-left: 3px solid var(--brand-orange); border-radius: 14px; gap: 24px; color: #fff; }
html[data-catalog-page="home"] .brand-resource-bar h3 { font-size: 1.1rem; color: #fff; }
html[data-catalog-page="home"] .brand-resource-bar p { color: #e0eee6; }
html[data-catalog-page="home"] .brand-resource-bar .landing-text-link { color: #fff; }
html[data-catalog-page="home"] .brand-resource-bar .btn--dark { background: #fff; color: var(--brand-moss); }
html[data-catalog-page="home"] .brand-resource-bar .btn--dark:hover { background: var(--brand-mint); }
html[data-catalog-page="home"] .brand-resource-bar__actions { gap: 10px 22px; }

html[data-catalog-page="home"] .landing-selection { background: var(--brand-surface); border-block: 1px solid var(--brand-line); }
html[data-catalog-page="home"] .landing-selection .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: 64px; }
html[data-catalog-page="home"] .landing-selection h2 { margin: 14px 0 26px; font-size: clamp(1.8rem, 2.7vw, 2.4rem); line-height: 1.17; letter-spacing: -.035em; }
.landing-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 20px; }
.landing-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.landing-steps li > span { display: grid; place-items: center; align-self: start; height: 34px; border: 1px solid var(--brand-moss); border-radius: 50%; font-size: .76rem; color: #fff; font-weight: 750; background: var(--brand-moss); }
.landing-steps h3 { font-size: 1.05rem; margin: 3px 0 5px; }
.landing-steps p { font-size: .98rem; line-height: 1.5; color: var(--muted); margin: 0; }
/* The family strip shares the section background. Only source photographs
   have a white canvas and a frame; there is no enclosing floating card. */
html[data-catalog-page="home"] .landing-selection .hero-showcase { align-self: center; }

html[data-catalog-page="home"] .brand-about { background: var(--brand-paper); border: 0; }
html[data-catalog-page="home"] .brand-about__layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 800px; }
html[data-catalog-page="home"] .brand-about__copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.14; letter-spacing: -.035em; }
html[data-catalog-page="home"] .brand-about__copy p { font-size: 1.02rem; margin: 19px 0; }
.landing-quote { padding: 48px 0; color: #fff; background: var(--brand-moss); }
.landing-quote__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.landing-quote .eyebrow { color: #c6e2d7; }
.landing-quote h2 { margin: 14px 0 12px; font-size: clamp(1.85rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.landing-quote p { margin: 0; color: #d5e4dc; font-size: 1.05rem; }
.landing-quote__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.landing-quote .btn { min-height: 50px; gap: 22px; }
html[data-catalog-page="home"] .landing-quote .btn--primary { background: var(--brand-paper); border-color: var(--brand-paper); color: var(--brand-moss); }
html[data-catalog-page="home"] .landing-quote .btn--primary:hover { background: var(--brand-mint); border-color: var(--brand-mint); color: var(--brand-moss-deep); }
html[data-catalog-page="home"] :is(.landing-quote, .brand-resource-bar, .footer) :is(a, button):focus-visible { outline-color: var(--brand-paper); }
.landing-quote .landing-text-link { color: #fff; }
html[data-catalog-page="home"] .footer { padding-block: 30px; background: var(--brand-moss-deep); color: #e2e7df; border-top: 2px solid var(--brand-moss); }

@media (max-width: 1100px) {
  html[data-catalog-page="home"] .brand-carousel__stage { min-height: 560px; padding-top: 44px; }
  html[data-catalog-page="home"] .brand-carousel__copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
  .landing-catalog { gap: 10px; padding: 19px 16px; }
  .landing-catalog__number { display: none; }
  .landing-catalog { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-catalog-page="home"] .brand-resource-bar { align-items: flex-start; flex-direction: column; }
  html[data-catalog-page="home"] .brand-section-heading { flex-direction: row; }
  html[data-catalog-page="home"] .landing-selection .hero__inner { gap: 40px; }
}

@media (max-width: 760px) {
  html[data-catalog-page="home"] .nav { min-height: 76px; }
  html[data-catalog-page="home"] .brand-carousel__stage { min-height: 540px; padding-top: 32px; padding-bottom: 88px; }
  html[data-catalog-page="home"] .brand-carousel__stage::after { background: linear-gradient(90deg, rgba(32, 48, 39, .88), rgba(32, 48, 39, .66)), linear-gradient(0deg, rgba(32, 48, 39, .9), transparent 45%); }
  html[data-catalog-page="home"] .brand-carousel__copy h1 { max-width: 600px; font-size: clamp(2.3rem, 7.1vw, 3.8rem); margin-block: 20px; }
  html[data-catalog-page="home"] .brand-carousel__copy > p { max-width: 490px; font-size: 1.04rem; margin-bottom: 24px; }
  html[data-catalog-page="home"] .hero-search__controls { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-catalog-page="home"] .hero-search__input { grid-column: 1 / -1; }
  html[data-catalog-page="home"] .hero-photo-carousel__controls { bottom: 18px; border-radius: 18px; }
  html[data-catalog-page="home"] .hero-photo-carousel__error { bottom: 82px; max-width: calc(100% - 2 * var(--landing-gutter)); }
  html[data-catalog-page="home"] .hero-photo-carousel noscript { bottom: 82px; max-width: calc(100% - 2 * var(--landing-gutter)); font-size: .75rem; }
  html[data-catalog-page="home"] .section { padding-block: 48px; }
  .landing-catalogs { padding-block: 20px 28px; }
  .landing-catalogs__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .landing-catalog { padding: 17px 20px; }
  .landing-catalog h3 { font-size: 1.12rem; margin-bottom: 3px; }
  .landing-catalog p { font-size: .9rem; }
  html[data-catalog-page="home"] .brand-section-heading { flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 22px; }
  html[data-catalog-page="home"] .brand-lines__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  html[data-catalog-page="home"] .brand-line { grid-template-rows: 155px 1fr; }
  html[data-catalog-page="home"] .brand-line > img { height: 155px; padding: 12px; }
  html[data-catalog-page="home"] .brand-line > div { padding: 15px 13px; }
  html[data-catalog-page="home"] .brand-line h3 { font-size: 1.01rem; }
  html[data-catalog-page="home"] .brand-line__action { font-size: .84rem; }
  html[data-catalog-page="home"] .brand-line > div > span:first-child { font-size: .65rem; letter-spacing: .04em; }
  html[data-catalog-page="home"] .brand-resource-bar { padding: 23px; margin-top: 24px; }
  html[data-catalog-page="home"] .landing-selection .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 45px; gap: 30px; }
  html[data-catalog-page="home"] .landing-selection .hero-showcase { max-width: none; width: 100%; }
  html[data-catalog-page="home"] .brand-about__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .landing-quote { padding-block: 40px; }
  .landing-quote__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .landing-quote__actions { align-items: flex-start; gap: 12px; }
}

@media (max-width: 359px) {
  html[data-catalog-page="home"] { --landing-gutter: 16px; }
  html[data-catalog-page="home"] .brand-carousel__copy h1 { font-size: 2rem; }
  html[data-catalog-page="home"] .hero-search { padding-top: 18px; }
  html[data-catalog-page="home"] .hero-search .btn { padding-inline: 14px; }
  html[data-catalog-page="home"] .brand-line { grid-template-rows: 132px 1fr; }
  html[data-catalog-page="home"] .brand-line > img { height: 132px; }
  html[data-catalog-page="home"] .brand-line > div { padding: 13px 11px; }
  html[data-catalog-page="home"] .brand-line__action { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-catalog { transition: none; }
  html[data-catalog-page="home"] .hero-photo-carousel__slide[data-current] { transition: none; }
  html[data-catalog-page="home"] .carousel-control { transition: none; }
}
