/* Etapa 8A.3 · Vidrio del hero, progreso y estados de interacción. */
html body .hero.variant-b .hero-catalog {
  color: #fff;
  background: #12392c;
  border-color: #ffffff65;
  box-shadow: 0 15px 36px #031e193b, inset 0 1px 0 #ffffff60;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body .hero.variant-b .hero-catalog {
    background: linear-gradient(145deg, rgb(21 66 49 / 26%), rgb(9 48 36 / 38%));
    /* Atenuar el fondo muestreado mantiene el contraste del texto blanco. */
    -webkit-backdrop-filter: blur(16px) brightness(.55) saturate(120%);
    backdrop-filter: blur(16px) brightness(.55) saturate(120%);
  }

  @media (max-width: 700px) {
    /* El velo del hero móvil ya oscurece la fotografía. */
    html body .hero.variant-b .hero-catalog {
      -webkit-backdrop-filter: blur(16px) brightness(1.2) saturate(120%);
      backdrop-filter: blur(16px) brightness(1.2) saturate(120%);
    }
  }
}

.hero.variant-b .hero-catalog p { color: #f0f8f3; }
.hero-catalog .btn { border: 1px solid #ffffff55; }

/* Mantener el foco visible y dar respuesta también al pulsar. */
html body .header .nav a {
  transition: background-color .2s, box-shadow .2s;
}
html body .header .nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #0d85417a;
}
html body .header .nav a:focus-visible {
  background-color: #f4fbf5dc;
}
html body .header .nav a:active,
.header .mobile-menu-btn:active {
  background-color: #d7eddf;
}

.hero-catalog .btn:active,
.header .btn:active,
#searchForm .btn:active,
#catalogo .btn:not(:disabled):active {
  filter: brightness(.91);
}

:is(#searchForm, #catalogo) .field {
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
:is(#searchForm, #catalogo) .field:focus-within {
  background-color: #f2fbf4;
  border-color: #0d8541;
  box-shadow: 0 0 0 2px #0d854129;
}
:is(#searchForm, #catalogo) .field select:active { color: #075e31; }

.prop:focus-within {
  border-color: #298657;
  box-shadow: 0 0 0 2px #0d85413d, var(--gloss-shadow);
}
.prop-image:focus-visible { outline-offset: -4px; }
.prop:has(a:active) { border-color: #0d8541; box-shadow: 0 2px 8px #082c2029; }

@media (hover: hover) and (pointer: fine) {
  html body .header .nav a:hover:not(:active) {
    background-color: #e6f5eb99;
  }
  .prop:hover { border-color: #8ab69a; }
  :is(#searchForm, #catalogo) .field:hover:not(:focus-within) {
    border-color: #8ab69a;
    background-color: #f5faf5;
  }
}

/* Pausas de color entre los bloques ya existentes. */
#categorias, #proceso { background: #fbfaf7; }
#destacadas, #enfoque { background: #edf4ed; }
#vender { background: #f7f7f3; }
#oportunidades { background: #edf3ef; }
#testimonios { background: #f8f7f3; }
:is(#destacadas, #vender, #oportunidades, #proceso, #enfoque, #testimonios) {
  box-shadow: inset 0 1px 0 #223f3110;
}
