/* ——— Water Button (glass + agua Plexarian) ——— */
.ca-water {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  border: none;
  border-radius: var(--ca-water-radius, 100px);
  background: transparent !important;
  color: var(--ca-water-text, #fff);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 0 0.75px rgba(20, 26, 31, 0.18),
    1px 1.5px 3px rgba(20, 26, 31, 0.12),
    4px 6px 12px rgba(51, 29, 64, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-water--press:active {
  transform: scale(0.97);
}

.ca-water:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 51, 100, 0.45),
    4px 6px 12px rgba(51, 29, 64, 0.22);
}

.ca-water__frost,
.ca-water__tint,
.ca-water__canvas-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.ca-water__frost {
  overflow: hidden;
  background: hsl(0 0% 100% / var(--ca-water-frost, 0.12));
  backdrop-filter: blur(var(--ca-water-blur, 28px));
  -webkit-backdrop-filter: blur(var(--ca-water-blur, 28px));
  z-index: 0;
}

.ca-water__tint {
  background-color: var(--ca-water-tint, rgba(51, 29, 64, 0.28));
  z-index: 1;
}

.ca-water__canvas-wrap {
  z-index: 2;
}

.ca-water__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ca-water__label {
  position: relative;
  z-index: 3;
  display: block;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  user-select: none;
  pointer-events: none;
}

/* Header desktop: tamaño contenido, no pelear con el logo */
@media (min-width: 992px) {
  .header__button .ca-water {
    padding: 0.55rem 1.15rem;
    min-height: 40px;
  }

  .header__button .ca-water--clientes {
    padding: 0.5rem 1.05rem;
  }

  .header__button .ca-water--contratar {
    padding: 0.55rem 1.35rem;
  }

  .header__button .ca-water__label {
    font-size: 0.8125rem;
  }

  /* Anula padding/rosa sólido del .button del tema */
  .header__button .button.ca-water {
    padding: 0.55rem 1.35rem !important;
    font-size: inherit !important;
    line-height: inherit !important;
    background: transparent !important;
  }

  .header__button .button.ca-water:hover {
    background: transparent !important;
    box-shadow:
      0 0 0.75px rgba(20, 26, 31, 0.18),
      2px 4px 14px rgba(255, 51, 100, 0.35);
  }
}

/* Móvil header: contratar compacto pero con agua */
@media (max-width: 991px) {
  .header__button .button.ca-water {
    padding: 6px 10px !important;
    min-height: 28px;
    background: transparent !important;
  }

  .header__button .button.ca-water__label,
  .header__button .button.ca-water .ca-water__label {
    font-size: 8px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .header__button .button.ca-water {
    padding: 8px 20px !important;
  }

  .header__button .button.ca-water .ca-water__label {
    font-size: 13px;
  }
}

/* Drawer: Acceso clientes full-width glass */
.menu-mobile .ca-water,
#mobile-menu .ca-water {
  display: inline-flex !important;
  width: calc(100% - 2rem);
  max-width: 20rem;
  margin: 0.85rem 1rem;
  padding: 0.75rem 1.1rem;
  color: #fff;
}

.menu-mobile .ca-water__label,
#mobile-menu .ca-water__label {
  font-size: 0.875rem;
  color: #fff;
}

.menu-mobile .ca-water--static,
#mobile-menu .ca-water--static {
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Fallback sin simulación (reduced motion / touch) */
.ca-water--static.ca-water--clientes {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16),
    rgba(51, 29, 64, 0.35)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.ca-water--static.ca-water--contratar {
  background: linear-gradient(165deg, #ff5a82, #ff3364 55%, #ea2857) !important;
}

.ca-page .header__button .ca-water--active,
.ca-water.ca-trigger--active {
  box-shadow:
    0 0 0 2px rgba(255, 51, 100, 0.55),
    4px 6px 12px rgba(51, 29, 64, 0.22);
}
