/* Widget flotante de ayuda ("¿Necesitas ayuda?") — WhatsApp + Asesor 24/7.
   Componente compartido: se enlaza igual en index.html y en todos los formularios. */

.help-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.help-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #FFF;
    border: none;
    border-radius: 50px;
    padding: 10px 20px 10px 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-toggle-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.help-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.help-toggle-icon svg {
    width: 22px;
    height: 22px;
}

.help-toggle-text {
    white-space: nowrap;
}

.help-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.help-widget.active .help-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #FFF;
    color: #1d0938;
    border: none;
    border-radius: 50px;
    padding: 8px 18px 8px 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-option:hover {
    transform: translateX(-4px);
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.28);
}

.help-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #FFF;
}

.help-option-whatsapp .help-option-icon {
    background-color: #25d366;
}

.help-option-advisor .help-option-icon {
    background-color: #1d0938;
}

.help-option-icon svg {
    width: 20px;
    height: 20px;
}

.help-option-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.help-option-title {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-option-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.help-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #7dbf01;
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
}

.help-option-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FFF;
    display: inline-block;
}

@media screen and (max-width: 767px) {
    .help-widget {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .help-toggle-btn {
        padding: 9px 16px 9px 8px;
        font-size: 13px;
    }

    .help-toggle-icon {
        width: 28px;
        height: 28px;
    }

    .help-toggle-icon svg {
        width: 18px;
        height: 18px;
    }

    .help-option {
        padding: 7px 14px 7px 7px;
    }

    .help-option-subtitle {
        display: none;
    }
}
