/* Liquid glass: brillo de vidrio en los botones e interruptores (tiendas, panel y web de las dos plataformas).
   Se carga después de los estilos de cada página: solo suma brillo, reflejos y sombras; no cambia colores ni tamaños. */

/* ───────── Botones ───────── */
.btn, .ms-btn, .tpill, .ms-share, .tx-cloud {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.10) 46%, rgba(255,255,255,0) 54%, rgba(0,0,0,.05) 100%),
    radial-gradient(120% 150% at 100% 100%, rgba(255,160,215,.20), rgba(130,200,255,.12) 28%, transparent 52%),
    radial-gradient(90% 120% at 0% 0%, rgba(255,255,255,.35), transparent 45%);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 2px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 6px 16px -9px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  backdrop-filter: blur(10px) saturate(1.6);
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s, background-color .18s, color .18s, border-color .18s, opacity .18s;
}
.btn:hover:not(:disabled):not([aria-disabled="true"]),
.ms-btn:hover:not(:disabled):not([aria-disabled="true"]),
.tpill:hover, .ms-share:hover, .tx-cloud:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 2px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.30),
    0 10px 22px -10px rgba(0,0,0,.40);
}
.btn:active:not(:disabled), .ms-btn:active:not(:disabled), .tpill:active, .ms-share:active, .tx-cloud:active {
  transform: translateY(0) scale(.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 2px 6px rgba(0,0,0,.14), 0 3px 8px -6px rgba(0,0,0,.3);
}
/* botones sin fondo (iconos, "fantasma"): vidrio claro */
.btn.ghost, .btn.ghost-light {
  background-color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.75);
}
.btn:disabled, .ms-btn:disabled, .ms-btn[aria-disabled="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) {
  .btn, .ms-btn, .tpill, .ms-share, .tx-cloud { transition: none; }
  .btn:hover, .ms-btn:hover, .tpill:hover, .ms-share:hover, .tx-cloud:hover { transform: none; }
}

/* ───────── Interruptores (activar / desactivar) ─────────
   Pista de color y perilla de vidrio alargada con aro blanco, más alta que la pista. */
.sw input, .tg input {
  width: 54px; height: 24px; border-radius: 999px; overflow: visible;
  background: #d9d9d5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18), inset 0 -1px 0 rgba(255,255,255,.6);
  transition: background .25s;
}
.sw input::after, .tg input::after {
  top: -2px; left: -3px; width: 38px; height: 28px; border-radius: 999px;
  background:
    radial-gradient(90% 80% at 50% 50%, rgba(255,255,255,.15), rgba(255,255,255,.35) 60%, rgba(255,255,255,.85) 92%),
    rgba(240,240,238,.45);
  border: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(0,0,0,.22), inset 0 -2px 4px rgba(0,0,0,.10), inset 0 1px 1px #fff, 0 0 0 .5px rgba(0,0,0,.10);
  -webkit-backdrop-filter: blur(3px) saturate(1.5);
  backdrop-filter: blur(3px) saturate(1.5);
  transition: transform .3s cubic-bezier(.3,1.4,.5,1), width .2s, background .2s;
}
.sw input:active::after, .tg input:active::after { width: 42px; }
.sw input:checked, .tg input:checked { background: #5ccf5c; }
.sw input:checked::after, .tg input:checked::after {
  transform: translateX(22px);
  box-shadow: 0 3px 8px rgba(0,0,0,.22), inset -6px -2px 0 -2px rgba(255,255,255,.9), inset 0 1px 1px #fff, 0 0 0 .5px rgba(0,0,0,.10);
  background:
    radial-gradient(90% 80% at 45% 50%, rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 78%, rgba(255,255,255,.95) 96%),
    rgba(92,207,92,.15);
}
.sw input:checked:active::after, .tg input:checked:active::after { transform: translateX(18px); }

/* panel de ChangosTech: <span class="tr"> */
.switch .tr {
  width: 54px; height: 24px; border-radius: 999px;
  background: #d9d9d5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18), inset 0 -1px 0 rgba(255,255,255,.6);
  transition: background .25s;
}
.switch .tr::after {
  top: -2px; left: -3px; width: 38px; height: 28px; border-radius: 999px;
  background:
    radial-gradient(90% 80% at 50% 50%, rgba(255,255,255,.15), rgba(255,255,255,.35) 60%, rgba(255,255,255,.85) 92%),
    rgba(240,240,238,.45);
  border: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(0,0,0,.22), inset 0 -2px 4px rgba(0,0,0,.10), inset 0 1px 1px #fff, 0 0 0 .5px rgba(0,0,0,.10);
  -webkit-backdrop-filter: blur(3px) saturate(1.5);
  backdrop-filter: blur(3px) saturate(1.5);
  transition: transform .3s cubic-bezier(.3,1.4,.5,1), background .2s;
}
.switch input:checked + .tr { background: #5ccf5c; }
.switch input:checked + .tr::after {
  transform: translateX(22px);
  box-shadow: 0 3px 8px rgba(0,0,0,.22), inset -6px -2px 0 -2px rgba(255,255,255,.9), inset 0 1px 1px #fff, 0 0 0 .5px rgba(0,0,0,.10);
  background:
    radial-gradient(90% 80% at 45% 50%, rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 78%, rgba(255,255,255,.95) 96%),
    rgba(92,207,92,.15);
}
.switch input:focus-visible + .tr, .sw input:focus-visible, .tg input:focus-visible { outline: 3px solid rgba(92,207,92,.45); outline-offset: 3px; }

/* selectores de cantidad (− 1 +) y botón "Cómo comprar": mismo vidrio */
.ms-qty, .ms-step, #howBtn {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.10) 46%, rgba(255,255,255,0) 54%, rgba(0,0,0,.05) 100%),
    radial-gradient(120% 150% at 100% 100%, rgba(255,160,215,.18), rgba(130,200,255,.10) 28%, transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 2px rgba(0,0,0,.08), 0 6px 16px -10px rgba(0,0,0,.3);
}
