:root { --rscp2-z-index: 99999; }

/* Floating contact controls: two independent buttons, not one enclosing pill. */
.rscp2-contact-bar {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--rscp2-z-index);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  direction: ltr;
  font-family: inherit;
  animation: rscp2-bar-enter .5s cubic-bezier(.2,.8,.2,1) both;
  pointer-events: none;
}
.rscp2-contact-bar *, .rscp2-contact-bar *::before, .rscp2-contact-bar *::after { box-sizing: border-box; }

.rscp2-contact-item {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(10, 28, 44, .2), 0 2px 5px rgba(0,0,0,.11), inset 0 1px 0 rgba(255,255,255,.2);
  outline-offset: 4px;
  transition: filter .2s ease, box-shadow .2s ease, translate .2s ease, scale .2s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  pointer-events: auto;
  overflow: visible;
}
.rscp2-contact-item.rscp2-phone {
  background: var(--rscp2-phone, #E52330);
  background: linear-gradient(145deg, color-mix(in srgb, var(--rscp2-phone, #E52330) 84%, #fff 16%), var(--rscp2-phone, #E52330) 58%, color-mix(in srgb, var(--rscp2-phone, #E52330) 82%, #000 18%));
  box-shadow: 0 8px 22px rgba(229,35,48,.32), 0 2px 5px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.22);
}
.rscp2-contact-item.rscp2-whatsapp {
  background: var(--rscp2-whatsapp, #20C96B);
  background: linear-gradient(145deg, color-mix(in srgb, var(--rscp2-whatsapp, #20C96B) 84%, #fff 16%), var(--rscp2-whatsapp, #20C96B) 58%, color-mix(in srgb, var(--rscp2-whatsapp, #20C96B) 82%, #000 18%));
  box-shadow: 0 8px 22px rgba(25,160,83,.28), 0 2px 5px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.22);
}
.rscp2-contact-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: rscp2-pulse 3.8s ease-out infinite;
}
.rscp2-contact-item.rscp2-whatsapp::before { animation-delay: 1.9s; }
.rscp2-contact-item .rscp2-icon {
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: #fff;
}
.rscp2-contact-item .rscp2-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rscp2-contact-item.rscp2-whatsapp .rscp2-icon svg { stroke-width: 1.75; }
.rscp2-contact-item .rscp2-label {
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .05px;
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
.rscp2-contact-item:hover, .rscp2-contact-item:focus-visible {
  filter: brightness(1.06) saturate(1.08);
  translate: 0 -3px;
  scale: 1.035;
  box-shadow: 0 12px 27px rgba(10,28,44,.23), 0 3px 7px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.26);
}
.rscp2-contact-item:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.rscp2-contact-item:active { translate: 0 -1px; scale: .98; }
.rscp2-contact-bar.rscp2-icons-only { gap: 15px; }
.rscp2-contact-bar.rscp2-icons-only .rscp2-contact-item {
  width: 49px;
  height: 49px;
  min-width: 49px;
  min-height: 49px;
  padding: 0;
  border-radius: 50%;
}
.rscp2-contact-bar.rscp2-icons-only .rscp2-icon { flex-basis: 26px; width: 26px; height: 26px; }
.rscp2-contact-bar.rscp2-icons-only .rscp2-icon svg { width: 24px; height: 24px; }
.rscp2-contact-bar.rscp2-icons-only .rscp2-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.rscp2-contact-bar.rscp2-no-animation, .rscp2-contact-bar.rscp2-no-animation * { animation: none !important; }
.rscp2-contact-bar:not(.rscp2-no-animation) .rscp2-contact-item { animation: rscp2-float 3.6s ease-in-out infinite; }
.rscp2-contact-bar:not(.rscp2-no-animation) .rscp2-contact-item:nth-of-type(2) { animation-delay: .55s; }
.rscp2-contact-bar:not(.rscp2-no-animation):hover .rscp2-contact-item { animation-play-state: paused; }

@keyframes rscp2-bar-enter { from { opacity: 0; transform: translate(-50%, 13px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes rscp2-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes rscp2-pulse { 0% { opacity: .44; transform: scale(.94); } 78%,100% { opacity: 0; transform: scale(1.3); } }

@media (max-width: 480px) {
  .rscp2-contact-bar { bottom: calc(13px + env(safe-area-inset-bottom, 0px)); gap: 12px; max-width: calc(100vw - 20px); }
  .rscp2-contact-item { min-height: 45px; min-width: 45px; padding: 6px 11px 6px 9px; gap: 6px; border-radius: 15px; }
  .rscp2-contact-item .rscp2-icon { flex-basis: 25px; width: 25px; height: 25px; }
  .rscp2-contact-item .rscp2-icon svg { width: 22px; height: 22px; }
  .rscp2-contact-item .rscp2-label { font-size: 11px; }
  .rscp2-contact-bar.rscp2-icons-only { gap: 12px; }
  .rscp2-contact-bar.rscp2-icons-only .rscp2-contact-item { width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
}
@media (max-width: 340px) {
  .rscp2-contact-bar { gap: 9px; max-width: calc(100vw - 16px); }
  .rscp2-contact-item { padding-right: 9px; gap: 5px; }
  .rscp2-contact-item .rscp2-label { font-size: 10px; }
}
@media (min-width: 769px) { .rscp2-contact-bar.rscp2-hide-desktop { display: none !important; } }
@media (max-width: 768px) { .rscp2-contact-bar.rscp2-hide-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .rscp2-contact-bar, .rscp2-contact-bar *, .rscp2-contact-bar *::before, .rscp2-contact-bar *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
