/* ===========================================================
   LIQUID GLASS — inspirado en github.com/0kzh/glisse (MIT)
   Port ligero en CSS + JS puro. Se activa con html.lg (lo pone glass.js).
   Para desactivar: quita el enlace <!--GLASS--> de las páginas,
   o prueba una página con ?glass=0 para comparar.
   =========================================================== */
html.lg{
  --lg-bg:rgba(255,255,255,0.07);
  --lg-blur:14px;
  --lg-shadow:0 10px 34px rgba(0,0,0,0.38);
}
/* Material base: frost + luz en el borde (arriba-izquierda y reflejo abajo-derecha) */
html.lg :is(.submit-btn,.submit-btn-small,.info-btn,.mb-cookie-btn,.cross-cta,.digital-btn,.btn,.hero-cta a,.glass-card,.cross-card,.cv-card,#mb-cookie),
html.lg .nav ul.lg-nav{
  background:
    radial-gradient(140px circle at var(--lg-x,50%) var(--lg-y,-60%), rgba(255,255,255,var(--lg-hl,0)), transparent 70%),
    var(--lg-bg) !important;
  -webkit-backdrop-filter:blur(var(--lg-blur)) saturate(180%) brightness(1.05);
  backdrop-filter:blur(var(--lg-blur)) saturate(180%) brightness(1.05);
  border:0 !important;
  box-shadow:
    inset 1.5px 1.5px 0 -0.5px rgba(255,255,255,0.55),
    inset -1px -1px 0 -0.5px rgba(255,255,255,0.26),
    inset 0 0 0 0.5px rgba(255,255,255,0.12),
    inset 0 12px 26px -14px rgba(255,255,255,0.2),
    var(--lg-shadow) !important;
  transition:transform .45s cubic-bezier(.34,1.56,.64,1), --lg-hl .3s ease;
}
/* Formas: cápsulas en controles, esquinas amplias en tarjetas */
html.lg :is(.submit-btn,.submit-btn-small,.info-btn,.mb-cookie-btn,.cross-cta,.digital-btn,.btn,.hero-cta a){
  border-radius:999px !important; padding-inline:1.6em !important; color:var(--mb-paper,#fff) !important;
}
html.lg :is(.glass-card,.cross-card,.cv-card){ border-radius:26px !important; }
html.lg #mb-cookie{ border-radius:22px !important; }
/* Respuesta al puntero: crece y se ilumina, como el vidrio interactivo */
html.lg :is(.submit-btn,.submit-btn-small,.info-btn,.mb-cookie-btn,.cross-cta,.digital-btn,.btn,.hero-cta a,.cross-card,.nav ul.lg-nav):hover{ --lg-hl:0.2; }
html.lg :is(.submit-btn,.submit-btn-small,.info-btn,.mb-cookie-btn,.cross-cta,.digital-btn,.btn,.hero-cta a):hover{ transform:scale(1.04); }
html.lg :is(.submit-btn,.submit-btn-small,.info-btn,.mb-cookie-btn,.cross-cta,.digital-btn,.btn,.hero-cta a):active{ transform:scale(0.97); --lg-hl:0.32; }
/* Menú de escritorio: píldora de cristal */
@media (min-width:821px){
  html.lg .nav ul.lg-nav{ border-radius:999px !important; padding:12px 30px !important; align-self:center; }
}
@media (max-width:820px){
  html.lg .nav ul.lg-nav{ backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none !important; }
}
@media (prefers-reduced-motion:reduce){
  html.lg *{ transition:none !important; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html.lg{ --lg-bg:rgba(30,30,30,0.72); }
}
