/* Botón flotante WhatsApp */
.custom-floating-chat-btn{
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 999999;
  background: linear-gradient(135deg, #050505 0%, #121212 100%);
  color: #fff;
  border: 2px solid #b40012;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  min-width: 214px;
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
  font-weight: 900;
  cursor: pointer;
  overflow: visible;
  isolation: isolate;
}
.custom-floating-chat-btn::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  pointer-events:none;
}
.custom-chat-brand{
  position:relative;
  width:42px;
  height:42px;
  border-radius:999px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  box-shadow:0 8px 18px rgba(0,0,0,.22);
  z-index:2;
}
.custom-chat-brand img{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
}
.custom-chat-brand-fallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#b40012;
  color:#fff;
  font-weight:900;
  font-size:14px;
  line-height:1;
}
.custom-chat-label{
  position:relative;
  z-index:2;
  color:#fff !important;
  font-weight:900;
  font-size:16px;
  letter-spacing:.01em;
  white-space:nowrap;
}
.custom-chat-pulse{ display:none; }
.custom-chat-brand{ overflow:visible; }
.custom-chat-brand::before,
.custom-chat-brand::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:999px;
  border:2px solid rgba(214,0,24,.42);
  box-shadow:0 0 0 6px rgba(214,0,24,.10);
  animation:cucrdBrandWave 2.8s ease-out infinite;
  pointer-events:none;
  opacity:0;
  z-index:-1;
}
.custom-chat-brand::after{ animation-delay:1.4s; }
@keyframes cucrdBrandWave{
  0%{ transform:scale(.72); opacity:.76; }
  65%{ transform:scale(1.72); opacity:0; }
  100%{ transform:scale(1.92); opacity:0; }
}
@media (max-width: 767px){
  .custom-floating-chat-btn{
    min-width: 188px;
    min-height: 56px;
    padding: 9px 16px 9px 11px;
    gap: 10px;
    bottom: 62px;
    right: 14px;
  }
  .custom-chat-brand{ width:38px; height:38px; flex-basis:38px; }
  .custom-chat-brand::before,
  .custom-chat-brand::after{ inset:-6px; }
  .custom-chat-brand img{ width:29px; height:29px; }
  .custom-chat-label{ font-size:15px; }
}

.custom-chat-popup{
  position: fixed;
  right: 18px;
  bottom: 125px;
  width: 320px;
  max-width: calc(100vw - 36px);
  z-index: 999999;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.08);
}

.custom-chat-header{
  background: linear-gradient(135deg, #050505 0%, #141414 100%);
  color:#fff;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.custom-chat-header h5{ margin:0; font-size: 14px; font-weight: 900; }
.custom-chat-close{
  background: transparent;
  border:none;
  color:#fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.custom-chat-body{
  padding: 12px 14px;
  color: #111827;
  border-top: 3px solid #b40012;
}
.custom-chat-body p{ margin: 0 0 10px; font-size: 13px; color:#374151; }

.custom-chat-user{
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.custom-chat-link{ border-radius: 12px; transition: background .2s ease, transform .2s ease; }
.custom-chat-link:hover{ background: rgba(180,0,18,.06); transform: translateX(2px); }
.custom-chat-link{
  text-decoration:none;
  display:block;
}
.custom-user-info{
  display:flex;
  align-items:center;
  gap: 10px;
}
.custom-user-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}
.custom-user-name{
  font-weight: 800;
  color: #111827;
}

/* ============================
   Botón flotante Tarjeta + Modal público
   ============================ */
.cucrd-floating-card-btn{
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #111;
  color: #fff;
  border: 2px solid #b40012;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  z-index: 999999;
}
.cucrd-floating-card-btn i{ font-size: 18px; }
.cucrd-floating-card-btn:hover{ transform: translateY(-1px); }

.cucrd-modal{
  position: fixed;
  inset: 0;
  z-index: 1000000;
}
.cucrd-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.cucrd-modal-dialog{
  position: relative;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #fff;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.cucrd-modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.cucrd-modal-head{
  padding: 14px 16px;
  font-weight: 900;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cucrd-modal-body{
  padding: 12px 12px 14px;
}
.cucrd-card-picker{
  margin-bottom: 10px;
}
#cucrd-card-select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  font-weight: 700;
}
.cucrd-public-card-container{
  display:flex;
  justify-content:center;
}
.cucrd-public-card-loading{
  padding: 18px;
  color: #374151;
  font-weight: 700;
}

/* Ajuste para que la tarjeta se vea bien dentro del modal */
.cucrd-modal .cucrd-card-wrap{
  width: 100%;
}

.custom-floating-chat-btn:hover{ transform: translateY(-1px); box-shadow: 0 18px 40px rgba(0,0,0,.30); }
.custom-chat-header{ border-bottom:1px solid rgba(255,255,255,.12); }
.custom-chat-close:hover{ color:#ffdddd; }


.custom-chat-header h5{color:#fff !important;}
.custom-chat-close{color:#fff !important;}
.custom-floating-chat-btn span{color:#fff !important;}
