
/* ===== Cursapp soporte directiva ===== */
.supportFab{
  position:fixed;
  right:16px;
  bottom:148px;
  z-index:9000;
  border:0;
  border-radius:999px;
  padding:14px 16px;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  color:#fff;
  font-weight:950;
  box-shadow:0 18px 38px rgba(109,40,217,.24);
  display:flex;
  align-items:center;
  gap:8px;
}
.supportFab:active{transform:scale(.99)}
.supportOverlay{
  position:fixed;
  inset:0;
  z-index:10050;
  background:rgba(15,23,42,.48);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
}
.supportCard{
  width:min(680px,100%);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:26px;
  padding:20px;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
}
.supportHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.supportHead h2{margin:0;font-size:21px;letter-spacing:-.4px}
.supportHead p{margin:6px 0 0;color:#667085;font-weight:750;line-height:1.45}
.supportClose{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:950;
}
.supportGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.supportField{display:grid;gap:6px}
.supportField label{
  color:#667085;
  font-size:12px;
  font-weight:900;
}
.supportField input,.supportField select,.supportField textarea{
  width:100%;
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  padding:13px 14px;
  font-weight:750;
  outline:none;
  background:#fff;
}
.supportField textarea{min-height:110px;resize:vertical}
.supportWide{grid-column:1/-1}
.supportMeta{
  margin:14px 0;
  padding:12px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  color:#475467;
  font-weight:800;
  font-size:13px;
  line-height:1.45;
}
.supportActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:16px;
}
.supportBtn{
  border:0;
  border-radius:16px;
  padding:13px 16px;
  font-weight:950;
  background:#f2f4f7;
  color:#101828;
}
.supportBtn.primary{
  color:#fff;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  box-shadow:0 14px 32px rgba(109,40,217,.20);
}
@media(max-width:560px){
  .supportGrid{grid-template-columns:1fr}
  .supportFab{
    right:14px;
    bottom:84px;
    padding:13px 14px;
  }
}

/* ===== Mis tickets / respuestas soporte ===== */
.supportCardTabs{padding-bottom:14px}
.supportTabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:6px;
  background:#f2f4f7;
  border-radius:18px;
  margin:12px 0 14px;
}
.supportTabs button{
  border:0;
  border-radius:14px;
  padding:12px;
  font-weight:950;
  background:transparent;
  color:#667085;
}
.supportTabs button.active{
  background:#fff;
  color:#6d28d9;
  box-shadow:0 8px 18px rgba(15,23,42,.07);
}
.supportTabs span{
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#ede9fe;
  color:#6d28d9;
  margin-left:6px;
}
.supportTicketList{
  display:grid;
  gap:10px;
  max-height:52vh;
  overflow:auto;
  padding-right:2px;
}
.supportTicketItem{
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  padding:14px;
  background:#fff;
}
.supportTicketTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.supportTicketTop b{display:block;font-size:14px}
.supportTicketTop span{
  display:block;
  margin-top:4px;
  color:#667085;
  font-weight:800;
  font-size:12px;
}
.supportTicketTop em{
  font-style:normal;
  border-radius:999px;
  padding:7px 9px;
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
  background:#f2f4f7;
}
.supportTicketTop em.green{background:#dcfce7;color:#166534}
.supportTicketTop em.orange{background:#ffedd5;color:#9a3412}
.supportTicketTop em.red{background:#ffe4e6;color:#be123c}
.supportTicketTop em.gray{background:#f2f4f7;color:#475467}
.supportTicketItem p{
  margin:10px 0 0;
  color:#344054;
  font-weight:700;
  line-height:1.45;
}
.supportTicketItem details{
  margin-top:12px;
  border-top:1px solid rgba(15,23,42,.08);
  padding-top:10px;
}
.supportTicketItem summary{
  color:#6d28d9;
  font-weight:950;
  cursor:pointer;
}
.supportMsg{
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  background:#f8fafc;
}
.supportMsg b{display:block}
.supportMsg small{display:block;color:#667085;font-weight:800;margin-top:2px}
.supportEmpty{
  padding:18px;
  border-radius:18px;
  background:#f8fafc;
  color:#667085;
  font-weight:850;
  text-align:center;
}
@media(max-width:560px){
  .supportOverlay{
    align-items:flex-end;
    padding:10px;
  }
  .supportCard{
    max-height:84vh;
    padding:18px;
  }
  .supportHead h2{font-size:20px}
  .supportHead p{font-size:15px;line-height:1.35}
  .supportMeta{font-size:12px}
  .supportTicketTop{display:grid}
}


/* ===== Conversación soporte premium ===== */
.supportTicketItem.hasReply{
  border-color:rgba(109,40,217,.22);
  box-shadow:0 10px 30px rgba(109,40,217,.08);
}

.supportTicketBadges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 4px;
}

.supportTicketBadges span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
}

.supportTicketBadges .reply{
  background:#ede9fe;
  color:#6d28d9;
}

.supportTicketBadges .pending{
  background:#fef3c7;
  color:#92400e;
}

.supportTicketBadges .done{
  background:#dcfce7;
  color:#166534;
}

.supportConversationBtn{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  margin-top:12px;
  background:#f8fafc;
  color:#6d28d9;
  font-weight:950;
}

.supportConversation{
  display:none;
  gap:10px;
  margin-top:14px;
}

.supportConversation.open{
  display:grid;
}

.supportBubble{
  max-width:92%;
  border-radius:18px;
  padding:12px;
}

.supportBubble.user{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
}

.supportBubble.admin{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  color:#fff;
  margin-left:auto;
  box-shadow:0 14px 34px rgba(109,40,217,.20);
}

.supportBubbleHead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.supportBubbleHead b{
  font-size:13px;
}

.supportBubbleHead small{
  opacity:.82;
  font-size:11px;
  font-weight:800;
}

.supportBubbleText{
  line-height:1.45;
  font-weight:750;
}

