/*
   Soporte Pumpun - Floating Widget v2
   CSS EXTREMADAMENTE AGRESIVO PARA SALIENT THEME
*/

/* CONTENEDOR - DEBE ESTAR FUERA DE TODO FLUJO */
#soporte-pumpun-widget-container {
    all: revert !important;
    display: contents !important;
    position: initial !important;
}

/* ============================================
   BOTÓN FLOTANTE - LO MÁS IMPORTANTE
   ============================================ */

.soporte-pumpun-button {
    /* Reset absoluto de Salient */
    all: revert !important;

    /* Posicionamiento CRÍTICO */
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;

    /* Tamaño */
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;

    /* Estilo */
    border-radius: 50% !important;
    background-color: #000000 !important;
    background: #000000 !important;

    /* Texto e íconos */
    color: white !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-align: center !important;

    /* Bordes y sombra */
    border: none !important;
    outline: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;

    /* Comportamiento */
    cursor: pointer !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;

    /* Reset de márgenes y padding */
    margin: 0 !important;
    padding: 0 !important;

    /* Animaciones */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

    /* Apariencia */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    /* Overflow */
    overflow: hidden !important;
}

/* Hover del botón */
.soporte-pumpun-button:hover {
    transform: scale(1.15) translateY(-8px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Activo */
.soporte-pumpun-button.active {
    background-color: #333333 !important;
    background: #333333 !important;
}

/* SVG dentro del botón */
.soporte-pumpun-button svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* ============================================
   PANEL FLOTANTE
   ============================================ */

.soporte-pumpun-panel {
    all: revert !important;

    /* Posicionamiento */
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;

    /* Tamaño */
    width: 420px !important;
    max-width: 420px !important;
    max-height: 650px !important;

    /* Estilo */
    background-color: white !important;
    background: white !important;
    border-radius: 16px !important;
    border: none !important;
    outline: none !important;

    /* Sombra */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;

    /* Layout */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;

    /* Z-index */
    z-index: 9998 !important;

    /* Reset */
    margin: 0 !important;
    padding: 0 !important;

    /* Animación */
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.soporte-pumpun-panel.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Animación del panel */
@keyframes slideInUp {
    from {
        opacity: 0 !important;
        transform: translateY(30px) scale(0.95) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* ============================================
   HEADER DEL PANEL
   ============================================ */

.soporte-pumpun-header {
    padding: 20px !important;
    background-color: #000000 !important;
    background: #000000 !important;
    color: white !important;
    border-radius: 16px 16px 0 0 !important;
    border: none !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 70px !important;

    flex-shrink: 0 !important;
    margin: 0 !important;
    gap: 12px !important;
}

.soporte-pumpun-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
}

.soporte-pumpun-subtitle {
    margin: 0 !important;
    font-size: 12px !important;
    opacity: 0.85 !important;
    color: white !important;
}

/* ============================================
   BODY DEL PANEL
   ============================================ */

.soporte-pumpun-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;

    background-color: white !important;
    background: white !important;
}

/* ============================================
   OPCIONES Y BOTONES
   ============================================ */

.soporte-pumpun-option {
    all: revert !important;

    padding: 16px !important;
    background-color: #f8f9fa !important;
    border: 2px solid #ecf0f1 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #2c3e50 !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;

    margin: 0 !important;
}

.soporte-pumpun-option:hover {
    background-color: #000000 !important;
    color: white !important;
    border-color: #000000 !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.soporte-pumpun-close {
    all: revert !important;

    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 24px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;

    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.soporte-pumpun-close:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

/* ============================================
   TEXTO DEL WIDGET
   ============================================ */

.soporte-pumpun-greeting {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.soporte-pumpun-subtext {
    margin: 4px 0 0 0 !important;
    font-size: 13px !important;
    color: #7f8c8d !important;
}

/* ============================================
   RESPONSIVE PARA MÓVIL
   ============================================ */

@media (max-width: 480px) {
    .soporte-pumpun-button {
        bottom: 16px !important;
        right: 16px !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        font-size: 24px !important;
    }

    .soporte-pumpun-panel {
        width: calc(100vw - 20px) !important;
        bottom: auto !important;
        right: 10px !important;
        top: 10px !important;
        max-height: calc(100vh - 80px) !important;
    }
}
