/* VIVE 8A.2 · Material de vidrio y jerarquia de la tarjeta del hero.
   Hoja deliberadamente nueva para evitar cachear glossy-premium.css.
   SOLO ajustes visuales: no afecta catalogo, datos, fotos, filtros ni formulario. */

/* No crear un segundo fondo solido: el vidrio debe difuminar la imagen real. */
html body .header { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .header .headerin {
  position: relative;
  background: rgba(234, 252, 239, .055) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(249,255,250,.58);
  border-radius: 23px;
  box-shadow: 0 13px 38px rgba(3,30,21,.25), inset 0 1px 0 rgba(255,255,255,.70);
}
/* El pseudo-elemento es el verdadero panel de backdrop-filter.
   Transparencia del material ~ 12 %, sin opacidad aplicada al texto o logo. */
html body .header .headerin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg,
    rgba(240,255,244,.19) 0%, rgba(224,253,234,.10) 50%, rgba(232,255,241,.18) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(165%) brightness(1.10);
  backdrop-filter: blur(24px) saturate(165%) brightness(1.10);
}
html body .header .headerin::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(170deg,
    rgba(255,255,255,.13), transparent 42%, rgba(241,255,246,.055) 100%);
}
html body .header .headerin > * { position: relative; z-index: 1; }
html body .header .nav a { color: #0d3324; text-shadow: 0 1px 2px rgba(249,255,249,.50); }
html body .header .brand .word,
html body .header .brand small {
  text-shadow: 0 0 5px rgba(249,255,251,.85), 0 0 9px rgba(249,255,251,.75);
}
/* El menu expandido necesita un soporte mas opaco para accesibilidad. */
html body .header .nav.mobile-open {
  background: rgba(231,249,235,.91);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

/* Tarjeta util del hero: a la derecha y claramente SEPARADA del buscador.
   El buscador flota 43px sobre el hero, por eso dejamos una reserva amplia. */
html body .hero.variant-b { position: relative; }
html body .hero.variant-b .hero-catalog {
  position: absolute !important;
  inset: auto clamp(28px,3.8vw,58px) 170px auto !important;
  margin: 0 !important;
  width: min(318px,29%) !important;
  max-width: none;
  padding: 19px 20px;
  z-index: 6;
  transform: none;
  background: linear-gradient(140deg, rgba(242,255,247,.83), rgba(222,245,231,.77));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 20px;
  box-shadow: 0 16px 39px rgba(3,30,19,.30), inset 0 1px 0 rgba(255,255,255,.55);
}
html body .hero.variant-b .hero-catalog h2,
html body .hero.variant-b .hero-catalog p { overflow-wrap: anywhere; }

/* Tablet y movil: tarjeta bajo el contenido del hero, ANTES del buscador.
   Se reserva espacio inferior para que la superposicion del buscador no la tape. */
@media (max-width: 1023px) {
  html body .hero.variant-b .hero-catalog {
    position: relative !important;
    inset: auto !important;
    width: min(380px, calc(100% - 84px)) !important;
    margin: 12px 42px 104px auto !important;
    max-width: none;
    z-index: 6;
  }
}
@media (max-width: 700px) {
  html body .header .headerin { border-radius: 17px; }
  html body .header .headerin::before {
    background: linear-gradient(125deg,rgba(235,255,240,.30),rgba(231,252,237,.22));
    -webkit-backdrop-filter: blur(18px) saturate(148%) brightness(1.06);
    backdrop-filter: blur(18px) saturate(148%) brightness(1.06);
  }
  html body .hero.variant-b .hero-catalog {
    width: calc(100% - 44px) !important;
    max-width: 420px;
    margin: 12px 22px 92px !important;
    padding: 17px;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body .header .headerin::before { background: rgba(226,247,234,.92); }
  html body .hero.variant-b .hero-catalog { background: rgba(236,249,240,.96); }
}
@media (prefers-reduced-motion: reduce) {
  html body .hero.variant-b .hero-catalog { animation: none !important; }
}
