/* Product-first Home variant. The published compact Home remains unchanged. */
.compact-home .site-header,
.compact-home .site-header.is-scrolled {
  border-color: rgba(34,31,28,.09);
  color: var(--black);
  background: rgba(255,255,255,.93);
  box-shadow: 0 8px 28px rgba(34,31,28,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.compact-home .brand-logo-dark { opacity: 1; }
.compact-home .brand-logo-light { opacity: 0; }
.compact-home .site-header .nav { color: rgba(34,31,28,.76); }
.compact-home .site-header .catalog-search { border-color: rgba(34,31,28,.14); color: var(--black); background: #f7f7f4; }
.compact-home .site-header .catalog-search input::placeholder { color: rgba(34,31,28,.52); }
.compact-home .site-header .catalog-search button { border-left-color: rgba(34,31,28,.12); }
.compact-home .hero { min-height: min(690px, 88vh); background: #e7e0cd; }
.compact-home .hero-content {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(690px, 88vh);
  padding: 138px max(24px, calc((100vw - 1400px) / 2)) 80px;
}
.compact-home .hero-backgrounds img:first-child { object-position: center 42%; }
.compact-home .hero-backgrounds::after {
  background: linear-gradient(90deg, rgba(255, 251, 226, .98) 0%, rgba(255, 251, 226, .91) 31%, rgba(255, 251, 226, .27) 61%, transparent 81%);
}
.compact-home .hero-copy { max-width: 730px; }
.compact-home .hero-copy h1 { max-width: 720px; color: var(--black); font-size: clamp(3.4rem, 6vw, 6.4rem); line-height: .98; }
.compact-home .hero-copy .eyebrow { color: #715705; }
.compact-home .hero-copy .lead { max-width: 580px; color: #3f3a2e; font-size: clamp(1rem, 1.4vw, 1.17rem); }
.compact-home .hero-side { display: none; }
.compact-home .hero .btn-secondary { border-color: rgba(34,31,28,.28); color: var(--black); background: rgba(255,255,255,.8); }
.compact-home .hero .btn-secondary:hover { background: #fff; }
.compact-home .hero .btn-primary { color: var(--black); }

.compact-home .product-os {
  order: 2;
  display: block;
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(68px, 7vw, 104px);
  background: #fff;
}
.compact-home .product-os .section-title-row { margin-bottom: 34px; }
.compact-home .product-os .section-title-row h2 { max-width: 740px; }
.compact-home .product-os .section-title-row p { max-width: 410px; }
.compact-home .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.compact-home .product-card,
.compact-home .product-card.product-dark {
  display: grid;
  grid-template-rows: minmax(500px, 39vw);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(34,31,28,.1);
  border-radius: 6px;
  color: #fff;
  background: #24221f;
  box-shadow: none;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.compact-home .product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(34,31,28,.15); }
.compact-home .product-card::before { display: none; }
.compact-home .product-card::after { top: 0; right: 0; height: 37px; min-width: 0; padding: 0 16px; border-radius: 0 0 0 14px; background: #fff; color: var(--black); font-size: .65rem; box-shadow: none; }
.compact-home .product-media,
.compact-home .product-card.product-dark .product-media {
  position: relative;
  grid-area: 1 / 1;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.compact-home .product-media::after,
.compact-home .product-card:nth-child(2) .product-media::after,
.compact-home .product-card:nth-child(3) .product-media::after {
  display: block;
  position: absolute;
  inset: 0;
  height: auto;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.02) 15%, rgba(0,0,0,.12) 43%, rgba(0,0,0,.86) 100%);
  opacity: 1;
  transform: none;
  transition: none;
}
.compact-home .product-card:hover .product-media::after { opacity: 1; transform: none; }
.compact-home .product-media img,
.compact-home .product-card.product-dark .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.compact-home .product-card:hover .product-media img { transform: scale(1.045); }
.compact-home .product-card:nth-child(3) .product-media img { object-position: 58% 52%; }
.compact-home .product-body,
.compact-home .product-card.product-dark .product-body {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  inset: auto;
  display: flex;
  align-self: end;
  min-height: 0;
  flex-direction: column;
  padding: 34px 30px 28px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.compact-home .product-body::before,
.compact-home .product-body::after { display: none; }
.compact-home .product-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.compact-home .product-heading span { position: static; flex: 0 0 auto; color: var(--yellow); font-size: .73rem; }
.compact-home .product-heading h3 { color: #fff; font-size: clamp(1.7rem, 2.35vw, 2.4rem); }
.compact-home .product-card p,
.compact-home .product-card.product-dark p { max-width: 34ch; margin-bottom: 22px; color: rgba(255,255,255,.89); font-size: .92rem; line-height: 1.5; }
.compact-home .product-card .text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.65); color: #fff; font-size: .82rem; }
.compact-home .product-card .text-link::after { display: none; }
.compact-home .product-card .text-link svg { width: 15px; height: 15px; color: var(--yellow); transition: transform 180ms ease; }
.compact-home .product-card .text-link:hover svg { transform: translate(2px,-2px); }

.compact-home .intro-system { order: 3; background: #f7f7f4; }
.compact-home .intro-system .section-title-row h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.compact-home .quote-stage[data-quote-step="1"] {
  grid-template-areas: "prompt" "options" "preview";
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.compact-home .quote-stage[data-quote-step="1"] .quote-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .64fr);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 54px;
  min-height: 190px;
  padding: 34px 42px 38px;
  border-right: 0;
  border-bottom: 1px solid rgba(34,31,28,.12);
  background: linear-gradient(100deg, #fff7dc 0%, #fff9e8 57%, rgba(255,248,218,.85) 100%), url("assets/protexa-aplicando-azotea.webp") right center / cover;
}
.compact-home .quote-stage[data-quote-step="1"] .quote-prompt > span {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
}
.compact-home .quote-stage[data-quote-step="1"] .quote-prompt h3 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
  line-height: 1.05;
}
.compact-home .quote-stage[data-quote-step="1"] .quote-prompt p {
  max-width: 390px;
  margin: 0 0 5px;
  font-size: .96rem;
  line-height: 1.55;
}
.compact-home .finder-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  background: #fff;
}
.compact-home .option-card,
.compact-home .option-card:nth-child(even),
.compact-home .option-card:nth-last-child(-n + 2) {
  min-height: 140px;
  padding: 24px 52px 23px 25px;
  border-right: 1px solid rgba(34,31,28,.1);
  border-bottom: 1px solid rgba(34,31,28,.1);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.compact-home .option-card:nth-child(3n) { border-right: 0; }
.compact-home .option-card:nth-last-child(-n + 3) { border-bottom: 0; }
.compact-home .option-card:hover { background: #fff9e7; }
.compact-home .option-card.is-active { background: #fff4bf; box-shadow: inset 0 3px 0 var(--yellow); }
.compact-home .quote-preview {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: 144px;
  min-height: 144px;
  border-top: 1px solid rgba(34,31,28,.12);
}
.compact-home .quote-preview img { height: 144px; }
.compact-home .quote-preview div { min-height: 144px; padding: 22px 28px; }
.compact-home .brand-section { order: 4; background: #fff; background-image: none; }
.compact-home .brand-section::before { display: none; }
.compact-home .brand-chapters { gap: 22px; }
.compact-home .brand-chapter,
.compact-home .brand-chapter + .brand-chapter { border-radius: 8px; box-shadow: none; }
.compact-home .brand-chapter:hover { box-shadow: 0 18px 38px rgba(34,31,28,.12); }
.compact-home .brand-mobile-visual { height: clamp(250px, 24vw, 335px); background: #f7f5ec; }
.compact-home .brand-mobile-visual::after { background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,250,226,.7) 44%, rgba(255,255,255,.06)); }
.compact-home .brand-mobile-visual.diablo { border-top-color: var(--yellow); }
.compact-home .brand-mobile-visual.greenmax { border-top-color: var(--yellow); }
.compact-home .brand-mobile-logo { width: min(43%, 280px); max-height: 32%; }
.compact-home .brand-chapter > span,
.compact-home .brand-chapter > h2,
.compact-home .brand-chapter > p,
.compact-home .brand-chapter > .btn { margin-right: 28px; margin-left: 28px; }
.compact-home .brand-chapter > span { color: #776b51; }

.compact-home .compact-trust { order: 5; gap: 0; padding-top: 0; padding-bottom: 0; }
.compact-home .compact-trust-story,
.compact-home .compact-tech-card { min-height: 410px; border-radius: 0; }
.compact-home .compact-trust-story { color: var(--black); background: var(--yellow); }
.compact-home .compact-trust-story h2,
.compact-home .compact-trust-story p { color: var(--black); }
.compact-home .compact-trust-story p { opacity: .78; }
.compact-home .compact-trust-metrics { border-top-color: rgba(34,31,28,.22); }
.compact-home .compact-trust-metrics span { color: rgba(34,31,28,.72); }
.compact-home .compact-trust-metrics strong { color: var(--black); }
.compact-home .compact-tech-card { background: #f3f2ed; }
.compact-home .buy-section { order: 6; }

@media (max-width: 960px) {
  .compact-home .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .compact-home .product-card,
  .compact-home .product-card.product-dark { grid-template-rows: minmax(420px, 44vw); min-height: 420px; }
  .compact-home .product-body,
  .compact-home .product-card.product-dark .product-body { min-height: 0; padding: 28px 22px 24px; }
  .compact-home .product-heading h3 { font-size: 1.75rem; }
  .compact-home .finder-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-home .option-card:nth-child(3n) { border-right: 1px solid rgba(34,31,28,.1); }
  .compact-home .option-card:nth-child(even) { border-right: 0; }
  .compact-home .option-card:nth-last-child(-n + 3) { border-bottom: 1px solid rgba(34,31,28,.1); }
  .compact-home .option-card:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  .compact-home .hero,
  .compact-home .hero-content { min-height: 620px; }
  .compact-home .hero-content { padding: 122px 24px 60px; }
  .compact-home .hero-backgrounds img:first-child { object-position: 58% center; }
  .compact-home .hero-backgrounds::after { background: linear-gradient(90deg, rgba(255,251,226,.98), rgba(255,251,226,.86) 56%, rgba(255,251,226,.27)); }
  .compact-home .hero-copy h1 { font-size: clamp(3.15rem, 11vw, 4.6rem); }
  .compact-home .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .compact-home .product-card,
  .compact-home .product-card.product-dark { grid-template-columns: 1fr; grid-template-rows: 380px; min-height: 380px; }
  .compact-home .product-body,
  .compact-home .product-card.product-dark .product-body { min-height: 0; padding: 28px 24px 24px; }
  .compact-home .product-card::after { top: 0; right: 0; left: auto; font-size: .6rem; }
  .compact-home .product-heading { gap: 8px; }
  .compact-home .product-heading h3 { font-size: 1.9rem; }
  .compact-home .product-card p,
  .compact-home .product-card.product-dark p { font-size: .9rem; }
  .compact-home .quote-stage[data-quote-step="1"] .quote-prompt {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding: 28px 24px 30px;
    gap: 14px;
    text-align: left;
  }
  .compact-home .quote-stage[data-quote-step="1"] .quote-prompt > span { margin: 0 0 5px; }
  .compact-home .quote-stage[data-quote-step="1"] .quote-prompt h3 { width: 100%; margin: 0; font-size: clamp(1.9rem, 7vw, 2.8rem); text-align: left; }
  .compact-home .quote-stage[data-quote-step="1"] .quote-prompt p { margin: 0; }
  .compact-home .finder-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-home .option-card,
  .compact-home .option-card:nth-child(even),
  .compact-home .option-card:nth-last-child(-n + 2),
  .compact-home .option-card:nth-last-child(-n + 3) {
    min-height: 136px;
    padding: 22px 30px 20px 18px;
    border-right: 1px solid rgba(34,31,28,.1);
    border-bottom: 1px solid rgba(34,31,28,.1);
  }
  .compact-home .option-card:nth-child(even) { border-right: 0; }
  .compact-home .option-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .compact-home .option-card { grid-template-columns: 26px minmax(0,1fr); column-gap: 8px; }
  .compact-home .option-card > i,
  .compact-home .option-card > svg { width: 21px; height: 21px; }
  .compact-home .option-card > span { font-size: .87rem; line-height: 1.25; }
  .compact-home .quote-preview { grid-template-columns: 96px minmax(0,1fr); grid-template-rows: auto; min-height: 160px; }
  .compact-home .quote-preview img { min-height: 160px; height: 100%; }
  .compact-home .quote-preview div { min-height: 160px; padding: 17px 17px 17px 20px; }
  .compact-home .brand-mobile-visual { height: 245px; }
  .compact-home .compact-trust { grid-template-columns: 1fr; }
  .compact-home .compact-trust-story,
  .compact-home .compact-tech-card { min-height: 0; }
}
@media (max-width: 420px) {
  .compact-home .product-card,
  .compact-home .product-card.product-dark { grid-template-columns: 1fr; grid-template-rows: 360px; min-height: 360px; }
  .compact-home .product-card .text-link { font-size: .78rem; }
  .compact-home .option-card,
  .compact-home .option-card:nth-child(even),
  .compact-home .option-card:nth-last-child(-n + 2),
  .compact-home .option-card:nth-last-child(-n + 3) { min-height: 132px; padding: 18px 26px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .compact-home .product-card,
  .compact-home .product-card .text-link svg { transition-duration: .01ms; }
}
