/* ============================================================
   WIDGET PLATIO — DARK PREMIUM EDITION (Negro/Plata)
   Totalmente responsivo + estilo PLATIO oficial
 ============================================================ */

 #platio-support-root {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999999;
    font-family: 'Montserrat', sans-serif !important;
}

/* ------------------------------------------------------------
   BURBUJA flotante estilo PLATIO
------------------------------------------------------------- */

.platio-support-bubble {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #111, #2a2a2a);
    color: #E6E6E6;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 4px 18px rgba(0,0,0,0.45),
        inset 0 0 12px rgba(255,255,255,0.05);
    border: 1px solid #3a3a3a;
    transition: .25s ease;
}

.platio-support-bubble:hover {
    transform: scale(1.06);
    border-color: #777;
}

/* ------------------------------------------------------------
   PANEL PRINCIPAL
------------------------------------------------------------- */

.platio-support-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;

    background: #0d0d0d;
    border-radius: 14px;

    border: 1px solid #2d2d2d;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.55),
        inset 0 0 20px rgba(255,255,255,0.02);

    overflow: hidden;
}

/* Responsivo móvil: panel ocupa todo el ancho */
@media(max-width: 480px) {
    .platio-support-panel {
        width: 100vw;
        right: -10px;
        height: 65vh;
        bottom: 90px;
    }
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------- */

.platio-support-header {
    background: linear-gradient(90deg, #111, #1d1d1d);
    color: #E6E6E6;
    padding: 14px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #2e2e2e;
}

.platio-support-header-left {
    display: flex;
    align-items: center;
}

.platio-support-avatar {
    width: 42px;
    height: 42px;
    background: #222;
    border: 1px solid #444;

    border-radius: 50%;
    color: #E6E6E6;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;

    margin-right: 10px;
}

.platio-support-title {
    font-size: 15px;
    font-weight: 700;
}

.platio-support-subtitle {
    font-size: 12px;
    opacity: .7;
}

.platio-support-close {
    font-size: 18px;
    cursor: pointer;
    color: #9c9c9c;
}

.platio-support-close:hover {
    color: #fff;
}

/* ------------------------------------------------------------
   BODY + scroll
------------------------------------------------------------- */

.platio-support-body {
    flex: 1 1 auto;
    background: #0b0b0b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.platio-support-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Mensajes */
.msg {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 85%;
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 14px;
}

/* Mensaje Usuario */
.msg.user {
    background: linear-gradient(135deg, #573BFA, #6e56ff);
    color: white;
    align-self: flex-end;
    box-shadow: 0 2px 10px rgba(87,59,250,0.3);
}

/* Mensaje Bot */
.msg.bot {
    background: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid #2e2e2e;
}

/* ------------------------------------------------------------
   BOTONES OPCIÓN
------------------------------------------------------------- */

.option-btn,
.faq-btn {
    background: #111;
    border: 1px solid #333;
    color: #E6E6E6;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    transition: .2s;
}

.option-btn:hover,
.faq-btn:hover {
    background: #1a1a1a;
}

/* ------------------------------------------------------------
   CTA principal
------------------------------------------------------------- */

.main-cta-btn {
    background: linear-gradient(90deg, #573BFA, #7255ff);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(87,59,250,0.4);
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */

.platio-support-footer {
    background: #111;
    padding: 12px;
    border-top: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
}

.platio-support-input {
    flex: 1;
    background: #0b0b0b;
    border: 1px solid #333;
    color: #E6E6E6;
    padding: 10px;
    border-radius: 8px;
}

.platio-support-input::placeholder {
    color: #777;
}

.platio-support-send-btn {
    margin-left: 10px;
    padding: 10px 15px;
    background: #573BFA;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

/* Activar Panel */
.platio-support-panel.open {
    display: flex !important;
}


#support-widget-button {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
}

#support-widget-button img,
#support-widget-button i {
    font-size: 34px !important;
}

#support-widget-button {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,179,255,0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(0,179,255,0.9); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,179,255,0.6); }
}
