/* Liquid Metal Button — adapted for EL PATIO HD's native buttons and links. */
.liquid-metal-button {
  --metal-rim: 2px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #939795;
  border-radius: 999px;
  background: linear-gradient(150deg, #e7e9e6, #737976 22%, #f9faf7 48%, #5b615e 72%, #dce0da);
  color: #f8faf5;
  box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 8px 20px rgb(0 0 0 / .12);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.liquid-metal-button:not(.floating-whatsapp) { position: relative; }

.liquid-metal-chrome {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(from 45deg, #f4f5f0, #6b706b, #e5e9e0, #a5aba1, #fff, #737970, #f4f5f0);
}

.liquid-metal-shader,
.liquid-metal-shader canvas {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  pointer-events: none;
}

.liquid-metal-shader { opacity: 0; }
.liquid-metal-button.is-metal-ready .liquid-metal-shader { opacity: 1; }

.liquid-metal-button::before {
  content: "";
  position: absolute;
  inset: var(--metal-rim);
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: inherit;
  background: linear-gradient(180deg, #252724, #090a09);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  pointer-events: none;
  z-index: 1;
}

.liquid-metal-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  color: inherit;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  z-index: 2;
}

.button.liquid-metal-button { padding: 14px 25px; }
.floating-whatsapp.liquid-metal-button { padding: 12px 18px; }
.header-cta.liquid-metal-button { padding: 10px 20px; }

.liquid-metal-ripple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .36), rgb(255 255 255 / 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: liquid-metal-ripple .6s ease-out both;
  z-index: 3;
}

.liquid-metal-button:focus-visible {
  outline: 3px solid #176cff;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff, 0 8px 24px rgb(0 0 0 / .2);
}

@media (hover: hover) {
  .liquid-metal-button:hover {
    border-color: #e5ebe0;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgb(0 0 0 / .18), 0 10px 24px rgb(0 0 0 / .2), 0 0 16px rgb(217 255 53 / .08);
  }
}

.liquid-metal-button[data-metal-pressed] {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.liquid-metal-button[data-metal-pressed]::before {
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .45);
}

@keyframes liquid-metal-ripple {
  from { transform: translate(-50%, -50%) scale(0); opacity: .7; }
  to { transform: translate(-50%, -50%) scale(var(--ripple-scale, 20)); opacity: 0; }
}

@media (max-width: 520px) {
  .button-whatsapp.liquid-metal-button { position: sticky; }
  .header-cta.liquid-metal-button { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-metal-button,
  .liquid-metal-button:hover,
  .liquid-metal-button[data-metal-pressed] {
    transform: none;
    transition: none;
  }
  .liquid-metal-ripple { display: none; }
}
