/* ═══════════════════════════════════════════════════
   NMS SUPPORT CENTER PRO — support.css
   Diseño fintech premium | Mobile First
═══════════════════════════════════════════════════ */

.nmss-wrap *{box-sizing:border-box;margin:0;padding:0;}

.nmss-wrap{
    font-family:'Inter','Segoe UI',system-ui,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    max-width:560px;
    margin:0 auto;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 8px 40px rgba(15,23,42,.09);
}

/* ── TABS ─────────────────────────────────────── */
.nmss-tabs{
    display:flex;
    border-bottom:1px solid #e2e8f0;
    background:#f8fafc;
}

.nmss-tab{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:14px 8px;
    font-size:12px;
    font-weight:700;
    color:#64748b;
    background:none;
    border:none;
    cursor:pointer;
    border-bottom:2px solid transparent;
    transition:color .18s, border-color .18s, background .18s;
    letter-spacing:.2px;
    font-family:inherit;
}

.nmss-tab:hover{
    background:#f1f5f9;
    color:#2563eb;
}

.nmss-tab.active{
    color:#2563eb;
    border-bottom-color:#2563eb;
    background:#fff;
}

.nmss-tab svg{flex-shrink:0;}

/* ── PANELES ──────────────────────────────────── */
.nmss-panel{
    display:none;
    flex-direction:column;
    padding:0;
}
.nmss-panel.active{display:flex;}

/* ── ASISTENTE HERO ───────────────────────────── */
.nmss-assistant-hero{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 20px;
    background:linear-gradient(135deg,#1e3a8a,#2563eb);
    color:#fff;
    position:relative;
}

.nmss-assistant-icon{
    width:48px;height:48px;
    background:rgba(255,255,255,.15);
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}

.nmss-assistant-title{
    font-size:16px;
    font-weight:800;
    color:#fff;
    margin-bottom:2px;
}

.nmss-assistant-sub{
    font-size:11px;
    color:rgba(255,255,255,.7);
    font-weight:500;
}

.nmss-online-badge{
    display:flex;align-items:center;gap:6px;
    margin-left:auto;
    background:rgba(255,255,255,.15);
    border-radius:999px;
    padding:5px 11px;
    font-size:11px;
    font-weight:700;
    color:rgba(255,255,255,.9);
    flex-shrink:0;
}

.nmss-dot{
    width:7px;height:7px;
    border-radius:50%;
    background:#4ade80;
    animation:nmss-pulse 1.8s infinite;
    flex-shrink:0;
}

@keyframes nmss-pulse{
    0%,100%{opacity:1;transform:scale(1);}
    50%{opacity:.4;transform:scale(.75);}
}

/* ── ÁREA DE CHAT ─────────────────────────────── */
.nmss-chat-area{
    flex:1;
    min-height:260px;
    max-height:320px;
    overflow-y:auto;
    padding:16px 18px;
    display:flex;
    flex-direction:column;
    gap:12px;
    background:#f8fafc;
    scroll-behavior:smooth;
}

/* ── BURBUJAS ─────────────────────────────────── */
.nmss-bubble{
    max-width:82%;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.nmss-bubble-bot{align-self:flex-start;}
.nmss-bubble-user{align-self:flex-end;}

.nmss-bubble-sender{
    font-size:10px;
    font-weight:700;
    color:#94a3b8;
    letter-spacing:.3px;
    padding:0 4px;
}

.nmss-bubble-text{
    padding:11px 14px;
    border-radius:14px;
    font-size:13.5px;
    line-height:1.6;
    font-weight:500;
}

.nmss-bubble-bot .nmss-bubble-text{
    background:#ffffff;
    color:#1e293b;
    border:1px solid #e8ecf2;
    border-radius:4px 14px 14px 14px;
}

.nmss-bubble-user .nmss-bubble-text{
    background:#2563eb;
    color:#fff;
    border-radius:14px 4px 14px 14px;
}

.nmss-bubble-user .nmss-bubble-sender{text-align:right;}

/* ── RESPUESTA CON BOTONES RELACIONADOS ───────── */
.nmss-related-wrap{
    margin-top:8px;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.nmss-related-label{
    font-size:11px;
    font-weight:700;
    color:#94a3b8;
    letter-spacing:.3px;
    margin-bottom:2px;
}

.nmss-related-btn{
    background:#eff6ff;
    color:#2563eb;
    border:1px solid #bfdbfe;
    border-radius:8px;
    padding:7px 11px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
    text-align:left;
    transition:background .15s;
    font-family:inherit;
}

.nmss-related-btn:hover{background:#dbeafe;}

/* Typing indicator */
.nmss-typing .nmss-bubble-text{
    display:flex;gap:4px;align-items:center;padding:12px 16px;
}
.nmss-typing-dot{
    width:7px;height:7px;border-radius:50%;
    background:#94a3b8;
    animation:nmss-bounce .8s infinite;
}
.nmss-typing-dot:nth-child(2){animation-delay:.15s;}
.nmss-typing-dot:nth-child(3){animation-delay:.3s;}

@keyframes nmss-bounce{
    0%,60%,100%{transform:translateY(0);}
    30%{transform:translateY(-5px);}
}

/* ── INPUT BAR ────────────────────────────────── */
.nmss-input-bar{
    display:flex;
    gap:8px;
    padding:12px 16px;
    background:#fff;
    border-top:1px solid #f0f4f8;
}

.nmss-input{
    flex:1;
    padding:11px 14px;
    border:1.5px solid #e2e8f0;
    border-radius:12px;
    font-size:14px;
    font-family:inherit;
    color:#1e293b;
    background:#f8fafc;
    transition:border-color .18s, box-shadow .18s;
    outline:none;
}

.nmss-input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
    background:#fff;
}

.nmss-send-btn{
    width:44px;height:44px;
    background:#2563eb;
    border:none;
    border-radius:12px;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
    transition:background .18s, transform .12s;
}

.nmss-send-btn:hover{background:#1d4ed8;}
.nmss-send-btn:active{transform:scale(.95);}

/* ── PREGUNTAS RÁPIDAS ────────────────────────── */
.nmss-quick-qs{
    padding:10px 16px 14px;
    background:#fff;
}

.nmss-quick-label{
    font-size:10px;
    font-weight:700;
    color:#94a3b8;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:8px;
}

.nmss-quick-btns{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.nmss-quick-btn{
    background:#f1f5f9;
    color:#334155;
    border:1px solid #e2e8f0;
    border-radius:999px;
    padding:6px 13px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
    transition:background .15s, color .15s, border-color .15s;
    font-family:inherit;
    white-space:nowrap;
}

.nmss-quick-btn:hover{
    background:#eff6ff;
    color:#2563eb;
    border-color:#bfdbfe;
}

/* ── CTA AGENTE ───────────────────────────────── */
.nmss-agent-cta{
    margin:0 16px 14px;
    background:#f0f6ff;
    border:1px solid #bfdbfe;
    border-radius:14px;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

.nmss-agent-cta-text{
    font-size:13px;
    font-weight:600;
    color:#1e40af;
}

.nmss-agent-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:9px 16px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    font-family:inherit;
    transition:background .15s;
    white-space:nowrap;
}

.nmss-agent-btn:hover{background:#1d4ed8;}

/* ── CHAT EN VIVO ─────────────────────────────── */
.nmss-chat-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border-bottom:1px solid #f0f4f8;
}

.nmss-live-area{
    background:#f8fafc;
}

.nmss-start-chat-wrap{
    padding:20px 18px;
    text-align:center;
}

.nmss-start-chat-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:14px;
    padding:14px 24px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    font-family:inherit;
    transition:background .18s, transform .12s;
}

.nmss-start-chat-btn:hover{background:#1d4ed8;}
.nmss-start-chat-btn:active{transform:scale(.97);}

/* ── TICKET FORM ──────────────────────────────── */
.nmss-ticket-intro{
    padding:18px 20px 10px;
}

.nmss-ticket-intro strong{
    font-size:15px;
    font-weight:800;
    color:#0f172a;
    display:block;
    margin-bottom:5px;
}

.nmss-ticket-intro p{
    font-size:13px;
    color:#64748b;
    line-height:1.5;
}

.nmss-field{
    padding:0 20px 14px;
}

.nmss-field label{
    display:block;
    font-size:11px;
    font-weight:700;
    color:#64748b;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:7px;
}

.nmss-select{
    width:100%;
    padding:11px 14px;
    border:1.5px solid #e2e8f0;
    border-radius:12px;
    background:#f9fafb;
    font-size:14px;
    font-family:inherit;
    color:#1e293b;
    -webkit-appearance:none;
    appearance:none;
    transition:border-color .18s, box-shadow .18s;
}

.nmss-select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.nmss-textarea{
    width:100%;
    padding:11px 14px;
    border:1.5px solid #e2e8f0;
    border-radius:12px;
    background:#f9fafb;
    font-size:14px;
    font-family:inherit;
    color:#1e293b;
    resize:vertical;
    transition:border-color .18s, box-shadow .18s;
    outline:none;
}

.nmss-textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
    background:#fff;
}

.nmss-primary-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:calc(100% - 40px);
    margin:0 20px 20px;
    padding:14px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:14px;
    font-size:15px;
    font-weight:700;
    font-family:inherit;
    cursor:pointer;
    transition:background .18s, transform .12s;
}

.nmss-primary-btn:hover{background:#1d4ed8;}
.nmss-primary-btn:active{transform:scale(.98);}

/* ── ALERTS ───────────────────────────────────── */
#nmss-ticket-msg{
    margin:0 20px 10px;
    font-size:13px;
    font-weight:600;
    padding:10px 14px;
    border-radius:10px;
    display:none;
}

#nmss-ticket-msg.success{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0;display:block;}
#nmss-ticket-msg.error  {background:#fff1f2;color:#be123c;border:1px solid #fecdd3;display:block;}

/* ── SUCCESS STATE ────────────────────────────── */
.nmss-success-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:36px 24px;
    gap:10px;
}

.nmss-success-icon{font-size:48px;}

.nmss-success-title{
    font-size:20px;
    font-weight:800;
    color:#0f172a;
}

.nmss-success-sub{
    font-size:14px;
    color:#475569;
}

.nmss-success-note{
    font-size:13px;
    color:#64748b;
    line-height:1.6;
    max-width:300px;
}

/* ── LOGIN NOTICE ─────────────────────────────── */
.nmss-login-notice{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:36px 24px;
    gap:12px;
    color:#64748b;
    font-size:14px;
}

.nmss-login-notice a{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media(max-width:480px){
    .nmss-wrap{border-radius:16px;margin:0 8px;}
    .nmss-tab{font-size:11px;padding:12px 4px;}
    .nmss-chat-area{min-height:220px;max-height:280px;}
    .nmss-quick-btn{font-size:11px;padding:5px 10px;}
}

@media(min-width:900px){
    .nmss-wrap{max-width:580px;}
}
